Source3: certbundle.run
Source1001: ca-certificates.manifest
Url: http://gitorious.org/opensuse/ca-certificates
-Requires: openssl
-Requires: smack
-Requires: coreutils
-Requires(post): /usr/bin/rm
Recommends: ca-certificates-mozilla
BuildArch: noarch
Summary: Devel package of ca-certificates which contains RPM macros
Group: Development/Libraries
License: GPL-2.0+
-Requires: %name = %version
+BuildRequires: %name = %version
%description devel
ca-certificates devel package which contains RPM macros
mkdir -p %{buildroot}/%{_mandir}/man8
mkdir -p %{buildroot}/etc/ca-certificates/update.d
mkdir -p %{buildroot}%{_prefix}/lib/ca-certificates/update.d
-install -D -m 644 /dev/null %{buildroot}/%{cabundle}
+mkdir -p %{buildroot}/var/lib/ca-certificates
install -m 644 /dev/null %{buildroot}/etc/ca-certificates.conf
install -m 755 %{SOURCE3} %{buildroot}%{_prefix}/lib/ca-certificates/update.d
ln -s %{cabundle} %{buildroot}%{usrcabundle}
install -m 755 update-ca-certificates %{buildroot}/%{_sbindir}
install -m 644 update-ca-certificates.8 %{buildroot}/%{_mandir}/man8
-install -m 644 /dev/null %{buildroot}/var/lib/ca-certificates/ca-bundle.pem
mkdir -p %{buildroot}%{_sysconfdir}/rpm
%define macro_ca_certificates %{_sysconfdir}/rpm/macros.ca-certificates
echo "%TZ_SYS_CA_BUNDLE %{usrcabundle}" >> %{buildroot}%{macro_ca_certificates}
echo "%TZ_SYS_CA_BUNDLE_RW %{cabundle}" >> %{buildroot}%{macro_ca_certificates}
-%post
-# this is just needed for those updating Factory,
-# can be removed before 11.3
-if [ "$1" -ge 1 ]; then
- rm -f /etc/ca-certificates/update.d/certbundle.run
-fi
-# force rebuilding all certificate stores.
-# This also makes sure we update the hash links in /etc/ssl/certs
-# as openssl changed the hash format between 0.9.8 and 1.0
-update-ca-certificates -f || true
-
-chown root:system %{etccadir}
-chmod 775 %{etccadir}
-chsmack -a "System::Shared" %{etccadir}
-chsmack -t %{etccadir}
-
%files
%manifest %{name}.manifest
%defattr(-, root, root)
-%dir %{usrcadir}
-%dir %{etccadir}
%license COPYING
-%ghost %config(noreplace) /etc/ca-certificates.conf
+%dir %{usrcadir}
+%dir %attr(775, root, system) %{etccadir}
+%dir /var/lib/ca-certificates
%{usrcabundle}
-%ghost %{cabundle}
+
+%files devel
+%config %{macro_ca_certificates}
+%ghost %config(noreplace) /etc/ca-certificates.conf
%dir /etc/ca-certificates
%dir /etc/ca-certificates/update.d
%dir %{_prefix}/lib/ca-certificates
%dir %{_prefix}/lib/ca-certificates/update.d
-%dir /var/lib/ca-certificates
%{_prefix}/lib/ca-certificates/update.d/certbundle.run
%{_sbindir}/update-ca-certificates
%{_mandir}/man8/update-ca-certificates.8*
-%ghost %{cabundle}
-
-%files devel
-%config %{macro_ca_certificates}