1 | %define pkgname Crypt-OpenSSL-X509 |
---|
2 | %define filelist %{pkgname}-%{version}-filelist |
---|
3 | %define NVR %{pkgname}-%{version}-%{release} |
---|
4 | %define maketest 1 |
---|
5 | |
---|
6 | Name: perl-Crypt-OpenSSL-X509 |
---|
7 | Summary: Crypt-OpenSSL-X509 - Perl extension to OpenSSL's X509 API. |
---|
8 | Version: 1.812 |
---|
9 | Release: 1%{?_dist_release} |
---|
10 | Vendor: Project Vine |
---|
11 | Distribution: Vine Linux |
---|
12 | Packager: tomop |
---|
13 | License: Artistic |
---|
14 | Group: Development/Libraries |
---|
15 | URL: http://www.cpan.org |
---|
16 | buildroot: %{_tmppath}/%{name}-%{version}-%(id -u -n) |
---|
17 | Source: http://search.cpan.org//CPAN/authors/id/D/DA/DANIEL/Crypt-OpenSSL-X509-%{version}.tar.gz |
---|
18 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
19 | |
---|
20 | BuildRequires: openssl-devel |
---|
21 | BuildRequires: perl(inc::Module::Install) |
---|
22 | BuildRequires: perl(lib) |
---|
23 | BuildRequires: perl-Module-Install |
---|
24 | # will fail till removal of old perl-Crypt-OpenSSL-X509. |
---|
25 | %if 0 |
---|
26 | BuildRequires: perl(Module::Install::AutoInstall) |
---|
27 | BuildRequires: perl(Module::Install::Compiler) |
---|
28 | BuildRequires: perl(Module::Install::External) |
---|
29 | BuildRequires: perl(Module::Install::Makefile) |
---|
30 | BuildRequires: perl(Module::Install::Metadata) |
---|
31 | BuildRequires: perl(Module::Install::WriteAll) |
---|
32 | %endif |
---|
33 | |
---|
34 | %description |
---|
35 | This implement a large majority of OpenSSL's useful X509 API. |
---|
36 | |
---|
37 | The email() method supports both certificates where the |
---|
38 | subject is of the form: |
---|
39 | "... CN=Firstname lastname/emailAddress=user@domain", and also |
---|
40 | certificates where there is a X509v3 Extension of the form |
---|
41 | "X509v3 Subject Alternative Name: email=user@domain". |
---|
42 | |
---|
43 | %prep |
---|
44 | %setup -q -n %{pkgname}-%{version} |
---|
45 | chmod -R u+w %{_builddir}/%{pkgname}-%{version} |
---|
46 | # Remove bundled modules |
---|
47 | rm -rf ./inc |
---|
48 | |
---|
49 | %build |
---|
50 | perl Makefile.PL INSTALLDIRS=vendor |
---|
51 | make %{?_smp_mflags} |
---|
52 | |
---|
53 | %install |
---|
54 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
55 | |
---|
56 | make pure_install DESTDIR=%{buildroot} |
---|
57 | find %{buildroot} -type f -name .packlist -delete |
---|
58 | find %{buildroot} -type f -name '*.bs' -size 0 -delete |
---|
59 | %{_fixperms} %{buildroot}/* |
---|
60 | |
---|
61 | %check |
---|
62 | make test |
---|
63 | |
---|
64 | %clean |
---|
65 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
66 | |
---|
67 | %files |
---|
68 | %defattr(-,root,root) |
---|
69 | %doc Changes README TODO |
---|
70 | %{perl_vendorarch}/auto/* |
---|
71 | %{perl_vendorarch}/Crypt/ |
---|
72 | %{_mandir}/man3/* |
---|
73 | |
---|
74 | %changelog |
---|
75 | * Sun May 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.812-1 |
---|
76 | - new upstream release. |
---|
77 | - rebuilt with perl-5.26. |
---|
78 | |
---|
79 | * Sun Nov 18 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.811-1 |
---|
80 | - new upstream release. |
---|
81 | |
---|
82 | * Mon May 9 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.806-1 |
---|
83 | - new upstream release. |
---|
84 | |
---|
85 | * Mon Jul 7 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.804-1 |
---|
86 | - Initial build. |
---|