File ca-certificates-cacert.spec of Package ca-certificates-cacert
#
# spec file for package ca-certificates-cacert
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
BuildRequires: ca-certificates openssl
Name: ca-certificates-cacert
%define sslusrdir %{_datadir}/ca-certificates
License: SUSE-CacertRoot
Group: Productivity/Networking/Security
Version: 1
Release: 1
Summary: CAcert root certificates
Url: http://www.cacert.org
Source: CAcert_class3.pem
Source1: CAcert.pem
Source2: LICENSE.cacert
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
PreReq: ca-certificates
%description
This package contains the root certificates from cacert.org
%prep
%setup -qcT
cp %SOURCE2 LICENSE
%build
%install
install -d -m 755 %{buildroot}/%{sslusrdir}/cacert
for i in %{SOURCE0} %{SOURCE1}; do openssl x509 -in $i -out \
%{buildroot}/%{sslusrdir}/cacert/${i##*/}; done
%clean
rm -rf %{buildroot}
%post
update-ca-certificates || true
%postun
update-ca-certificates || true
%files
%defattr(-, root, root)
%doc LICENSE
%{sslusrdir}/cacert
%changelog