Fri, 11 Mar 2011 21:41:16 +0100
Import unmodified vendor specs for introduction into repository.
michael@3 | 1 | ### Note that mkcabundle.pl is used to generate ca-bundle.crt |
michael@3 | 2 | ### before generating a source RPM, and is not used during the |
michael@3 | 3 | ### build. |
michael@3 | 4 | |
michael@3 | 5 | %define pkidir %{_sysconfdir}/pki |
michael@3 | 6 | |
michael@3 | 7 | Summary: The Mozilla CA root certificate bundle |
michael@3 | 8 | Name: ca-certificates |
michael@3 | 9 | Version: 2008 |
michael@3 | 10 | Release: 11.3 |
michael@3 | 11 | License: Public Domain |
michael@3 | 12 | Group: System/Base |
michael@3 | 13 | URL: http://www.mozilla.org/ |
michael@3 | 14 | Source0: ca-bundle.crt |
michael@3 | 15 | Source1: generate-cacerts.pl |
michael@3 | 16 | Source2: mkcabundle.pl |
michael@3 | 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
michael@3 | 18 | BuildRequires: perl |
michael@3 | 19 | BuildArch: noarch |
michael@3 | 20 | |
michael@3 | 21 | %description |
michael@3 | 22 | This package contains the set of CA certificates chosen by the |
michael@3 | 23 | Mozilla Foundation for use with the Internet PKI. |
michael@3 | 24 | |
michael@3 | 25 | %prep |
michael@3 | 26 | rm -rf %{name} |
michael@3 | 27 | mkdir %{name} |
michael@3 | 28 | |
michael@3 | 29 | %build |
michael@3 | 30 | pushd %{name} |
michael@3 | 31 | %{__perl} %{SOURCE1} %{_bindir}/keytool %{SOURCE0} |
michael@3 | 32 | touch -r %{SOURCE0} cacerts |
michael@3 | 33 | popd |
michael@3 | 34 | |
michael@3 | 35 | %install |
michael@3 | 36 | rm -rf $RPM_BUILD_ROOT |
michael@3 | 37 | |
michael@3 | 38 | mkdir -p $RPM_BUILD_ROOT{%{pkidir}/tls/certs,%{pkidir}/java} |
michael@3 | 39 | |
michael@3 | 40 | install -p -m 644 %{SOURCE0} $RPM_BUILD_ROOT%{pkidir}/tls/certs/ca-bundle.crt |
michael@3 | 41 | ln -s certs/ca-bundle.crt $RPM_BUILD_ROOT%{pkidir}/tls/cert.pem |
michael@3 | 42 | |
michael@3 | 43 | # Install Java cacerts file. |
michael@3 | 44 | mkdir -p -m 700 $RPM_BUILD_ROOT%{pkidir}/java |
michael@3 | 45 | install -p -m 644 %{name}/cacerts $RPM_BUILD_ROOT%{pkidir}/java/ |
michael@3 | 46 | |
michael@3 | 47 | %clean |
michael@3 | 48 | rm -rf $RPM_BUILD_ROOT |
michael@3 | 49 | |
michael@3 | 50 | %files |
michael@3 | 51 | %defattr(-,root,root,-) |
michael@3 | 52 | %dir %{pkidir}/java |
michael@3 | 53 | %config(noreplace) %{pkidir}/java/cacerts |
michael@3 | 54 | %dir %{pkidir}/tls |
michael@3 | 55 | %dir %{pkidir}/tls/certs |
michael@3 | 56 | %config(noreplace) %{pkidir}/tls/certs/ca-bundle.crt |
michael@3 | 57 | %{pkidir}/tls/cert.pem |
michael@3 | 58 | |
michael@3 | 59 | %changelog |
michael@3 | 60 | * Sat Aug 8 2009 Anas Nashif <anas.nashif@intel.com> - 2008 |
michael@3 | 61 | - Create .changes file |
michael@3 | 62 | * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2008-8 |
michael@3 | 63 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
michael@3 | 64 | * Tue Oct 14 2008 Joe Orton <jorton@redhat.com> 2008-7 |
michael@3 | 65 | - update to certdata.txt r1.49 |
michael@3 | 66 | * Wed Jun 25 2008 Thomas Fitzsimmons <fitzsim@redhat.com> - 2008-6 |
michael@3 | 67 | - Change generate-cacerts.pl to produce pretty aliases. |
michael@3 | 68 | * Mon Jun 2 2008 Joe Orton <jorton@redhat.com> 2008-5 |
michael@3 | 69 | - include /etc/pki/tls/cert.pem symlink to ca-bundle.crt |
michael@3 | 70 | * Tue May 27 2008 Joe Orton <jorton@redhat.com> 2008-4 |
michael@3 | 71 | - use package name for temp dir, recreate it in prep |
michael@3 | 72 | * Tue May 27 2008 Joe Orton <jorton@redhat.com> 2008-3 |
michael@3 | 73 | - fix source script perms |
michael@3 | 74 | - mark packaged files as config(noreplace) |
michael@3 | 75 | * Tue May 27 2008 Joe Orton <jorton@redhat.com> 2008-2 |
michael@3 | 76 | - add (but don't use) mkcabundle.pl |
michael@3 | 77 | - tweak description |
michael@3 | 78 | - use /usr/bin/keytool directly; BR java-openjdk |
michael@3 | 79 | * Tue May 27 2008 Joe Orton <jorton@redhat.com> 2008-1 |
michael@3 | 80 | - Initial build (#448497) |