From: Elan Ruusamäe Date: Fri, 10 Jun 2011 20:38:53 +0000 (+0000) Subject: - initial, based on fc spec (the one in sources as well) X-Git-Tag: auto/ac/fetch-crl-3_0_8-1~6 X-Git-Url: http://git.pld-linux.org/?p=packages%2Ffetch-crl.git;a=commitdiff_plain;h=5b41b6a634fa91ff8a76143d08284d8d33feae20 - initial, based on fc spec (the one in sources as well) Changed files: fetch-crl.spec -> 1.1 --- 5b41b6a634fa91ff8a76143d08284d8d33feae20 diff --git a/fetch-crl.spec b/fetch-crl.spec new file mode 100644 index 0000000..ac40d1e --- /dev/null +++ b/fetch-crl.spec @@ -0,0 +1,86 @@ +# TODO +# - pldize initscript +%include /usr/lib/rpm/macros.perl +Summary: Downloads Certificate Revocation Lists +Name: fetch-crl +Version: 3.0.6 +Release: 1 +License: ASL 2.0 +Group: Applications/System +URL: http://www.nikhef.nl/grid/gridwiki/index.php/FetchCRL3 +Source0: https://dist.eugridpma.info/distribution/util/fetch-crl3/%{name}-%{version}.tar.gz +# Source0-md5: b58f10fb76bab3a34fd4d80541956ef3 +BuildRequires: rpm-perlprov >= 4.1-13 +Requires: openssl +Obsoletes: fetch-crl3 +# These requires are only added since file is currently broken so they don't get autogenerated. +# https://bugzilla.redhat.com/show_bug.cgi?id=699548 +# (file(1) considers file 'data' as it sees ^A inside script) +Requires: /usr/bin/perl +Requires: perl(File::Basename) +Requires: perl(File::Temp) +Requires: perl(Getopt::Long) +Requires: perl(IO::Select) +Requires: perl(IPC::Open3) +Requires: perl(LWP) +Requires: perl(POSIX) +Requires: perl(Sys::Syslog) +Requires: perl(Time::Local) +Requires: perl(integer) +Requires: perl(strict) +Requires: perl(vars) +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This tool and associated cron entry ensure that Certificate Revocation +Lists (CRLs) are periodically retrieved from the web sites of the +respective Certification Authorities. It assumes that the installed CA +files follow the hash.crl_url convention. + +%prep +%setup -q +# use this to figure out deps +#sed -i -e 's,,BLAAA,' %{name} + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name}.d,/etc/{cron.d,rc.d/init.d}} +%{__make} install \ + PREFIX=$RPM_BUILD_ROOT%{_usr} \ + ETC=$RPM_BUILD_ROOT%{_sysconfdir} \ + CACHE=$RPM_BUILD_ROOT%{_var}/cache + +install -p fetch-crl-cron.init $RPM_BUILD_ROOT%{_initrddir}/%{name}-cron +install -p fetch-crl-boot.init $RPM_BUILD_ROOT%{_initrddir}/%{name}-boot +cp -p fetch-crl-cron.cron $RPM_BUILD_ROOT/etc/cron.d/%{name} + +# Remove some files that have been duplicated as docs. +rm -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +/sbin/chkconfig --add %{name}-cron +/sbin/chkconfig --add %{name}-boot + +%preun +if [ $1 = 0 ]; then + %service %{name}-cron stop + %service %{name}-boot stop + /sbin/chkconfig --del %{name}-cron + /sbin/chkconfig --del %{name}-boot +fi + +%files +%defattr(644,root,root,755) +%doc CHANGES NOTICE README fetch-crl.cnf.example +%dir %{_sysconfdir}/%{name}.d +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf +%config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name} +%attr(755,root,root) %{_sbindir}/%{name} +%attr(754,root,root) /etc/rc.d/init.d/fetch-crl-boot +%attr(754,root,root) /etc/rc.d/init.d/fetch-crl-cron +%{_mandir}/man8/%{name}.8* +%dir %{_var}/cache/%{name}