# # Conditional build: # _without_tests - do not perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir Crypt %define pnam PassGen Summary: Crypt::PassGen Perl module - generate a random password Summary(pl): Moduł Perla Crypt::PassGen - generujący losowe hasła Name: perl-Crypt-PassGen Version: 0.03 Release: 1 License: Artistic or GPL Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz Patch0: %{name}-FHS.patch BuildRequires: perl >= 5.6 BuildRequires: perl-Storable BuildRequires: rpm-perlprov >= 3.0.3-16 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 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 %{__make} %{!?_without_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_sitelib}/Crypt/PassGen.pm %{perl_sitelib}/Crypt/PassGenWordFreq.dat %{_mandir}/man3/*