import perl-CPAN-DistnameInfo-0.12-13.module+el8.2.0+4278+29f88ddb

This commit is contained in:
CentOS Sources 2020-06-09 20:34:20 +00:00 committed by Andrew Lukoshko
parent f5be40921e
commit e62f8909e2

View File

@ -1,6 +1,6 @@
Name: perl-CPAN-DistnameInfo
Version: 0.12
Release: 12%{?dist}
Release: 13%{?dist}
Summary: Extract distribution name and version from a distribution filename
License: GPL+ or Artistic
Group: Development/Libraries
@ -27,6 +27,12 @@ http://search.cpan.org/ to extract the distribution name and version
from filenames and also report if the version is to be treated as a
developer release.
%package dummy
Summary: A dummy package
%description dummy
To pass rpmbuild without creating %{name} binary package.
This package will be filtered on a module build level.
%prep
%setup -q -n CPAN-DistnameInfo-%{version}
@ -43,12 +49,22 @@ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%check
make test
%if "%{_module_name}" == "perl-App-cpanminus" && 0%(perl -e 'print $^V =~ m/\Av5\.30\./')
%files dummy
%exclude %{perl_vendorlib}/CPAN/
%exclude %{_mandir}/man3/CPAN::DistnameInfo.3pm*
%else
%files
%doc Changes README
%{perl_vendorlib}/CPAN/
%{_mandir}/man3/CPAN::DistnameInfo.3pm*
%endif
%changelog
* Tue Sep 24 2019 Petr Pisar <ppisar@redhat.com> - 0.12-13
- Remove perl-CPAN-DistnameInfo RPM package from perl-App-cpanminus module with
perl:5.30 (bug #1713592)
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-12
- Rebuild with enable hardening (bug #1636329)