]> git.pld-linux.org Git - packages/perl-Crypt-X509.git/blob - perl-Crypt-X509.spec
- up to 0.52
[packages/perl-Crypt-X509.git] / perl-Crypt-X509.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    Crypt
7 %define         pnam    X509
8 Summary:        Crypt::X509 - Parse a X.509 certificate
9 Name:           perl-Crypt-X509
10 Version:        0.52
11 Release:        1
12 License:        Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  dfca86dbbfa9d1e470a18f2b0d140dc0
16 URL:            http://search.cpan.org/dist/Crypt-X509/
17 BuildRequires:  perl-Convert-ASN1
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 Crypt::X509 parses X.509 certificates. Methods are provided for
25 accessing most certificate elements.
26
27 %prep
28 %setup -q -n %{pdir}-%{pnam}-%{version}
29
30 %build
31 %{__perl} Makefile.PL \
32         INSTALLDIRS=vendor
33
34 %{__make} \
35         CC="%{__cc}" \
36         OPTIMIZE="%{rpmcflags}"
37
38 %{?with_tests:%{__make} test}
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42
43 %{__make} install \
44         DESTDIR=$RPM_BUILD_ROOT
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files
50 %defattr(644,root,root,755)
51 %doc Changes README
52 %{perl_vendorlib}/Crypt/X509.pm
53 %{_mandir}/man3/Crypt::*.3pm*
This page took 0.087588 seconds and 3 git commands to generate.