]>
Commit | Line | Data |
---|---|---|
5b41b6a6 ER |
1 | %include /usr/lib/rpm/macros.perl |
2 | Summary: Downloads Certificate Revocation Lists | |
3 | Name: fetch-crl | |
ec5e8cab | 4 | Version: 3.0.8 |
5b41b6a6 ER |
5 | Release: 1 |
6 | License: ASL 2.0 | |
7 | Group: Applications/System | |
8 | URL: http://www.nikhef.nl/grid/gridwiki/index.php/FetchCRL3 | |
3910ea67 | 9 | Source0: http://dist.eugridpma.info/distribution/util/fetch-crl3/%{name}-%{version}.tar.gz |
ec5e8cab | 10 | # Source0-md5: 0c255931d05d46ed444d76438df29dd5 |
d10f7950 | 11 | Source1: %{name}.crontab |
5b41b6a6 | 12 | BuildRequires: rpm-perlprov >= 4.1-13 |
d10f7950 | 13 | Requires: crondaemon |
5b41b6a6 ER |
14 | Requires: openssl |
15 | Obsoletes: fetch-crl3 | |
5b41b6a6 ER |
16 | BuildArch: noarch |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | This tool and associated cron entry ensure that Certificate Revocation | |
21 | Lists (CRLs) are periodically retrieved from the web sites of the | |
22 | respective Certification Authorities. It assumes that the installed CA | |
23 | files follow the hash.crl_url convention. | |
24 | ||
25 | %prep | |
26 | %setup -q | |
5b41b6a6 ER |
27 | |
28 | %install | |
29 | rm -rf $RPM_BUILD_ROOT | |
30 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name}.d,/etc/{cron.d,rc.d/init.d}} | |
31 | %{__make} install \ | |
32 | PREFIX=$RPM_BUILD_ROOT%{_usr} \ | |
33 | ETC=$RPM_BUILD_ROOT%{_sysconfdir} \ | |
34 | CACHE=$RPM_BUILD_ROOT%{_var}/cache | |
35 | ||
d10f7950 | 36 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/%{name} |
5b41b6a6 ER |
37 | |
38 | # Remove some files that have been duplicated as docs. | |
d10f7950 | 39 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} |
5b41b6a6 ER |
40 | |
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
5b41b6a6 ER |
44 | %files |
45 | %defattr(644,root,root,755) | |
46 | %doc CHANGES NOTICE README fetch-crl.cnf.example | |
47 | %dir %{_sysconfdir}/%{name}.d | |
48 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf | |
49 | %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name} | |
50 | %attr(755,root,root) %{_sbindir}/%{name} | |
5b41b6a6 ER |
51 | %{_mandir}/man8/%{name}.8* |
52 | %dir %{_var}/cache/%{name} |