[521] | 1 | %define module Crypt-DES_EDE3 |
---|
| 2 | %define name perl-%{module} |
---|
| 3 | %define version 0.01 |
---|
[9062] | 4 | %define release 3%{_dist_release} |
---|
[521] | 5 | |
---|
| 6 | Name: %{name} |
---|
| 7 | Version: %{version} |
---|
| 8 | Release: %{release} |
---|
| 9 | Summary: Triple-DES EDE encryption/decryption |
---|
[9062] | 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 | |
---|
| 15 | BuildArch: noarch |
---|
| 16 | BuildRoot: %{_tmppath}/%{name}-%{version} |
---|
[9062] | 17 | Buildrequires: perl(Crypt::DES) |
---|
| 18 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 19 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
[521] | 20 | |
---|
| 21 | Vendor: Project Vine |
---|
| 22 | Distribution: Vine Linux |
---|
| 23 | |
---|
| 24 | %description |
---|
| 25 | Crypt::DES_EDE3 implements DES-EDE3 encryption. |
---|
| 26 | This is triple-DES encryption where an encrypt operation is |
---|
| 27 | encrypt-decrypt-encrypt, and decrypt is decrypt-encrypt-decrypt. |
---|
| 28 | This implementation uses Crypt::DES to do its dirty DES work, |
---|
| 29 | and simply provides a wrapper around that module: setting up |
---|
| 30 | the individual DES ciphers, initializing the keys, and performing |
---|
| 31 | the encryption/decryption steps. |
---|
| 32 | |
---|
| 33 | DES-EDE3 encryption requires a key size of 24 bytes. |
---|
| 34 | |
---|
| 35 | You're probably best off not using this module directly, |
---|
| 36 | as the encrypt and decrypt methods expect 8-octet blocks. |
---|
| 37 | You might want to use the module in conjunction with Crypt::CBC, |
---|
| 38 | for example. This would be DES-EDE3-CBC, or triple-DES in outer CBC mode. |
---|
| 39 | |
---|
| 40 | #' |
---|
| 41 | %prep |
---|
| 42 | %setup -q -n %{module}-%{version} |
---|
| 43 | |
---|
| 44 | %build |
---|
[9062] | 45 | CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{_prefix}" |
---|
[521] | 46 | %{__make} |
---|
| 47 | |
---|
| 48 | # %check |
---|
| 49 | # %{__make} test |
---|
| 50 | |
---|
| 51 | %install |
---|
[9062] | 52 | rm -rf $RPM_BUILD_ROOT |
---|
| 53 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 54 | |
---|
| 55 | # rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod |
---|
[521] | 56 | # rm -rf %{buildroot}%{perl_vendorarch} |
---|
[9062] | 57 | find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; |
---|
[521] | 58 | |
---|
| 59 | %clean |
---|
[9062] | 60 | rm -rf $RPM_BUILD_ROOT |
---|
[521] | 61 | |
---|
| 62 | %files |
---|
| 63 | %defattr(-,root,root) |
---|
| 64 | %doc README Changes |
---|
| 65 | %{_mandir}/man3*/* |
---|
| 66 | %{perl_vendorlib}/Crypt/* |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | %changelog |
---|
[9062] | 70 | * Wed Nov 5 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.01-3 |
---|
| 71 | - rebuilt with perl 5.16.3 |
---|
| 72 | - moved to Development/Libraries Group |
---|
| 73 | |
---|
[3736] | 74 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.01-2 |
---|
| 75 | - rebuild with perl-5.12.3 |
---|
| 76 | |
---|
[521] | 77 | * Fri May 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-1vl5 |
---|
| 78 | - rebuild with perl 5.10 |
---|
| 79 | - new versioning policy |
---|
| 80 | |
---|
| 81 | * Mon Mar 10 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-0vl1 |
---|
| 82 | - built for VineSeed |
---|
| 83 | |
---|
| 84 | * Sat Mar 08 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-0vl0.43 |
---|
| 85 | - add Requires: and Buildrequires: perl-Crypt-DES |
---|
| 86 | |
---|
| 87 | * Tue Mar 04 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.01-0vl0.42 |
---|
| 88 | - built for Vine 4.2 (testing) |
---|
| 89 | |
---|