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