ca-certificates/ca-certificates.spec

157 lines
5.7 KiB
RPMSpec

Name: ca-certificates
Version: 20170717
Release: 1mamba
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
Requires(post): openssl
Provides: ca-certificates-java
Obsoletes: ca-certificates-java
Requires(post): p11-kit
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 -n %{name}
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
install -d -m755 %{buildroot}%{_sysconfdir}/ssl/certs/java
(
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
install -d -m0755 %{buildroot}%{_sysconfdir}/pki/java/
ln -s ../../ssl/certs/java/cacerts %{buildroot}%{_sysconfdir}/pki/java/cacerts
%posttrans
if [ $1 -ge 1 ]; then
trust extract --overwrite --format=java-cacerts --filter=ca-anchors \
--purpose server-auth %{_sysconfdir}/ssl/certs/java/cacerts
%{_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}/pki/java
%{_sysconfdir}/pki/java/cacerts
%dir %{_sysconfdir}/ssl
%{_sysconfdir}/ssl/certs
%dir %{_sysconfdir}/ssl/certs/java
%{_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
* Thu Nov 16 2017 Automatic Build System <autodist@mambasoft.it> 20170717-1mamba
- automatic update by autodist
* Thu Dec 08 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 20161130-1mamba
- update to 20161130
* Thu May 19 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 20160104-1mamba
- update to 20160104
* Wed Jan 20 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 20150426-2mamba
- use trust extract in post script to generate java cacerts bundle; obsolete ca-certificates-java
* Mon Jun 08 2015 Automatic Build System <autodist@mambasoft.it> 20150426-1mamba
- automatic update by autodist
* Sat Mar 14 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 20141019-3mamba
- require openssl because update-ca-certificates needs c_rehash
* 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