]> git.pld-linux.org Git - packages/perl-Crypt-Enigma.git/blob - perl-Crypt-Enigma.spec
2e2b1604955d04686ef5221814778eaa5b0240fe
[packages/perl-Crypt-Enigma.git] / perl-Crypt-Enigma.spec
1 %define         pdir    Crypt
2 %define         pnam    Enigma
3 %include        /usr/lib/rpm/macros.perl
4 Summary:        Crypt::Enigma Perl module - WWII Enigma Machine implementation
5 Summary(pl.UTF-8):      Moduł Perla Crypt::Enigma - implementacja maszyny Enigma z IIWŚ
6 Name:           perl-Crypt-Enigma
7 Version:        1.4
8 Release:        1
9 # same as perl
10 License:        GPL v1+ or Artistic
11 Group:          Development/Languages/Perl
12 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
13 # Source0-md5:  b42a31612adde7e4cfab73495df2f065
14 URL:            http://search.cpan.org/dist/Crypt-Enigma/
15 BuildRequires:  perl-devel >= 1:5.8.0
16 BuildRequires:  rpm-perlprov >= 4.1-13
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 This module is a complete working Perl implementation of the Enigma
22 Machine used during World War II. The cipher calculations are based on
23 actual Enigma values and the resulting ciphered values are as would be
24 expected from an Enigma Machine.
25
26 %description -l pl.UTF-8
27 Ten moduł jest pełną implementacją w Perlu maszyny szyfrującej Enigma,
28 używanej w czasie II Wojny Światowej. Obliczenia szyfru bazują na
29 prawdziwych wartościach wziętych z enigmy i dają wyniki takie, jakie
30 powinna dać maszyna.
31
32 %prep
33 %setup -q -n %{pdir}-%{pnam}-%{version}
34
35 %build
36 %{__perl} Makefile.PL \
37         INSTALLDIRS=vendor
38 %{__make}
39 %{__make} test
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
44
45 %{__make} install \
46         DESTDIR=$RPM_BUILD_ROOT
47
48 cp -p examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc Changes README
56 %{perl_vendorlib}/Crypt/Enigma.pm
57 %{_mandir}/man3/*
58 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}
This page took 0.055173 seconds and 2 git commands to generate.