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