| 1 | Name: 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.
|
|---|
| 4 | Version: 20160104
|
|---|
| 5 | Release: 1%{?dist}
|
|---|
| 6 | Summary: Mozilla's CA cert bundle in PEM format
|
|---|
| 7 | License: MPLv2.0
|
|---|
| 8 | Group: Development/Libraries
|
|---|
| 9 | URL: http://search.cpan.org/dist/Mozilla-CA/
|
|---|
| 10 | Vendor: bww bitwise works GmbH
|
|---|
| 11 | Source0: http://www.cpan.org/authors/id/A/AB/ABH/Mozilla-CA-%{version}.tar.gz
|
|---|
| 12 | # Use CA bundle from ca-certificates package, bug #738383
|
|---|
| 13 | Patch0: Mozilla-CA-20160104-Redirect-to-ca-certificates-bundle.patch
|
|---|
| 14 | BuildArch: noarch
|
|---|
| 15 | BuildRequires: coreutils
|
|---|
| 16 | BuildRequires: findutils
|
|---|
| 17 | BuildRequires: make
|
|---|
| 18 | #BuildRequires: perl-interpreter
|
|---|
| 19 | BuildRequires: perl-generators
|
|---|
| 20 | BuildRequires: perl(ExtUtils::MakeMaker)
|
|---|
| 21 | BuildRequires: sed
|
|---|
| 22 | # Run-time:
|
|---|
| 23 | BuildRequires: ca-certificates
|
|---|
| 24 | BuildRequires: perl(strict)
|
|---|
| 25 | BuildRequires: perl(File::Spec)
|
|---|
| 26 | # Tests:
|
|---|
| 27 | BuildRequires: perl(Test)
|
|---|
| 28 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|---|
| 29 | Requires: ca-certificates
|
|---|
| 30 |
|
|---|
| 31 | %description
|
|---|
| 32 | Mozilla::CA provides a path to ca-certificates copy of Mozilla's bundle of
|
|---|
| 33 | certificate authority certificates in a form that can be consumed by modules
|
|---|
| 34 | and libraries based on OpenSSL.
|
|---|
| 35 |
|
|---|
| 36 | %prep
|
|---|
| 37 | %setup -q -n Mozilla-CA-%{version}
|
|---|
| 38 | %patch0 -p1
|
|---|
| 39 | # Remove bundled CA bundle for sure
|
|---|
| 40 | rm lib/Mozilla/CA/cacert.pem
|
|---|
| 41 | # Do not distribute Mozilla downloader, we take certificates from
|
|---|
| 42 | # ca-certificates package
|
|---|
| 43 | rm mk-ca-bundle.pl
|
|---|
| 44 | sed -i '/^mk-ca-bundle.pl$/d' MANIFEST
|
|---|
| 45 |
|
|---|
| 46 | %build
|
|---|
| 47 | perl Makefile.PL INSTALLDIRS=vendor
|
|---|
| 48 | make %{?_smp_mflags}
|
|---|
| 49 | make manifypods
|
|---|
| 50 |
|
|---|
| 51 | %install
|
|---|
| 52 | make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 53 | find $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
|
|---|