616447
Name:           perl-CPAN-DistnameInfo
616447
Version:        0.12
616447
Release:        13%{?dist}
616447
Summary:        Extract distribution name and version from a distribution filename
616447
License:        GPL+ or Artistic
616447
Group:          Development/Libraries
616447
URL:            http://search.cpan.org/dist/CPAN-DistnameInfo/
616447
Source0:        http://www.cpan.org/authors/id/G/GB/GBARR/CPAN-DistnameInfo-%{version}.tar.gz
616447
BuildArch:      noarch
616447
BuildRequires:  perl-generators
616447
BuildRequires:  perl(ExtUtils::MakeMaker)
616447
# Tests:
616447
BuildRequires:  perl(Data::Dumper)
616447
BuildRequires:  perl(Test::More)
616447
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
616447
616447
%description
616447
Many online services that are centered around CPAN attempt to
616447
associate multiple uploads by extracting a distribution name from the
616447
filename of the upload. For most distributions this is easy as they
616447
have used ExtUtils::MakeMaker or Module::Build to create the
616447
distribution, which results in a uniform name. But sadly not all
616447
uploads are created in this way.
616447
616447
CPAN::DistnameInfo uses heuristics that have been learnt by
616447
http://search.cpan.org/ to extract the distribution name and version
616447
from filenames and also report if the version is to be treated as a
616447
developer release.
616447
616447
%package dummy
616447
Summary:        A dummy package
616447
%description dummy
616447
To pass rpmbuild without creating %{name} binary package.
616447
This package will be filtered on a module build level.
616447
616447
%prep
616447
%setup -q -n CPAN-DistnameInfo-%{version}
616447
616447
%build
616447
perl Makefile.PL INSTALLDIRS=vendor
616447
make %{?_smp_mflags}
616447
616447
%install
616447
rm -rf $RPM_BUILD_ROOT
616447
make pure_install DESTDIR=$RPM_BUILD_ROOT
616447
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
616447
%{_fixperms} $RPM_BUILD_ROOT
616447
616447
%check
616447
make test
616447
616447
%if "%{_module_name}" == "perl-App-cpanminus" && 0%(perl -e 'print $^V =~ m/\Av5\.30\./')
616447
%files dummy
616447
%exclude %{perl_vendorlib}/CPAN/
616447
%exclude %{_mandir}/man3/CPAN::DistnameInfo.3pm*
616447
%else
616447
%files
616447
%doc Changes README
616447
%{perl_vendorlib}/CPAN/
616447
%{_mandir}/man3/CPAN::DistnameInfo.3pm*
616447
%endif
616447
616447
%changelog
616447
* Tue Sep 24 2019 Petr Pisar <ppisar@redhat.com> - 0.12-13
616447
- Remove perl-CPAN-DistnameInfo RPM package from perl-App-cpanminus module with
616447
  perl:5.30 (bug #1713592)
616447
616447
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-12
616447
- Rebuild with enable hardening (bug #1636329)
616447
616447
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-11
616447
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
616447
616447
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-10
616447
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
616447
616447
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-9
616447
- Perl 5.26 rebuild
616447
616447
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-8
616447
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
616447
616447
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-7
616447
- Perl 5.24 rebuild
616447
616447
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-6
616447
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
616447
616447
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-5
616447
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
616447
616447
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-4
616447
- Perl 5.22 rebuild
616447
616447
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-3
616447
- Perl 5.20 rebuild
616447
616447
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-2
616447
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
616447
616447
* Wed Oct  2 2013 Paul Howarth <paul@city-fan.org> - 0.12-1
616447
- Update to 0.12
616447
  - Grok dist names ending with something numeric containing underscores
616447
- Make %%files list more explicit
616447
- Drop %%defattr, redundant since rpm 4.4
616447
- Don't need to remove empty directories from the buildroot
616447
- Use DESTDIR rather than PERL_INSTALL_ROOT
616447
- Don't use macros for commands
616447
616447
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-10
616447
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
616447
616447
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.11-9
616447
- Perl 5.18 rebuild
616447
616447
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-8
616447
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
616447
616447
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-7
616447
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
616447
616447
* Fri Jun 08 2012 Petr Pisar <ppisar@redhat.com> - 0.11-6
616447
- Perl 5.16 rebuild
616447
- Specify all dependencies
616447
616447
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-5
616447
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
616447
616447
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.11-4
616447
- Perl mass rebuild
616447
616447
* Thu Jun 09 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.11-3
616447
- Perl 5.14 mass rebuild
616447
616447
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
616447
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
616447
616447
* Wed Dec 22 2010 Steven Pritchard <steve@kspei.com> 0.11-1
616447
- Update to 0.11.
616447
616447
* Wed Dec 15 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.10-2
616447
- Rebuild to fix problems with vendorarch/lib (#661697)
616447
616447
* Sun Dec 12 2010 Steven Pritchard <steve@kspei.com> 0.10-1
616447
- Update to 0.10.
616447
616447
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.09-2
616447
- Mass rebuild with perl-5.12.0
616447
616447
* Sat Feb 13 2010 Steven Pritchard <steve@kspei.com> 0.09-1
616447
- Update to 0.09.
616447
616447
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 0.08-3
616447
- rebuild against perl 5.10.1
616447
616447
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-2
616447
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
616447
616447
* Tue May 12 2009 Steven Pritchard <steve@kspei.com> 0.08-1
616447
- Update to 0.08.
616447
- BR Test::More.
616447
616447
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.07-2
616447
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
616447
616447
* Wed Jul 02 2008 Steven Pritchard <steve@kspei.com> 0.07-1
616447
- Update to 0.07.
616447
- Improve Summary.
616447
- Drop our copies of COPYING and Artistic.
616447
616447
* Fri Feb  8 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.06-4
616447
- rebuild for new perl
616447
616447
* Tue Apr 17 2007 Steven Pritchard <steve@kspei.com> 0.06-3
616447
- Use fixperms macro instead of our own chmod incantation.
616447
- BR ExtUtils::MakeMaker.
616447
616447
* Sat Sep 16 2006 Steven Pritchard <steve@kspei.com> 0.06-2
616447
- Canonicalize Source0 URL.
616447
- Fix find option order.
616447
616447
* Mon Sep 19 2005 Steven Pritchard <steve@kspei.com> 0.06-1
616447
- Specfile autogenerated.