3 %bcond_without tests # do not perform "make test"
7 Summary: Mozilla::CA - Mozilla's CA cert bundle in PEM format
8 Summary(pl.UTF-8): Mozilla::CA - pakiet certyfikatów CA Mozilli w formacie PEM
10 # although upsream has new releases, there is no benefit of that other than
11 # feeling library is fresh, as we do not use certs provided by this module.
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Mozilla/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 8ac3fe1a83c45da3f468f78ab8133ea6
18 Patch0: system-ca-certificates.patch
19 URL: http://search.cpan.org/dist/Mozilla-CA/
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
22 Requires: ca-certificates
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Mozilla::CA provides a path to ca-certificates copy of Mozilla's
28 bundle of certificate authority certificates in a form that can be
29 consumed by modules and libraries based on OpenSSL.
31 %description -l pl.UTF-8
32 Mozilla::CA dostarcza kopię pakietu certyfikatów CA (Certificate
33 Authority) w postaci nadającej się do odczytu przez moduły i
34 biblioteki oparte na OpenSSL.
37 %setup -q -n %{pdir}-%{pnam}-%{version}
40 # Do not distribute Mozilla downloader, we take certificates from ca-certificates package
41 %{__rm} mk-ca-bundle.pl
42 sed -i '/^mk-ca-bundle.pl$/d' MANIFEST
45 %{__perl} Makefile.PL \
49 %{?with_tests:%{__make} test}
52 rm -rf $RPM_BUILD_ROOT
54 %{__make} pure_install \
55 DESTDIR=$RPM_BUILD_ROOT
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
63 %{perl_vendorlib}/Mozilla/CA.pm
64 %{_mandir}/man3/Mozilla::CA.3pm*