# TODO
# - cleanup dead links from /etc/openssl/certs after -update uninstall
-# - deal with removed (renamed) certs on upgrade (as new config is created as
-# .rpmnew). create some merge tool (or split /etc/ca-certificates.conf to
-# /etc/ca-certificates.d): http://pastebin.com/04hZd2x0
-#
# - https://bugzilla.mozilla.org/show_bug.cgi?id=549701 and
# http://groups.google.com/group/mozilla.dev.security.policy/browse_thread/thread/b6493a285ba79998#
# - add certs noted in TODO file
Summary: Common CA Certificates PEM files
Summary(pl.UTF-8): Pliki PEM popularnych certyfikatów CA
Name: ca-certificates
-Version: 20110502
-Release: 1
+Version: 20120212
+Release: 2
License: distributable
Group: Libraries
Source0: ftp://ftp.debian.org/debian/pool/main/c/ca-certificates/%{name}_%{version}.tar.gz
-# Source0-md5: 4216da872955cb73b077be68b6b5f975
+# Source0-md5: 391dea8d827db935ca0d0d1e6641bf23
Source1: https://www.verisign.com/support/thawte-roots.zip
# Source1-md5: a3709cc0279ef3fca4f86ea775066b18
Source2: http://www.certum.pl/keys/CA.pem
Patch2: %{name}-etc-certs.patch
Patch3: %{name}-c_rehash.sh.patch
Patch4: %{name}-endline.patch
-Patch5: %{name}-mozilla.patch
-Patch6: %{name}-DESTDIR.patch
+Patch5: %{name}-DESTDIR.patch
+Patch6: %{name}.d.patch
URL: http://www.cacert.org/
BuildRequires: openssl-tools
BuildRequires: python
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_sbindir},%{certsdir}}
-
+install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_sbindir},%{certsdir},%{_sysconfdir}/ca-certificates.d}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
+%doc debian/README.Debian debian/changelog
%config(noreplace) %verify(not md5 mtime size) %{certsdir}/ca-certificates.crt
%files update
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/update-ca-certificates
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ca-certificates.conf
+%dir %{_sysconfdir}/ca-certificates.d
%{_datadir}/ca-certificates