]> git.pld-linux.org Git - packages/perl-Mozilla-CA.git/blame - perl-Mozilla-CA.spec
use system ca-certificates
[packages/perl-Mozilla-CA.git] / perl-Mozilla-CA.spec
CommitLineData
2c6631bc 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
9a3b0fe8 4
2c6631bc 5%define pdir Mozilla
6%define pnam CA
7%include /usr/lib/rpm/macros.perl
8Summary: Mozilla::CA - Mozilla's CA cert bundle in PEM format
57794477 9Summary(pl.UTF-8): Mozilla::CA - pakiet certyfikatów CA Mozilli w formacie PEM
2c6631bc 10Name: perl-Mozilla-CA
a3dad361 11Version: 20130114
2c6631bc 12Release: 1
57794477 13License: MPL v1.1 or GPL v2+ or LGPL v2.1+
2c6631bc 14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/Mozilla/%{pdir}-%{pnam}-%{version}.tar.gz
a3dad361 16# Source0-md5: 45a42082dbd68cf25869ceb2aa49d5b2
9a3b0fe8 17Patch0: system-ca-certificates.patch
57794477 18URL: http://search.cpan.org/dist/Mozilla-CA/
2c6631bc 19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
9a3b0fe8 21Requires: ca-certificates
2c6631bc 22BuildArch: noarch
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
9a3b0fe8
ER
26Mozilla::CA provides a path to ca-certificates copy of Mozilla's
27bundle of certificate authority certificates in a form that can be
28consumed by modules and libraries based on OpenSSL.
2c6631bc 29
57794477
JB
30%description -l pl.UTF-8
31Mozilla::CA dostarcza kopię pakietu certyfikatów CA (Certificate
32Authority) w postaci nadającej się do odczytu przez moduły i
33biblioteki oparte na OpenSSL.
2c6631bc 34
35%prep
36%setup -q -n %{pdir}-%{pnam}-%{version}
9a3b0fe8
ER
37%patch0 -p1
38
39# Do not distribute Mozilla downloader, we take certificates from ca-certificates package
40rm mk-ca-bundle.pl
41sed -i '/^mk-ca-bundle.pl$/d' MANIFEST
2c6631bc 42
43%build
44%{__perl} Makefile.PL \
45 INSTALLDIRS=vendor
46%{__make}
47
48%{?with_tests:%{__make} test}
49
50%install
51rm -rf $RPM_BUILD_ROOT
52
53%{__make} pure_install \
54 DESTDIR=$RPM_BUILD_ROOT
55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
59%files
60%defattr(644,root,root,755)
57794477
JB
61%doc Changes README
62%{perl_vendorlib}/Mozilla/CA.pm
9a3b0fe8 63#%{perl_vendorlib}/Mozilla/CA
57794477 64%{_mandir}/man3/Mozilla::CA.3pm*
This page took 0.028792 seconds and 4 git commands to generate.