]>
Commit | Line | Data |
---|---|---|
d9837f68 | 1 | # |
2 | # Conditional build: | |
6515ad96 | 3 | %bcond_with tests # perform "make test" |
7fc87b68 | 4 | |
5f8902a7 | 5 | %define pdir Crypt |
6 | %define pnam RandPasswd | |
7fc87b68 | 7 | %include /usr/lib/rpm/macros.perl |
f7658d83 | 8 | Summary: Crypt::RandPasswd Perl module - pronounceable passwords generator |
2790a732 | 9 | Summary(pl.UTF-8): Moduł Perla Crypt::RandPasswd - generator wymawialnych haseł |
f7658d83 JB |
10 | Name: perl-Crypt-RandPasswd |
11 | Version: 0.02 | |
fe15e0a1 | 12 | Release: 6 |
81468629 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
f7658d83 | 15 | Group: Development/Languages/Perl |
5b6120aa | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
81cb6328 | 17 | # Source0-md5: c266c6f10b59945d7dddc58ecef6e13b |
7fc87b68 | 18 | URL: http://search.cpan.org/dist/Crypt-RandPasswd/ |
ff7a0225 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
c8089ebc | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
f7658d83 JB |
21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | This code is a Perl language implementation of the Automated Password | |
26 | Generator standard, like the program described in "A Random Word | |
27 | Generator For Pronounceable Passwords". This code is a re-engineering | |
28 | of the program contained in Appendix A of FIPS Publication 181, | |
29 | "Standard for Automated Password Generator". | |
30 | ||
79cd7b98 JR |
31 | %description -l pl.UTF-8 |
32 | Ten moduł jest perlową implementacją standardu automatycznego | |
33 | generatora haseł, takiego jak program opisany w "A Random Word | |
34 | Generator For Pronounceable Passwords" (generator losowych słów na | |
35 | potrzeby wymawialnych haseł). Ten kod jest ponowną implementacją | |
36 | programu zawartego w załączniku A publikacji FIPS numer 181 "Standard | |
f7658d83 JB |
37 | for Automated Password Generator". |
38 | ||
39 | %prep | |
40 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
41 | ||
42 | %build | |
c8089ebc | 43 | %{__perl} Makefile.PL \ |
0147b767 | 44 | INSTALLDIRS=vendor |
f7658d83 | 45 | %{__make} |
d9837f68 | 46 | |
47 | # it may hang on a machine that does not receive enough random events | |
6515ad96 | 48 | %{?with_tests:%{__make} test} |
f7658d83 JB |
49 | |
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %{__make} install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc Changes README | |
c8089ebc | 62 | %{perl_vendorlib}/Crypt/RandPasswd.pm |
f7658d83 | 63 | %{_mandir}/man3/* |