]>
Commit | Line | Data |
---|---|---|
7bbed3ad | 1 | # |
2 | # Conditional build: | |
c76c20cd | 3 | %bcond_without tests # Do not perform "make test" |
cf34a8ac | 4 | |
2448fe68 | 5 | %define pdir Crypt |
6 | %define pnam PassGen | |
90695b28 | 7 | Summary: Crypt::PassGen Perl module - generate a random password |
408efd77 | 8 | Summary(pl.UTF-8): Moduł Perla Crypt::PassGen - generujący losowe hasła |
90695b28 | 9 | Name: perl-Crypt-PassGen |
fbdf60a0 | 10 | Version: 0.05 |
11 | Release: 1 | |
de0f1309 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
90695b28 | 14 | Group: Development/Languages/Perl |
9b722fb6 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
fbdf60a0 | 16 | # Source0-md5: e8aad942e5d407654d726f9c9a9d359a |
cf34a8ac | 17 | URL: http://search.cpan.org/dist/Crypt-PassGen/ |
61292914 | 18 | Patch0: %{name}-FHS.patch |
adeecc95 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
2209d909 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
61292914 | 21 | BuildRequires: words |
22 | BuildConflicts: wordlist | |
23 | Requires: words | |
90695b28 JB |
24 | BuildArch: noarch |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
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. | |
31 | ||
dee05e13 JR |
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 | |
36 | języku. | |
90695b28 JB |
37 | |
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
61292914 | 40 | %patch0 -p1 |
90695b28 JB |
41 | |
42 | %build | |
2209d909 | 43 | %{__perl} Makefile.PL \ |
800a0b33 | 44 | INSTALLDIRS=vendor |
90695b28 | 45 | %{__make} |
c76c20cd | 46 | %{?with_tests:%{__make} test} |
90695b28 JB |
47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc ChangeLog README | |
2209d909 | 60 | %{perl_vendorlib}/Crypt/PassGen.pm |
61 | %{perl_vendorlib}/Crypt/PassGenWordFreq.dat | |
90695b28 | 62 | %{_mandir}/man3/* |