/[smecontribs]/rpms/perl-esmith-PasswordTools/contribs7/perl-esmith-PasswordTools.spec
ViewVC logotype

Contents of /rpms/perl-esmith-PasswordTools/contribs7/perl-esmith-PasswordTools.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Sat Mar 1 12:34:58 2008 UTC (16 years, 8 months ago) by mweinber
Branch: MAIN
CVS Tags: perl-esmith-PasswordTools-0_02-2_el4_sme
Changes since 1.2: +8 -3 lines
spec file fix. arch changed

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed