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