#
# Conditional build:
-# _without_tests - do not perform "make test"
-#
-%include /usr/lib/rpm/macros.perl
+%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): Modu³ Perla Crypt::PassGen - generuj±cy losowe has³a
+Summary(pl.UTF-8): Moduł Perla Crypt::PassGen - generujący losowe hasła
Name: perl-Crypt-PassGen
-Version: 0.03
+Version: 0.05
Release: 1
-License: Artistic or GPL
+# 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 >= 5.6
-BuildRequires: perl-Storable
-BuildRequires: rpm-perlprov >= 3.0.3-16
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
BuildRequires: words
BuildConflicts: wordlist
Requires: words
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.
+%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
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
%{__make}
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc ChangeLog README
-%{perl_sitelib}/Crypt/PassGen.pm
-%{perl_sitelib}/Crypt/PassGenWordFreq.dat
+%{perl_vendorlib}/Crypt/PassGen.pm
+%{perl_vendorlib}/Crypt/PassGenWordFreq.dat
%{_mandir}/man3/*