-
Notifications
You must be signed in to change notification settings - Fork 1
/
cern-rpmverify.spec
63 lines (54 loc) · 1.69 KB
/
cern-rpmverify.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
Name: cern-rpmverify
Version: 4.3
Release: 1%{?dist}
Summary: Logs warnings for modified files of an RPM and the RPM package that they belong
Vendor: CERN
Group: Applications/System
License: GPLv2+
BuildArch: noarch
URL: http://www.cern.ch/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: %{name}-%{version}.tgz
Requires: python-psutil
%if 0%{?el6}
Requires: python-argparse
%endif
%description
Checks the integrity of the files installed via RPM by comparing their
integrity to the RPM DB.
%prep
%setup -q
%build
%if 0%{?el6}
sed 's#/usr/bin/env python$#/usr/bin/env python2.6#' -i cern-rpmverify
%endif
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/bin/
mkdir -p %{buildroot}/etc/cron.d/
install -m 0700 cern-rpmverify %{buildroot}/usr/bin/
install -m 0644 cern-rpmverify.cron %{buildroot}/etc/cron.d/
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
/usr/bin/cern-rpmverify
/etc/cron.d/cern-rpmverify.cron
%changelog
* Tue May 15 2018 Vincent Brillault <[email protected]> - 4.3
- Improve psutil compatibility (both 0.6.1 and 2.2.1)
- Fix rpm -Va output processing
- Increase grace period to an hour
* Wed Dec 06 2017 Vincent Brillault <[email protected]> - 4.2
- Fix deprecation warning for SLC6.9 (psutil)
* Fri Jun 13 2014 Vincent Brillault <[email protected]> - 4.1
- Improve logging
- PEP8 & other code cleaning
* Thu May 22 2014 Vincent Brillault <[email protected]> - 4.0
- Refactor code
- Add nice/ionice options
- Add signature verification
* Thu Jun 28 2012 Remi Mollon <[email protected]> - 3.2
- added cron job
* Wed May 23 2012 Remi Mollon <[email protected]> - 3.1
- changed packaging to be compliant to rpmlint