3 %bcond_without tests # Do not perform "make test"
7 Summary: Crypt::OOEnigma Perl module - flexible interface to Enigma
8 Summary(pl.UTF-8): Moduł Perla Crypt::OOEnigma - elastyczny interfejs do Enigmy
9 Name: perl-Crypt-OOEnigma
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: e8c14d05b89a30574d1a5d6cea239cde
17 URL: http://search.cpan.org/dist/Crypt-OOEnigma/
18 BuildRequires: perl-Test-Simple >= 0.41
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 A flexible, object-oriented interface to a WWII Enigma machine.
26 Commercial and Military Enigmas are provided for use and modification.
27 You can easily construct your own with any number of rotors, your own
28 ciphers in each component etc. Those who wish to explore an Enigma
29 with historically accurate ciphers should try Crypt::Enigma or use
30 this module to create their own Enigma with WWII ciphers.
32 %description -l pl.UTF-8
33 Moduł Crypt::OOEnigma jest elastycznym, zorientowanym obiektowo
34 interfejsem do maszyny Enigma z II Wojny Światowej. Pozwala używać i
35 modyfikować komercyjne i militarne wersje Enigmy. Można łatwo
36 skonstruować własną z dowolną liczbą bębnów, własnymi szyframi dla
37 każdego komponentu itp. Chcący używać Enigmy z historycznymi szyframi
38 powinni użyć modułu Crypt::Enigma lub użyć tego modułu do stworzenia
39 własnej Enigmy z szyframi z IIWŚ.
42 %setup -q -n %{pdir}-%{pnam}-%{version}
45 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
55 DESTDIR=$RPM_BUILD_ROOT
57 cp -p bin/Enigma.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %{perl_vendorlib}/Crypt/OOEnigma.pm
66 %{perl_vendorlib}/Crypt/OOEnigma
68 %{_examplesdir}/%{name}-%{version}