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