source: spec/trunk/SPECS/perl-Mozilla-CA.spec@ 1567

Last change on this file since 1567 was 1313, checked in by Silvan Scherrer, 8 years ago

spec: perl-Mozilla-CA: Release version 20160104-1.

File size: 2.0 KB
Line 
1Name: perl-Mozilla-CA
2# You do not need to back-port new version for list of certificates solely.
3# They are taken from ca-certificates package instead per bug #738383.
4Version: 20160104
5Release: 1%{?dist}
6Summary: Mozilla's CA cert bundle in PEM format
7License: MPLv2.0
8Group: Development/Libraries
9URL: http://search.cpan.org/dist/Mozilla-CA/
10Vendor: bww bitwise works GmbH
11Source0: http://www.cpan.org/authors/id/A/AB/ABH/Mozilla-CA-%{version}.tar.gz
12# Use CA bundle from ca-certificates package, bug #738383
13Patch0: Mozilla-CA-20160104-Redirect-to-ca-certificates-bundle.patch
14BuildArch: noarch
15BuildRequires: coreutils
16BuildRequires: findutils
17BuildRequires: make
18#BuildRequires: perl-interpreter
19BuildRequires: perl-generators
20BuildRequires: perl(ExtUtils::MakeMaker)
21BuildRequires: sed
22# Run-time:
23BuildRequires: ca-certificates
24BuildRequires: perl(strict)
25BuildRequires: perl(File::Spec)
26# Tests:
27BuildRequires: perl(Test)
28Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
29Requires: ca-certificates
30
31%description
32Mozilla::CA provides a path to ca-certificates copy of Mozilla's bundle of
33certificate authority certificates in a form that can be consumed by modules
34and libraries based on OpenSSL.
35
36%prep
37%setup -q -n Mozilla-CA-%{version}
38%patch0 -p1
39# Remove bundled CA bundle for sure
40rm lib/Mozilla/CA/cacert.pem
41# Do not distribute Mozilla downloader, we take certificates from
42# ca-certificates package
43rm mk-ca-bundle.pl
44sed -i '/^mk-ca-bundle.pl$/d' MANIFEST
45
46%build
47perl Makefile.PL INSTALLDIRS=vendor
48make %{?_smp_mflags}
49make manifypods
50
51%install
52make pure_install DESTDIR=$RPM_BUILD_ROOT
53find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
54%{_fixperms} $RPM_BUILD_ROOT/*
55
56%check
57#make test
58
59%files
60%doc Changes README
61%{perl_vendorlib}/*
62%{_mandir}/man3/*
63
64%changelog
65* Thu Feb 22 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> - 20160104-1
66- initial version
Note: See TracBrowser for help on using the repository browser.