1 Summary: Downloads Certificate Revocation Lists
6 Group: Applications/System
7 URL: http://www.nikhef.nl/grid/gridwiki/index.php/FetchCRL3
8 Source0: http://dist.eugridpma.info/distribution/util/fetch-crl3/%{name}-%{version}.tar.gz
9 # Source0-md5: 0c255931d05d46ed444d76438df29dd5
10 Source1: %{name}.crontab
11 BuildRequires: rpm-perlprov >= 4.1-13
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 This tool and associated cron entry ensure that Certificate Revocation
20 Lists (CRLs) are periodically retrieved from the web sites of the
21 respective Certification Authorities. It assumes that the installed CA
22 files follow the hash.crl_url convention.
28 rm -rf $RPM_BUILD_ROOT
29 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name}.d,/etc/{cron.d,rc.d/init.d}}
31 PREFIX=$RPM_BUILD_ROOT%{_usr} \
32 ETC=$RPM_BUILD_ROOT%{_sysconfdir} \
33 CACHE=$RPM_BUILD_ROOT%{_var}/cache
35 cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/%{name}
37 # Remove some files that have been duplicated as docs.
38 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
41 rm -rf $RPM_BUILD_ROOT
44 %defattr(644,root,root,755)
45 %doc CHANGES NOTICE README fetch-crl.cnf.example
46 %dir %{_sysconfdir}/%{name}.d
47 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
48 %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
49 %attr(755,root,root) %{_sbindir}/%{name}
50 %{_mandir}/man8/%{name}.8*
51 %dir %{_var}/cache/%{name}