-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathconfigsnap.spec
144 lines (114 loc) · 5.34 KB
/
configsnap.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
Name: configsnap
Version: 0.21.1
Release: 1%{?dist}
Summary: Record and compare system state
License: ASL 2.0
URL: https://github.com/rackerlabs/%{name}
Source0: https://github.com/rackerlabs/%{name}/archive/%{version}.tar.gz
BuildArch: noarch
BuildRequires: help2man
%if 0%{?rhel} >= 8 || 0%{?fedora}
BuildRequires: python3
%else
BuildRequires: python2
%endif
%description
configsnap records important system state information and can optionally compare
with a previous state and identify changes
%prep
%setup -q
%build
%if 0%{?rhel} >= 8 || 0%{?fedora}
sed -i 's#/bin/python$#/bin/python3#g' ./%{name}
%endif
help2man --include=%{name}.help2man --no-info ./%{name} -o %{name}.man
%install
mkdir -p %{buildroot}%{_sbindir} \
%{buildroot}%{_mandir}/man1 \
%{buildroot}%{_sysconfdir}/%{name}
install -p -m 0755 %{name} %{buildroot}%{_sbindir}
install -p -m 0644 %{name}.man %{buildroot}%{_mandir}/man1/%{name}.1
install -p -m 0600 additional.conf %{buildroot}%{_sysconfdir}/%{name}/additional.conf
%files
%{!?_licensedir:%global license %doc}
%license LICENSE
%doc README.md
%doc NEWS
%doc MAINTAINERS.md
%config(noreplace) %{_sysconfdir}/%{name}/additional.conf
%{_mandir}/man1/%{name}.1*
%{_sbindir}/%{name}
%{_sysconfdir}/%{name}
%changelog
* Mon Nov 20 2023 Mark Hyde <[email protected]> - 0.21.1-1
- Add /proc/cpuinfo (PR 128)
* Wed May 12 2021 Christos Triantafyllidis <[email protected]> - 0.20.1-1
- Update python binary for python3 based distros
* Fri May 07 2021 Nick Rhodes <[email protected]> - 0.20.0-3
- Fix build issues in Koji
* Fri May 07 2021 Nick Rhodes <[email protected]> - 0.20.0-1
- Port to python3 compatibility (PR 120)
* Sun Aug 16 2020 Nick Rhodes <[email protected]> - 0.19.0-1
- Added lsblk and blkid (PR 115)
- Fix flake8 warnings (PR 118)
- Filtering out update line in pcs status (PR 112)
* Mon Feb 03 2020 Nick Rhodes <[email protected]> - 0.18.0-1
- Improvements to get_diff (PR 110)
* Wed Jul 03 2019 Nick Rhodes <[email protected]> - 0.17.1-1
- Convert relative basedir to absolute path (PR 103)
* Sun Jun 16 2019 Nick Rhodes <[email protected]> - 0.17.0-1
- Update diff function to use Popen.communicate() (PR 101)
* Thu Jan 31 2019 Fedora Release Engineering <[email protected]> - 0.16.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sun Dec 02 2018 Nick Rhodes <[email protected]> - 0.16.2-1
- Only report skipping default additional.conf file when using custom file
* Sun Nov 04 2018 Nick Rhodes <[email protected]> - 0.16.1-1
- Revert previous --config release with argparse rewrite
- Add --config option for specifying custom a configuration file using optparse
- Filter the "ip address show" output to remove lines containing valid_lft XXsec preferred_lft XXsec
* Wed Oct 17 2018 Nick Rhodes <[email protected]> - 0.16-1
- Add --config option for specifying custom a configuration file
* Sat Sep 15 2018 Nick Rhodes <[email protected]> - 0.15-1
- Added copy_dir function to recursively backup and diff directories
- Add ability to use copy_dir in additional.conf along with a file pattern match
* Tue Jul 31 2018 Paolo Gigante <[email protected]> - 0.14-1
- Adjusted -w option to only overwrite specific tagged files
- Add option to compare existing files without gathering new data using the -C/--compare-only option
- Added the option to capture post data and compare to phases other than *.pre using the --pre option
- Added option to force a compare even id the phase does not contain "post" or "rollback" using the --force-compare option
* Thu Jul 12 2018 Fedora Release Engineering <[email protected]> - 0.13-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering <[email protected]> - 0.13-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Aug 17 2017 Piers Cornwell <[email protected]> 0.13-1
- New option -a to create a tar archive of the output
- New option -w to overwrite existing output
- PEP8 fixes
- Modify check for PHP presence
* Wed Jul 26 2017 Fedora Release Engineering <[email protected]> - 0.12-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Mon Jun 12 2017 Piers Cornwell <[email protected]> 0.12-2
- Record Pacemaker status
- Don't raise exception if command doesn't exist
- Add alternative path for lspci
- Allow MySQL show databases to fail
- Record PHP state
- Record iptables rules
- Documented tested platforms
- Optional custom collection
* Fri Feb 10 2017 Fedora Release Engineering <[email protected]> - 0.11-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Wed Jan 25 2017 Christos Triantafyllidis <[email protected]> 0.11-2
- Updated spec according to Fedora Guidelines
* Wed Dec 21 2016 Piers Cornwell <[email protected]> 0.11-1
- Renamed from getData to configsnap
- Backup grubenv for grub2
- Support for Fedora
- Added man page
- Record dm-multipath information
- Continue if lvm isn't present
- Allow PowerPath to be present, but with no LUNs
* Wed Jul 27 2016 Piers Cornwell <[email protected]> 0.10-1
- Initial public release, version 0.10
* Mon May 9 2016 Piers Cornwell <[email protected]> 0.9-1
- Initial standalone tagged release, version 0.9