1 %include /usr/lib/rpm/macros.perl
4 Summary: Crypt::Enigma Perl module - WWII Enigma Machine implementation
5 Summary(pl): Modu³ Perla Crypt::Enigma - implementacja maszyny Enigma z IIW¦
6 Name: perl-Crypt-Enigma
9 License: Artistic or GPL
10 Group: Development/Languages/Perl
11 Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
12 BuildRequires: perl >= 5.6
13 BuildRequires: rpm-perlprov >= 3.0.3-16
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 This module is a complete working Perl implementation of the Enigma
19 Machine used during World War II. The cipher calculations are based on
20 actual Enigma values and the resulting ciphered values are as would be
21 expected from an Enigma Machine.
24 Ten modu³ jest pe³n± implementacj± w Perlu maszyny szyfruj±cej Enigma,
25 u¿ywanej w czasie II Wojny ¦wiatowej. Obliczenia szyfru bazuj± na
26 prawdziwych warto¶ciach wziêtych z enigmy i daj± wyniki takie, jakie
30 %setup -q -n %{pdir}-%{pnam}-%{version}
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
42 DESTDIR=$RPM_BUILD_ROOT
44 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
52 %{perl_sitelib}/Crypt/Enigma.pm
54 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}