1 |
%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib) |
2 |
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch) |
3 |
%define perlname esmith-PasswordTools |
4 |
Summary: Perl esmith::PasswordTools module |
5 |
Name: perl-%{perlname} |
6 |
Version: 0.02 |
7 |
Release: 2%{?dist} |
8 |
License: Artistic, GPL |
9 |
Group: System Environment/Libraries |
10 |
Source: esmith-PasswordTools-0.02.tar.gz |
11 |
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot |
12 |
BuildArch: noarch |
13 |
Requires: smeserver-release >= 7 |
14 |
URL: http://geodsoft.com/howto/password/ |
15 |
BuildPrereq: perl |
16 |
|
17 |
|
18 |
%description |
19 |
Generates easily pronounceable and easy to remember passwords that pass the SME server password strength check. |
20 |
|
21 |
SYNOPSIS |
22 |
use esmith::PasswordTools; |
23 |
$siz=8; $addConsonants='yes', $firstUpper='yes'; $mixedCase='no'; $symbolOdds=10, $symbols=''; |
24 |
$pw = esmith::PasswordTools::generate_password( $siz, $addConsonants, $firstUpper, $mixedCase, $symbolOdds, $symbols ); |
25 |
$pw = esmith::PasswordTools::sme_generate_password( $siz, $addConsonants, $mixedCase ); |
26 |
|
27 |
%changelog |
28 |
* Sat Mar 01 2008 Michael Weinberger <mweinber@neddix.de> 0.02-2 |
29 |
fix spec file |
30 |
|
31 |
%prep |
32 |
%setup -n %{perlname}-%{version} |
33 |
|
34 |
|
35 |
%build |
36 |
%{__perl} Makefile.PL </dev/null |
37 |
%{__sed} -e 's:^\(INSTALL[A-Z0-9_]*\(BIN\|ARCH\|SCRIPT\|LIB\|MAN[1-9]DIR\)\) = :\1 = '"$RPM_BUILD_ROOT"':' Makefile >Makefile2 |
38 |
%{__cat} Makefile2 >Makefile |
39 |
%{__make} |
40 |
|
41 |
|
42 |
%install |
43 |
[ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT |
44 |
%{__make} install INSTALLDIRS=vendor |
45 |
%{__rm} -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod |
46 |
%{__rm} -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/esmith/PasswordTools/.packlist |
47 |
|
48 |
|
49 |
%clean |
50 |
[ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT |
51 |
|
52 |
|
53 |
%files |
54 |
%defattr(-,root,root) |
55 |
|
56 |
%dir %{_libdir}/perl5/5.8.5 |
57 |
%{perl_vendorlib}/esmith/PasswordTools.pm |
58 |
%dir %{perl_vendorlib}/esmith |
59 |
%{perl_vendorlib}/auto/esmith/PasswordTools/autosplit.ix |
60 |
%{perl_vendorlib}/auto/esmith/PasswordTools/sme_generate_password.al |
61 |
%{perl_vendorlib}/auto/esmith/PasswordTools/generate_password.al |
62 |
%{perl_vendorlib}/auto/esmith/PasswordTools/validate_password.al |
63 |
%dir %{perl_vendorlib}/auto/esmith/PasswordTools |
64 |
%dir %{perl_vendorlib}/auto/esmith |
65 |
%dir %{perl_vendorlib}/auto |
66 |
%doc %{_mandir}/man3/esmith::PasswordTools.3pm* |
67 |
%doc Changes README |