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