]> git.pld-linux.org Git - SPECS.git/blob - perl-Crypt-OOEnigma.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-Crypt-OOEnigma.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # Do not perform "make test"
4
5 %define         pdir    Crypt
6 %define         pnam    OOEnigma
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
10 Version:        0.3
11 Release:        5
12 # same as perl
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
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
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.
31
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Ś.
40
41 %prep
42 %setup -q -n %{pdir}-%{pnam}-%{version}
43
44 %build
45 %{__perl} Makefile.PL \
46         INSTALLDIRS=vendor
47 %{__make}
48 %{?with_tests:%{__make} test}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53
54 %{__make} install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 cp -p bin/Enigma.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc Changes README
65 %{perl_vendorlib}/Crypt/OOEnigma.pm
66 %{perl_vendorlib}/Crypt/OOEnigma
67 %{_mandir}/man3/*
68 %{_examplesdir}/%{name}-%{version}
This page took 0.385324 seconds and 3 git commands to generate.