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