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