# Detect the distribution in use %global __despace head -n 1 | tr -d '[:space:]' | sed -e 's/[(].*[)]//g' %global __lower4 cut -c 1-4 | tr '[:upper:]' '[:lower:]' %global __distfile %([ -f /etc/SuSE-release ] && echo /etc/SuSE-release || echo /etc/redhat-release) %global __distinit %(sed -e 's/ release .*//' -e 's/\\([A-Za-z]\\)[^ ]*/\\1/g' %{__distfile} | %{__despace} | %{__lower4}) %global __distvers %(sed -e 's/.* release \\([^. ]*\\).*/\\1/' %{__distfile} | %{__despace}) # Identify Alma, CentOS, CentOS Stream and Rocky Linux as rhel %if "%{__distinit}" == "a" || "%{__distinit}" == "c" || "%{__distinit}" == "cl" || "%{__distinit}" == "cs" || "%{__distinit}" == "rl" %global __distinit rhel %endif # Dist tag for Fedora is still "fc" %if "%{__distinit}" == "f" %global __distinit fc %endif Name: perl-Crypt-Cracklib Version: 1.7 Release: 43.%{__distinit}%{__distvers} Summary: Crypt-Cracklib - Perl interface to Alec Muffett's Cracklib License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Crypt-Cracklib Source0: https://cpan.metacpan.org/modules/by-module/Crypt/Crypt-Cracklib-1.7.tar.gz Patch0: Crypt-Cracklib-1.7-Fix-building-on-Perl-without-dot-in-INC.patch Patch1: Crypt-Cracklib-1.7-Detect-gzipped-dictionary.patch # Module Build BuildRequires: coreutils BuildRequires: cracklib-devel BuildRequires: findutils BuildRequires: gcc BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter # Dependencies of bundled Module::Install tools BuildRequires: perl(Carp) BuildRequires: perl(Config) BuildRequires: perl(Cwd) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::Manifest) BuildRequires: perl(Fcntl) BuildRequires: perl(File::Basename) BuildRequires: perl(File::Find) BuildRequires: perl(File::Path) BuildRequires: perl(File::Spec) BuildRequires: perl(FindBin) BuildRequires: perl(JSON) BuildRequires: perl(Parse::CPAN::Meta) BuildRequires: perl(YAML::Tiny) # Module Runtime BuildRequires: perl(DynaLoader) BuildRequires: perl(Exporter) BuildRequires: perl(strict) BuildRequires: perl(vars) # Test Suite BuildRequires: cracklib-dicts BuildRequires: perl(Test::More) # Optional Tests BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Test::Pod::Coverage) >= 1.08 # Dependencies %if 0%{?fedora} < 38 && 0%{?rhel} < 10 Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %endif %description This module providers interaction with the system cracklib libraries. %prep %setup -q -n Crypt-Cracklib-%{version} # Fix building on Perl without '.' in @INC # https://github.com/dsully/perl-crypt-cracklib/issues/4 %patch -P 0 # Detect gzipped dictionary # https://github.com/dsully/perl-crypt-cracklib/issues/1 %patch -P 1 -p1 %build perl Makefile.PL INSTALLDIRS=vendor --skipdeps < /dev/null make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -delete find %{buildroot} -name Cracklib.bs -empty -delete %{_fixperms} -c %{buildroot} %check make test %files %doc Changes README %{perl_vendorarch}/auto/Crypt/ %{perl_vendorarch}/Crypt/ %{_mandir}/man3/Crypt::Cracklib.3* %changelog * Thu Jun 13 2024 Paul Howarth - 1.7-43 - Perl 5.40 rebuild * Wed Jul 12 2023 Paul Howarth - 1.7-39 - Perl 5.38 rebuild - Avoid use of deprecated patch syntax * Sun Mar 12 2023 Paul Howarth - 1.7-38 - Use SPDX-format license tag * Wed Jun 1 2022 Paul Howarth - 1.7-36 - Perl 5.36 rebuild * Sat May 22 2021 Paul Howarth - 1.7-33 - Perl 5.34 rebuild * Fri Jun 26 2020 Paul Howarth - 1.7-30 - Perl 5.32 rebuild * Sun Jun 2 2019 Paul Howarth - 1.7-27 - Perl 5.30 rebuild * Fri Mar 8 2019 Paul Howarth - 1.7-26 - BR: gcc * Thu Jun 28 2018 Paul Howarth - 1.7-23 - Perl 5.28 rebuild * Tue Aug 8 2017 Paul Howarth - 1.7-21 - BR: perl-generators unconditionally - BR: perl-interpreter rather than perl * Tue Jun 13 2017 Paul Howarth - 1.7-20 - Fix building on Perl without '.' in @INC (GH#4) * Mon Apr 10 2017 Paul Howarth - 1.7-19 - Import from Fedora * Sat Feb 11 2017 Fedora Release Engineering - 1.7-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun May 15 2016 Jitka Plesnikova - 1.7-17 - Perl 5.24 rebuild * Wed Apr 20 2016 Petr Pisar - 1.7-16 - Require a password dictionary for tests (bug #1327040) * Thu Feb 04 2016 Fedora Release Engineering - 1.7-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.7-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 06 2015 Jitka Plesnikova - 1.7-13 - Perl 5.22 rebuild * Thu Aug 28 2014 Jitka Plesnikova - 1.7-12 - Perl 5.20 rebuild * Sun Aug 17 2014 Fedora Release Engineering - 1.7-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.7-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 1.7-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Aug 02 2013 Petr Pisar - 1.7-8 - Perl 5.18 rebuild - Detect gzipped dictionary * Thu Feb 14 2013 Fedora Release Engineering - 1.7-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 1.7-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Jun 11 2012 Petr Pisar - 1.7-5 - Perl 5.16 rebuild - Fix dependencies * Fri Jan 13 2012 Fedora Release Engineering - 1.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Jun 17 2011 Marcela Mašláňová - 1.7-3 - Perl mass rebuild * Tue Feb 08 2011 Fedora Release Engineering - 1.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sun Feb 06 2011 Carl Thompson - 1.7-1 - Upgraded to version 1.7 - Added patch to remove AutoMake functions of perl so it's dependant on packages - Updated spec to work with Fedora and epel builds - Updated spec to deal with perl module install paths * Wed Jul 28 2010 Carl Thompson - 1.5-3 - Update files section for cleaner docs list - Removed epoch - Added Crypt as a directory owned by package * Tue Jul 27 2010 Carl Thompson - 1:1.5-2 - Added check section to spec - Removed BUILD_ROOT check in install and clean - Included the README and Changes files to the installation - Re-enabled the internal dependency checks * Tue Jul 20 2010 Carl Thompson - 1:1.5-1 - Update to 1.5 * Sat Jul 17 2010 Carl Thompson - 1:1.4-1 - Initial build