Name: perl-Parse-Distname Version: 0.05 Release: 4%{?dist} Summary: Parse a distribution name License: GPL+ or Artistic URL: https://metacpan.org/dist/Parse-Distname Source0: https://cpan.metacpan.org/modules/by-module/Parse/Parse-Distname-%{version}.tar.gz BuildArch: noarch # Module Build BuildRequires: coreutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(ExtUtils::MakeMaker::CPANfile) >= 0.08 # Module Runtime BuildRequires: perl(Carp) BuildRequires: perl(Exporter) >= 5.57 BuildRequires: perl(strict) BuildRequires: perl(warnings) # Test Suite BuildRequires: perl(JSON::PP) BuildRequires: perl(Test::Differences) BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Test::UseAllModules) >= 0.17 # Dependencies Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description Parse::Distname is yet another distribution name parser. It works almost the same as CPAN::DistnameInfo, but Parse::Distname takes a different approach. It tries to extract the version part of a distribution and treat the rest as a distribution name, contrary to CPAN::DistnameInfo which tries to define a name part and treat the rest as a version. Because of this difference, when Parse::Distname parses a weird distribution name such as "AUTHOR/v1.0.tar.gz", it says the name is empty and the version is "v1.0", while CPAN::DistnameInfo says the name is "v" and the version is "1.0". See test files in this distribution if you need more details. As of this writing, Parse::Distname returns a different result for about 200+ distributions among about 320000 BackPan distributions. %prep %setup -q -n Parse-Distname-%{version} %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install %{make_install} %{_fixperms} -c %{buildroot} %check make test %files %license LICENSE %doc Changes README %{perl_vendorlib}/Parse/ %{_mandir}/man3/Parse::Distname.3* %changelog * Fri Jul 22 2022 Fedora Release Engineering - 0.05-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue May 31 2022 Jitka Plesnikova - 0.05-3 - Perl 5.36 rebuild * Thu Apr 28 2022 Paul Howarth - 0.05-2 - Incorporate feedback from package review (#2073377) - perl(strict) is a run-time dependency, not just a test dependency - Don't package the tests as documentation * Fri Apr 8 2022 Paul Howarth - 0.05-1 - Initial RPM version