]> git.pld-linux.org Git - packages/perl-Crypt-Enigma.git/blob - perl-Crypt-Enigma.spec
- new
[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):    Modu³ Perla Crypt::Enigma - implementacja maszyny Enigma z IIW¦
6 Name:           perl-Crypt-Enigma
7 Version:        1.3
8 Release:        1
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
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
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.
22
23 %description -l pl
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
27 powinna daæ maszyna.
28
29 %prep
30 %setup -q -n %{pdir}-%{pnam}-%{version}
31
32 %build
33 perl Makefile.PL
34 %{__make}
35 %{__make} test
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
40
41 %{__make} install \
42         DESTDIR=$RPM_BUILD_ROOT
43
44 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files
50 %defattr(644,root,root,755)
51 %doc Changes README
52 %{perl_sitelib}/Crypt/Enigma.pm
53 %{_mandir}/man3/*
54 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}
This page took 0.070347 seconds and 4 git commands to generate.