ca-certificates/ca-certificates.spec

127 lines
4.4 KiB
RPMSpec
Raw Permalink Normal View History

Name: ca-certificates
Version: 20141019
Release: 2mamba
Summary: The Mozilla CA root certificate bundle
Group: System/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.mozilla.org/
# git clone git://pkgs.fedoraproject.org/ca-certificates.git
#Source: git://pkgs.fedoraproject.org/ca-certificates.git/master/ca-certificates-%{version}.tar.bz2
Source: http://ftp.de.debian.org/debian/pool/main/c/ca-certificates/ca-certificates_%{version}.tar.xz
License: Public Domain
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: openssl
BuildRequires: perl
BuildRequires: python
BuildRequires: rcs
#%if "%{stage1}" != "1"
#BuildRequires: java-openjdk
#%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This package contains the set of CA certificates chosen by the Mozilla Foundation for use with the Internet PKI.
%prep
%setup -q
mkdir %{name} %{name}/certs %{name}/java
%build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d -m755 %{buildroot}/{%{_sysconfdir}/ca-certificates/update.d,%{_sbindir},%{_datadir}/ca-certificates,%{_sysconfdir}/ssl/certs}
%makeinstall
install -D -m644 sbin/update-ca-certificates.8 %{buildroot}%{_mandir}/man8/update-ca-certificates.8
(
echo "# Automatically generated by ${pkgname}-${pkgver}-${pkgrel}"
echo "# see update-ca-certificates man page"
echo "# "
cd %{buildroot}/usr/share/ca-certificates
find . -name '*.crt' | sort | cut -b3-
) > %{buildroot}%{_sysconfdir}/ca-certificates.conf
install -d -m0755 %{buildroot}%{_sysconfdir}/pki/tls/certs
ln -s ../../../ssl/certs/ca-certificates.crt %{buildroot}%{_sysconfdir}/pki/tls/certs/ca-bundle.crt
ln -s certs/ca-bundle.crt %{buildroot}%{_sysconfdir}/pki/tls/cert.pem
%posttrans
if [ $1 -ge 1 ]; then
%{_sbindir}/update-ca-certificates --fresh >/dev/null 2>&1
fi
:
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%config %{_sysconfdir}/ca-certificates.conf
%dir %{_sysconfdir}/ca-certificates
%dir %{_sysconfdir}/ca-certificates/update.d
%dir %{_sysconfdir}/pki/tls
%{_sysconfdir}/pki/tls/cert.pem
%dir %{_sysconfdir}/pki/tls/certs
%{_sysconfdir}/pki/tls/certs/ca-bundle.crt
%dir %{_sysconfdir}/ssl
%{_sysconfdir}/ssl/certs
%{_sbindir}/update-ca-certificates
%dir %{_datadir}/ca-certificates
#%dir %{_datadir}/ca-certificates/cacert.org
#%{_datadir}/ca-certificates/cacert.org/cacert.org_class3.crt
#%{_datadir}/ca-certificates/cacert.org/cacert.org_root.crt
%dir %{_datadir}/ca-certificates/spi-inc.org
%{_datadir}/ca-certificates/spi-inc.org/spi-*.crt
%dir %{_datadir}/ca-certificates/mozilla
%{_datadir}/ca-certificates/mozilla/*.crt
%{_mandir}/man8/update-ca-certificates.8*
%changelog
* Mon Mar 09 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 20141019-2mamba
- run update-ca-certificates in %posttrans script to maybe fix failure in makedist builds
* Sat Nov 22 2014 Automatic Build System <autodist@mambasoft.it> 20141019-1mamba
- automatic update by autodist
* Sun Oct 12 2014 Automatic Build System <autodist@mambasoft.it> 20140927-1mamba
- automatic update by autodist
* Sun May 25 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 20140325-2mamba
- provide required directory /etc/ca-certificates/update.d
* Sun Apr 13 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 20140325-1mamba
- update to 20140325
* Sun Oct 20 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 20130906-2mamba
- readd symlink cert.pem required by java-gcj-compat
* Fri Sep 20 2013 Automatic Build System <autodist@mambasoft.it> 20130906-1mamba
- automatic update by autodist
* Thu Aug 15 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 20130610-3mamba
- rewrite specfile, use canonical package dirs, don't provide ca-bundle*
* Mon Aug 12 2013 Automatic Build System <autodist@mambasoft.it> 20130610-2mamba
- automatic version update by autodist
* Mon Aug 12 2013 Automatic Build System <autodist@mambasoft.it> 20130610-1mamba
- automatic version update by autodist
* Mon Apr 22 2013 Automatic Build System <autodist@mambasoft.it> 20130422git-1mamba
- update to 20130422git
* Tue Apr 10 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2012.04-1mamba
- update to 2012.04
* Thu Feb 24 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2010.10-2mamba
- rebuilt in devel
* Tue Oct 05 2010 gil <puntogil@libero.it> 2010.10-1mamba
- package created by autospec