2012-02-21 12:30:04 +01:00
#
# spec file for package perl-Mozilla-CA
#
2015-04-19 10:04:37 +02:00
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
2012-02-21 12:30:04 +01:00
#
# 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/
#
Name : perl-Mozilla-CA
2015-08-27 12:16:41 +02:00
Version : 20150826
2012-02-21 12:30:04 +01:00
Release : 0
2015-08-27 12:16:41 +02:00
#Upstream: For the bundled Mozilla CA PEM file the following applies: This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. The Mozilla::CA distribution itself is available under the same license.
2015-04-19 10:04:37 +02:00
%define cpan_name Mozilla-CA
2012-02-21 12:30:04 +01:00
Summary : Mozilla's CA cert bundle in PEM format
2012-02-21 12:34:30 +01:00
License : MPL-1.1 or GPL-2.0+ or LGPL-2.1+
2012-02-21 12:30:04 +01:00
Group : Development/Libraries/Perl
Url : http://search.cpan.org/dist/Mozilla-CA/
2015-04-19 10:04:37 +02:00
Source0 : http://www.cpan.org/authors/id/A/AB/ABH/%{cpan_name} -%{version} .tar.gz
Source1 : cpanspec.yml
2012-02-21 12:30:04 +01:00
BuildArch : noarch
BuildRoot : %{_tmppath} /%{name} -%{version} -build
BuildRequires : perl
BuildRequires : perl-macros
%{perl_requires}
%description
Mozilla::CA provides a copy of Mozilla's bundle of Certificate Authority
certificates in a form that can be consumed by modules and libraries based
on OpenSSL.
The module provide a single function:
* SSL_ca_file()
Returns the absolute path to the Mozilla's CA cert bundle PEM file.
%prep
%setup -q -n %{cpan_name} -%{version}
find . -type f -print0 | xargs -0 chmod 644
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
2015-04-19 10:04:37 +02:00
%perl_process_packlist
# MANUAL BEGIN
- update to 20130114:
+ New certificate: "T-TeleSec GlobalRoot Class 3"
+ Fix test (RT#79129, reported by Sinan Unur)
+ Add mk-ca-bundle.pl from git repository to distribution.
+ Add new/additional certificates from the following CAs: Verisign,
UTN-USER, UTN USERFirst, Sonera, NetLock Qualified, SwissSign
Platinum, S-TRUST, ComSign, Actalis, Trustis, StartCom, Buypass.
+ Download the certdata from mozilla over SSL (John Joseph Bachir)
+ CA updates:
Removes:
- Hellenic Academic and Research Institutions RootCA 2011
- move mk-ca-bundle.pl to bindir
- fix path names in update-cacert-file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Mozilla-CA?expand=0&rev=3
2014-04-10 00:22:57 +02:00
mkdir -p %{buildroot} /%{_bindir}
sed -e " s | / u s r / b i n / e n v p e r l | %{_bindir} / p e r l | g " %{buildroot} /%{perl_vendorlib} /Mozilla/mk-ca-bundle.pl > %{buildroot} /%{_bindir} /mk-ca-bundle.pl
chmod +x %{buildroot} /%{_bindir} /mk-ca-bundle.pl
rm %{buildroot} /%{perl_vendorlib} /Mozilla/mk-ca-bundle.pl
sed -i " s | . / m k - c a - b u n d l e . p l | %{_bindir} / m k - c a - b u n d l e . p l | g ; \
2015-04-19 10:04:37 +02:00
s|lib/Mozilla/CA.pm|%{perl_vendorlib} /Mozilla/CA.pm|g; \
s|lib/Mozilla/CA/cacert.pem|%{perl_vendorlib} /Mozilla/CA/cacert.pem|g" u p d a t e - c a c e r t - f i l e
# MANUAL END
2012-02-21 12:30:04 +01:00
%perl_gen_filelist
%files -f %{name}.files
%defattr (-,root,root,755)
%doc Changes README update-cacert-file
%changelog