]>
Commit | Line | Data |
---|---|---|
7dea297c | 1 | %define pdir Crypt |
2 | %define pnam ECB | |
ab6f9702 | 3 | %include /usr/lib/rpm/macros.perl |
c060dc57 | 4 | Summary: Crypt::ECB Perl module - implementation of the ECB mode |
a45abfb9 | 5 | Summary(pl.UTF-8): Moduł Perla Crypt::ECB - implementacja trybu ECB |
c060dc57 | 6 | Name: perl-Crypt-ECB |
490fdbab SS |
7 | Version: 1.45 |
8 | Release: 1 | |
f9303015 | 9 | License: GPL v2+ |
c060dc57 | 10 | Group: Development/Languages/Perl |
490fdbab SS |
11 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
12 | # Source0-md5: c0eb6e86045c1145fbc7867a84e2dcdd | |
ab6f9702 | 13 | URL: http://search.cpan.org/dist/Crypt-ECB/ |
b210e21d | 14 | BuildRequires: perl-devel >= 1:5.8.0 |
cfa0d0aa | 15 | BuildRequires: rpm-perlprov >= 4.1-13 |
c060dc57 JB |
16 | BuildArch: noarch |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | This module is a Perl-only implementation of the ECB mode. In | |
21 | combination with a block cipher such as DES, IDEA or Blowfish, you can | |
22 | encrypt and decrypt messages of arbitrarily long length. Though for | |
23 | security reasons other modes than ECB such as CBC should be preferred. | |
24 | See textbooks on cryptography if you want to know why. | |
25 | ||
19cb8b4f JR |
26 | %description -l pl.UTF-8 |
27 | Ten moduł jest czysto perlową implementacją trybu ECB. W połączeniu z | |
28 | szyfrem blokowym, takim jak DES, IDEA lub Blowfish, można kodować i | |
29 | rozkodowywać wiadomości o dowolnej długości. Jednak ze względów | |
30 | bezpieczeństwa lepiej używać innych trybów niż ECB, na przykład CBC. | |
31 | Odpowiedź dlaczego znajduje się w książkach z dziedziny kryptografii. | |
c060dc57 JB |
32 | |
33 | %prep | |
34 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
35 | ||
36 | %build | |
cfa0d0aa | 37 | %{__perl} Makefile.PL \ |
ca2a4960 | 38 | INSTALLDIRS=vendor |
c060dc57 JB |
39 | %{__make} |
40 | %{__make} test | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %{__make} install \ | |
46 | DESTDIR=$RPM_BUILD_ROOT | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %doc README | |
cfa0d0aa | 54 | %{perl_vendorlib}/Crypt/ECB.pm |
c060dc57 | 55 | %{_mandir}/man3/* |