[521] | 1 | %define module Crypt-DSA |
---|
| 2 | %define name perl-%{module} |
---|
[5888] | 3 | %define version 1.17 |
---|
[9109] | 4 | %define release 2%{_dist_release} |
---|
[521] | 5 | |
---|
| 6 | Name: %{name} |
---|
| 7 | Version: %{version} |
---|
| 8 | Release: %{release} |
---|
| 9 | Summary: DSA Signatures and Key Generation |
---|
[9109] | 10 | Group: Development/Libraries |
---|
[521] | 11 | License: GPL or Artistic |
---|
| 12 | Url: http://search.cpan.org/dist/%{module}/ |
---|
| 13 | Source: http://search.cpan.org/CPAN/authors/id/B/BT/BTROTT/%{module}-%{version}.tar.gz |
---|
| 14 | BuildArch: noarch |
---|
[5888] | 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[521] | 16 | BuildRequires: perl-Digest-SHA1, perl(Math::BigInt) |
---|
[5888] | 17 | BuildRequires: perl(Carp) |
---|
| 18 | BuildRequires: perl(Convert::PEM) |
---|
| 19 | BuildRequires: perl(Crypt::DES_EDE3) |
---|
| 20 | BuildRequires: perl(Data::Buffer) >= 0.01 |
---|
| 21 | BuildRequires: perl(Digest::SHA1) |
---|
| 22 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 23 | BuildRequires: perl(File::Spec) |
---|
| 24 | BuildRequires: perl(File::Which) >= 0.05 |
---|
| 25 | BuildRequires: perl(IPC::Open3) |
---|
| 26 | BuildRequires: perl(Math::BigInt) >= 1.78 |
---|
| 27 | BuildRequires: perl(Math::BigInt::GMP) |
---|
| 28 | BuildRequires: perl(Perl::MinimumVersion) >= 1.20 |
---|
| 29 | BuildRequires: perl(Test::CPAN::Meta) >= 0.12 |
---|
| 30 | BuildRequires: perl(Test::More) >= 0.42 |
---|
| 31 | BuildRequires: perl(Test::MinimumVersion) >= 0.008 |
---|
| 32 | BuildRequires: perl(Test::Pod) >= 1.26 |
---|
| 33 | BuildRequires: openssl |
---|
| 34 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
| 35 | # Crypt::DSA::Keychain calls openssl for DSA parameter generation |
---|
| 36 | Requires: openssl |
---|
| 37 | # Some operations are really slow without GMP (or Pari, but we test with GMP) |
---|
| 38 | Requires: perl(Math::BigInt::GMP) |
---|
[521] | 39 | |
---|
| 40 | Vendor: Project Vine |
---|
| 41 | Distribution: Vine Linux |
---|
| 42 | |
---|
| 43 | %description |
---|
| 44 | Crypt::DSA is an implementation of the DSA (Digital Signature Algorithm) |
---|
| 45 | signature verification system. The implementation itself is pure Perl, |
---|
| 46 | although the heavy-duty mathematics underneath are provided by |
---|
| 47 | the Math::Pari library. |
---|
| 48 | |
---|
| 49 | This package provides DSA signing, signature verification, |
---|
| 50 | and key generation. |
---|
| 51 | |
---|
| 52 | %prep |
---|
| 53 | %setup -q -n %{module}-%{version} |
---|
| 54 | |
---|
| 55 | %build |
---|
[5888] | 56 | CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" |
---|
[521] | 57 | %{__make} |
---|
| 58 | |
---|
| 59 | %check |
---|
[5888] | 60 | echo -e "\n\nWill take several minutes for the tests. Please wait.\n\n" |
---|
| 61 | ## WARNING: you'll need many hardware input / network traffic |
---|
| 62 | ## to keep the 'entropy pool' filled with random bits - |
---|
| 63 | ## otherwise the test will take enormous amount of time (shaolin) |
---|
[521] | 64 | %{__make} test |
---|
[5888] | 65 | %{__make} test AUTOMATED_TESTING=1 TEST_FILES="xt/*.t" |
---|
[521] | 66 | |
---|
| 67 | %install |
---|
[5888] | 68 | make pure_install DESTDIR=%{buildroot} |
---|
| 69 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
| 70 | find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null |
---|
| 71 | %{_fixperms} %{buildroot} |
---|
[521] | 72 | |
---|
| 73 | %clean |
---|
| 74 | rm -rf %{buildroot} |
---|
| 75 | |
---|
| 76 | %files |
---|
| 77 | %defattr(-,root,root) |
---|
| 78 | %doc README Changes |
---|
| 79 | %{_mandir}/man3*/* |
---|
| 80 | %{perl_vendorlib}/Crypt/* |
---|
| 81 | |
---|
| 82 | %changelog |
---|
[9109] | 83 | * Sat Nov 22 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.17-2 |
---|
| 84 | - rebuilt with perl 5.16.3 |
---|
| 85 | - moved to Development/Libraries Group |
---|
| 86 | |
---|
[5888] | 87 | * Mon Mar 12 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.17-1 |
---|
| 88 | - updated to 1.17 |
---|
| 89 | |
---|
[521] | 90 | * Fri May 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.14-1vl5 |
---|
| 91 | - rebuild with perl 5.10 |
---|
| 92 | - new versioning policy |
---|
| 93 | |
---|
| 94 | * Mon Mar 10 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.14-0vl1 |
---|
| 95 | - built for VineSeed |
---|
| 96 | |
---|
| 97 | * Sat Mar 08 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.14-0vl0.43 |
---|
| 98 | - add Requires: perl-Convert-PEM/perl-Data-Buffer |
---|
| 99 | |
---|
| 100 | * Sun Mar 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.14-0vl0.42 |
---|
| 101 | - built for Vine 4.2 (testing) |
---|
| 102 | - 1st build for Vine |
---|
| 103 | |
---|
| 104 | |
---|