packages: fetch-crl/fetch-crl.spec (NEW) - initial, based on fc spec (the o...

glen glen at pld-linux.org
Fri Jun 10 22:38:58 CEST 2011


Author: glen                         Date: Fri Jun 10 20:38:58 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial, based on fc spec (the one in sources as well)

---- Files affected:
packages/fetch-crl:
   fetch-crl.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/fetch-crl/fetch-crl.spec
diff -u /dev/null packages/fetch-crl/fetch-crl.spec:1.1
--- /dev/null	Fri Jun 10 22:38:58 2011
+++ packages/fetch-crl/fetch-crl.spec	Fri Jun 10 22:38:53 2011
@@ -0,0 +1,96 @@
+# $Revision$, $Date$
+# 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}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/06/10 20:38:53  glen
+- initial, based on fc spec (the one in sources as well)
================================================================


More information about the pld-cvs-commit mailing list