]>
Commit | Line | Data |
---|---|---|
c8d1ff64 AO |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
688131e2 | 4 | |
ad42ae1b AO |
5 | %define pdir Crypt |
6 | %define pnam OpenSSL-X509 | |
c8d1ff64 AO |
7 | Summary: Crypt::OpenSSL::X509 - Perl extension to OpenSSL's X509 API |
8 | Name: perl-%{pdir}-%{pnam} | |
e8c4cf3e | 9 | Version: 1.811 |
44b8e4e7 | 10 | Release: 6 |
c8d1ff64 AO |
11 | License: GPL v1+ or Artistic |
12 | Group: Development/Languages/Perl | |
13 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
e8c4cf3e | 14 | # Source0-md5: d8c9212dc0ce4d3924ec9739acf445cd |
688131e2 | 15 | URL: http://search.cpan.org/dist/Crypt-OpenSSL-X509/ |
e8c4cf3e | 16 | BuildRequires: perl(Module::Install) |
c8d1ff64 AO |
17 | BuildRequires: perl-devel >= 1:5.8.0 |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | This implement a large majority of OpenSSL's useful X509 API. | |
23 | ||
24 | The email() method supports both certificates where the subject is of | |
25 | the form: "... CN=Firstname lastname/emailAddress=user@domain", and | |
26 | also certificates where there is a X509v3 Extension of the form | |
27 | "X509v3 Subject Alternative Name: email=user@domain". | |
28 | ||
29 | %prep | |
30 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
31 | ||
32 | %build | |
33 | %{__perl} Makefile.PL \ | |
34 | INSTALLDIRS=vendor | |
35 | %{__make} \ | |
36 | CC="%{__cc}" \ | |
37 | OPTIMIZE="%{rpmcflags}" | |
38 | ||
39 | %{?with_tests:%{__make} test} | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %{__make} pure_install \ | |
45 | DESTDIR=$RPM_BUILD_ROOT | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
52 | %doc Changes README TODO | |
53 | %{perl_vendorarch}/Crypt/OpenSSL/*.pm | |
54 | %dir %{perl_vendorarch}/auto/Crypt/OpenSSL/X509 | |
c8d1ff64 AO |
55 | %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/OpenSSL/X509/*.so |
56 | %{_mandir}/man3/* |