Files
perl-Data-Password/perl-Data-Password.spec

78 lines
2.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Data-Password
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
#Distribution: %dist
#Packager: %packager
#Vendor: %vendor
Name: perl-Data-Password
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Perl extension for assesing password quality
Version: 1.07
Release: 1
Url: http://search.cpan.org/perldoc?Data::Password
Group: Development/Libraries/Perl
License: Artistic License
Source: %{cpan_name}-%{version}.tar.bz2
Patch1: %{name}-1.07-dict.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
%{perl_requires}
Requires: words
%description
%{cpan_name} module for perl
This modules checks potential passwords for crackability. It checks that the
password is in the appropriate length, that it has enough character groups,
that it does not contain the same chars repeatedly or ascending or descending
characters, or charcters close to each other in the keyboard. It will also
attempt to search the ispell word file for existance of whole words. The
module's policies can be modified by changing its variables. (Check
"VARIABLES").
Author: Raz Information Systems, razinf@cpan.org, raz@raz.co.il.
%prep
%setup -q -n %{cpan_name}-%{version}
%patch1 -p0
%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
%{__make}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
# normally you only need to check for doc files
%defattr(-,root,root)
%doc Changes README
%changelog