]>
Commit | Line | Data |
---|---|---|
c060dc57 | 1 | %include /usr/lib/rpm/macros.perl |
7dea297c | 2 | %define pdir Crypt |
3 | %define pnam ECB | |
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 JB |
6 | Name: perl-Crypt-ECB |
7 | Version: 1.1 | |
0ae04b94 | 8 | Release: 3 |
f9303015 | 9 | License: GPL v2+ |
c060dc57 | 10 | Group: Development/Languages/Perl |
47c26991 | 11 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}-2.tar.gz |
60158a9f | 12 | # Source0-md5: 8c15a093e500abdd3ac24ca199fae7b9 |
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 |
c060dc57 | 54 | %{_mandir}/man3/* |