[8752] | 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. |
---|
[12120] | 8 | Version: 1.812 |
---|
[8752] | 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 | |
---|
[12120] | 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 |
---|
[8752] | 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} |
---|
[12120] | 46 | # Remove bundled modules |
---|
| 47 | rm -rf ./inc |
---|
[8752] | 48 | |
---|
| 49 | %build |
---|
[12120] | 50 | perl Makefile.PL INSTALLDIRS=vendor |
---|
| 51 | make %{?_smp_mflags} |
---|
[8752] | 52 | |
---|
| 53 | %install |
---|
| 54 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 55 | |
---|
[12120] | 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}/* |
---|
[8752] | 60 | |
---|
[12120] | 61 | %check |
---|
| 62 | make test |
---|
[8752] | 63 | |
---|
| 64 | %clean |
---|
| 65 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 66 | |
---|
[12120] | 67 | %files |
---|
[8752] | 68 | %defattr(-,root,root) |
---|
[12120] | 69 | %doc Changes README TODO |
---|
| 70 | %{perl_vendorarch}/auto/* |
---|
| 71 | %{perl_vendorarch}/Crypt/ |
---|
| 72 | %{_mandir}/man3/* |
---|
[8752] | 73 | |
---|
| 74 | %changelog |
---|
[12120] | 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 | |
---|
[11915] | 79 | * Sun Nov 18 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.811-1 |
---|
| 80 | - new upstream release. |
---|
| 81 | |
---|
[10261] | 82 | * Mon May 9 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.806-1 |
---|
| 83 | - new upstream release. |
---|
| 84 | |
---|
[8752] | 85 | * Mon Jul 7 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.804-1 |
---|
| 86 | - Initial build. |
---|