3 %bcond_without tests # Do not perform "make test"
7 Summary: Crypt::PassGen Perl module - generate a random password
8 Summary(pl.UTF-8): Moduł Perla Crypt::PassGen - generujący losowe hasła
9 Name: perl-Crypt-PassGen
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: e8aad942e5d407654d726f9c9a9d359a
17 URL: http://search.cpan.org/dist/Crypt-PassGen/
18 Patch0: %{name}-FHS.patch
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildConflicts: wordlist
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This module provides a single command for generating random password
29 that is close enough to a real word that it is easy to remember. It
30 does this by using the frequency of letter combinations in a language.
32 %description -l pl.UTF-8
33 Ten moduł udostępnia polecenie do generowania losowych haseł
34 zbliżonych do prawdziwych słów na tyle, że są łatwe do zapamiętania.
35 Używa do tego tablicy częstości występowania kombinacji liter w danym
39 %setup -q -n %{pdir}-%{pnam}-%{version}
43 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %{perl_vendorlib}/Crypt/PassGen.pm
61 %{perl_vendorlib}/Crypt/PassGenWordFreq.dat