# # Conditional build: # _without_tests - do not perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir Crypt %define pnam GeneratePassword Summary: Crypt::GeneratePassword - generate secure random pronounceable passwords Summary(pl): Crypt::GeneratePassword - generuj bezpieczne, losowe, wymawialne hasła Name: perl-Crypt-GeneratePassword Version: 0.02 Release: 2 License: GPL/Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: a361420e59af50a2073f142506a713b0 BuildRequires: perl-devel >= 5.6 BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Crypt::GeneratePassword generates random passwords that are (more or less) pronounceable. Unlike Crypt::RandPasswd, it doesn't use the FIPS-181 NIST standard, which is proven to be insecure. It does use a similar interface, so it should be a drop-in replacement in most cases. %description -l pl Crypt::GeneratePassword generuje losowe hasła, (lepiej lub gorzej) wymawialne. W odróżnieniu od Crypt::RandPasswd, nie używa on standardu FIPS-181 NIST, który -- jak udowodniono -- nie jest bezpieczny. Używa za to podobnego interfejsu, więc zastępowanie w większości przypadków powinno być bezproblemowe. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__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 Change* README %{perl_vendorlib}/%{pdir}/*.pm %{perl_vendorlib}/%{pdir}/%{pnam} %{_mandir}/man3/*