perl-Crypt-Cracklib/perl-Crypt-Cracklib.spec

Name: perl-Crypt-Cracklib
Summary: Perl interface to Alec Muffett's Cracklib
Version: 1.7
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Crypt-Cracklib/
Description: Perl interface to Alec Muffett's Cracklib.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: Dan Sully <daniel@cpan.org>

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name Crypt-Cracklib

Summary: Perl interface to Alec Muffett's Cracklib
Name: perl-Crypt-Cracklib
Version: 1.7
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Crypt-Cracklib/

Source: http://www.cpan.org/modules/by-module/Crypt/Crypt-Cracklib-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: perl >= 0:5.004
BuildRequires: perl(Pod::Coverage) >= 0.19
BuildRequires: perl(Test::More) >= 0.47
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(CPAN)
BuildRequires: cracklib-devel
Requires: perl >= 0:5.004

%description
Perl interface to Alec Muffett's Cracklib.

%prep
%setup -n %{real_name}-%{version}

%build
CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc Changes MANIFEST META.yml README
%doc %{_mandir}/man3/Crypt::Cracklib.3pm*
%dir %{perl_vendorarch}/auto/Crypt/
%{perl_vendorarch}/auto/Crypt/Cracklib/
%dir %{perl_vendorarch}/Crypt/
%{perl_vendorarch}/Crypt/Cracklib.pm

%changelog
* Sat Feb 13 2016 Dries Verachtert <dries.verachtert@dries.eu> - 1.7-1
- Updated to release 1.7.

* Sun Jun 22 2008 Dag Wieers <dag@wieers.com> - 1.4-1
- Updated to release 1.4.

* Sun Feb 24 2008 Dag Wieers <dag@wieers.com> - 1.2-1
- Updated to release 1.2.

* Fri Nov 23 2007 Dag Wieers <dag@wieers.com> - 1.1-1
- Initial package. (using DAR)