2012-02-21 12:30:04 +01:00
|
|
|
#
|
|
|
|
# spec file for package perl-Mozilla-CA
|
|
|
|
#
|
2021-10-12 11:48:48 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
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.
|
|
|
|
|
2020-08-08 13:41:16 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-02-21 12:30:04 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-10-12 11:48:48 +02:00
|
|
|
%define cpan_name Mozilla-CA
|
2012-02-21 12:30:04 +01:00
|
|
|
Name: perl-Mozilla-CA
|
2021-10-12 11:48:48 +02:00
|
|
|
Version: 20211001
|
2012-02-21 12:30:04 +01:00
|
|
|
Release: 0
|
2021-10-12 11:48:48 +02:00
|
|
|
#Upstream: SUSE-Public-Domain
|
2012-02-21 12:30:04 +01:00
|
|
|
Summary: Mozilla's CA cert bundle in PEM format
|
2018-03-05 06:54:10 +01:00
|
|
|
License: MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later
|
2020-08-08 13:41:16 +02:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2018-03-05 06:54:10 +01:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/A/AB/ABH/%{cpan_name}-%{version}.tar.gz
|
2015-04-19 10:04:37 +02:00
|
|
|
Source1: cpanspec.yml
|
2012-02-21 12:30:04 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
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()
|
|
|
|
|
2016-01-07 12:42:54 +01:00
|
|
|
Returns the absolute path to the Mozilla's CA cert bundle PEM file.
|
2012-02-21 12:30:04 +01:00
|
|
|
|
|
|
|
%prep
|
2021-10-12 11:48:48 +02:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
2020-08-08 13:41:16 +02:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2012-02-21 12:30:04 +01:00
|
|
|
|
|
|
|
%build
|
2020-08-08 13:41:16 +02:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2021-10-12 11:48:48 +02:00
|
|
|
%make_build
|
2012-02-21 12:30:04 +01:00
|
|
|
|
|
|
|
%check
|
2020-08-08 13:41:16 +02:00
|
|
|
make test
|
2012-02-21 12:30:04 +01:00
|
|
|
|
|
|
|
%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|/usr/bin/env perl|%{_bindir}/perl|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|./mk-ca-bundle.pl|%{_bindir}/mk-ca-bundle.pl|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" update-cacert-file
|
|
|
|
# MANUAL END
|
2012-02-21 12:30:04 +01:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%doc Changes README update-cacert-file
|
|
|
|
|
|
|
|
%changelog
|