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