diff --git a/.gitignore b/.gitignore index c3c1be6..5f96212 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/Crypt-PasswdMD5-1.40.tgz +SOURCES/Crypt-PasswdMD5-1.42.tgz diff --git a/.perl-Crypt-PasswdMD5.metadata b/.perl-Crypt-PasswdMD5.metadata index 768b817..be098ac 100644 --- a/.perl-Crypt-PasswdMD5.metadata +++ b/.perl-Crypt-PasswdMD5.metadata @@ -1 +1 @@ -7bc5aa63adefb575462eaf1430af9812a0541295 SOURCES/Crypt-PasswdMD5-1.40.tgz +91ef85ff414f1fc1969fce371a2016825d131206 SOURCES/Crypt-PasswdMD5-1.42.tgz diff --git a/SOURCES/Crypt-PasswdMD5-1.42-d:md5-version.patch b/SOURCES/Crypt-PasswdMD5-1.42-d:md5-version.patch new file mode 100644 index 0000000..c530a34 --- /dev/null +++ b/SOURCES/Crypt-PasswdMD5-1.42-d:md5-version.patch @@ -0,0 +1,11 @@ +--- lib/Crypt/PasswdMD5.pm ++++ lib/Crypt/PasswdMD5.pm +@@ -3,7 +3,7 @@ package Crypt::PasswdMD5; + use strict; + use warnings; + +-use Digest::MD5; ++use Digest::MD5 2.53; + use Encode; + + use Exporter 'import'; diff --git a/SPECS/perl-Crypt-PasswdMD5.spec b/SPECS/perl-Crypt-PasswdMD5.spec index 44922b6..d02ed07 100644 --- a/SPECS/perl-Crypt-PasswdMD5.spec +++ b/SPECS/perl-Crypt-PasswdMD5.spec @@ -1,29 +1,31 @@ -%global cpan_version 1.40 -Name: perl-Crypt-PasswdMD5 +%global cpan_version 1.42 + +Name: perl-Crypt-PasswdMD5 # Keep 1-digit version because of history -Version: %(echo '%{cpan_version}' | sed 's/\.\(.\)/.\1./') -Release: 11%{?dist} -Summary: Provides interoperable MD5-based crypt() functions -License: GPL+ or Artistic -Group: Development/Libraries -URL: http://search.cpan.org/dist/Crypt-PasswdMD5/ -Source0: http://search.cpan.org/CPAN/authors/id/R/RS/RSAVAGE/Crypt-PasswdMD5-%{cpan_version}.tgz -BuildArch: noarch -BuildRequires: perl-interpreter +Version: %(echo '%{cpan_version}' | sed 's/\.\(.\)/.\1./') +Release: 7%{?dist} +Summary: Provides interoperable MD5-based crypt() functions +License: GPL-1.0-or-later OR Artistic-1.0-Perl +URL: https://metacpan.org/release/Crypt-PasswdMD5 +Source0: https://cpan.metacpan.org/modules/by-module/Crypt/Crypt-PasswdMD5-%{cpan_version}.tgz +Patch0: Crypt-PasswdMD5-1.42-d:md5-version.patch +BuildArch: noarch +# Build: +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make BuildRequires: perl-generators +BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(strict) -BuildRequires: perl(warnings) # Run-time: BuildRequires: perl(Digest::MD5) >= 2.53 +BuildRequires: perl(Encode) BuildRequires: perl(Exporter) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) # Tests: -BuildRequires: perl(Test::More) >= 0.94 -Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) -Requires: perl(Digest::MD5) >= 2.53 - -# Filer under-specified dependencies -%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Digest::MD5\\)$ +BuildRequires: perl(Test::More) >= 1.001002 +# Dependencies: %description This package provides MD5-based crypt() functions. @@ -31,26 +33,113 @@ This package provides MD5-based crypt() functions. %prep %setup -q -n Crypt-PasswdMD5-%{cpan_version} +# Specify version requirement for Digest::MD5 +# This avoids the need to add an explicit dependency in the spec file +# and the need to filter the underspecified auto-generated dependency +%patch -P0 + %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} -find %{buildroot} -type f -name .packlist -exec rm -f {} ';' -chmod -R u+w %{buildroot}/* +find %{buildroot} -type f -name .packlist -delete +%{_fixperms} -c %{buildroot} %check make test %files +%license LICENSE %doc Changes README -%{perl_vendorlib}/Crypt -%{_mandir}/man3/* +%{perl_vendorlib}/Crypt/ +%{_mandir}/man3/Crypt::PasswdMD5.3* %changelog -* Tue Dec 12 2023 Arkady L. Shane - 1.4.0-11 -- Rebuilt for MSVSphere 8.9 +* Mon Dec 23 2024 Arkady L. Shane - 1.4.2-7 +- Rebuilt for MSVSphere 10 + +* Thu Jan 25 2024 Fedora Release Engineering - 1.4.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.4.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 1.4.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Mar 03 2023 Michal Josef Špaček - 1.4.2-4 +- Update license to SPDX format + +* Fri Jan 20 2023 Fedora Release Engineering - 1.4.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.4.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jul 13 2022 Paul Howarth - 1.4.2-1 +- Update to 1.42 + - Handle the case where the password has the utf8 bit set (GH#1) + - Update t/basic.t to use Encode and to test the utf8 bit setting + - Very slightly reformat the source code of PasswdMD5.pm and basic.t + +* Mon May 30 2022 Jitka Plesnikova - 1.4.1-5 +- Perl 5.36 rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 1.4.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 1.4.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri May 21 2021 Jitka Plesnikova - 1.4.1-2 +- Perl 5.34 rebuild + +* Mon Feb 1 2021 Paul Howarth - 1.4.1-1 +- Update to 1.41 + - Adopt new repo structure - see: + http://savage.net.au/Ron/html/My.Workflow.for.Building.Distros.html + - Reformat Makefile.PL + - Add t/00.* + - Update POD to change RT to GitHub +- Package new LICENSE file + +* Wed Jan 27 2021 Fedora Release Engineering - 1.4.0-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 1.4.0-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jun 22 2020 Jitka Plesnikova - 1.4.0-19 +- Perl 5.32 rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 1.4.0-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Oct 18 2019 Paul Howarth - 1.4.0-17 +- Spec tidy-up + - Use author-independent source URL + - Specify all build dependencies + - Simplify Digest::MD5 versioned dependency generation using a patch + - Simplify find command using -delete + - Fix permissions verbosely + - Make %%files list more explicit + +* Fri Jul 26 2019 Fedora Release Engineering - 1.4.0-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu May 30 2019 Jitka Plesnikova - 1.4.0-15 +- Perl 5.30 rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 1.4.0-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1.4.0-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Jun 27 2018 Jitka Plesnikova - 1.4.0-12 +- Perl 5.28 rebuild * Thu Feb 08 2018 Fedora Release Engineering - 1.4.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild @@ -139,7 +228,7 @@ make test - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Mar 06 2008 Tom "spot" Callaway - 1.3-3.1 -Rebuild for new perl +- Rebuild for new perl * Mon Oct 15 2007 Tom "spot" Callaway - 1.3-2.1 - correct license tag