# # Conditional build: %bcond_without tests # Do not perform "make test" %define pdir Crypt %define pnam PassGen Summary: Crypt::PassGen Perl module - generate a random password Summary(pl.UTF-8): Moduł Perla Crypt::PassGen - generujący losowe hasła Name: perl-Crypt-PassGen Version: 0.05 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: e8aad942e5d407654d726f9c9a9d359a URL: http://search.cpan.org/dist/Crypt-PassGen/ Patch0: %{name}-FHS.patch BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildRequires: words BuildConflicts: wordlist Requires: words BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This module provides a single command for generating random password that is close enough to a real word that it is easy to remember. It does this by using the frequency of letter combinations in a language. %description -l pl.UTF-8 Ten moduł udostępnia polecenie do generowania losowych haseł zbliżonych do prawdziwych słów na tyle, że są łatwe do zapamiętania. Używa do tego tablicy częstości występowania kombinacji liter w danym języku. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %patch0 -p1 %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc ChangeLog README %{perl_vendorlib}/Crypt/PassGen.pm %{perl_vendorlib}/Crypt/PassGenWordFreq.dat %{_mandir}/man3/*