|
|
72b921 |
%{?scl:%scl_package perl-Module-CoreList}
|
|
|
72b921 |
|
|
|
72b921 |
Name: %{?scl_prefix}perl-Module-CoreList
|
|
|
72b921 |
# Epoch to compete with perl.spec
|
|
|
72b921 |
Epoch: 1
|
|
|
72b921 |
Version: 5.20141220
|
|
|
72b921 |
Release: 3%{?dist}
|
|
|
72b921 |
Summary: What modules are shipped with versions of perl
|
|
|
72b921 |
License: GPL+ or Artistic
|
|
|
72b921 |
Group: Development/Libraries
|
|
|
72b921 |
URL: http://search.cpan.org/dist/Module-CoreList/
|
|
|
72b921 |
Source0: http://www.cpan.org/authors/id/B/BI/BINGOS/Module-CoreList-%{version}.tar.gz
|
|
|
72b921 |
BuildArch: noarch
|
|
|
72b921 |
BuildRequires: %{?scl_prefix}perl
|
|
|
72b921 |
BuildRequires: %{?scl_prefix}perl(Config)
|
|
|
72b921 |
BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker)
|
|
|
72b921 |
# File::Copy not used
|
|
|
72b921 |
# Run-time:
|
|
|
72b921 |
# feature not used at tests
|
|
|
72b921 |
# Getopt::Long not used at tests
|
|
|
72b921 |
BuildRequires: %{?scl_prefix}perl(List::Util)
|
|
|
72b921 |
# Pod::Usage not used at tests
|
|
|
72b921 |
BuildRequires: %{?scl_prefix}perl(strict)
|
|
|
72b921 |
BuildRequires: %{?scl_prefix}perl(vars)
|
|
|
72b921 |
BuildRequires: %{?scl_prefix}perl(version) >= 0.88
|
|
|
72b921 |
BuildRequires: %{?scl_prefix}perl(warnings)
|
|
|
72b921 |
# Tests:
|
|
|
72b921 |
BuildRequires: %{?scl_prefix}perl(Test::More)
|
|
|
72b921 |
# Optional tests:
|
|
|
72b921 |
%if !%{defined perl_bootstrap} && !%{defined perl_small}
|
|
|
72b921 |
BuildRequires: %{?scl_prefix}perl(Test::Pod) >= 1.00
|
|
|
72b921 |
%endif
|
|
|
72b921 |
Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'}))
|
|
|
72b921 |
Requires: %{?scl_prefix}perl(List::Util)
|
|
|
72b921 |
Requires: %{?scl_prefix}perl(version) >= 0.88
|
|
|
72b921 |
|
|
|
72b921 |
# Remove under-specified dependencies
|
|
|
72b921 |
# RPM 4.8 style
|
|
|
72b921 |
%{?filter_setup:
|
|
|
72b921 |
%filter_from_requires /^%{?scl_prefix}perl(version)$/d
|
|
|
72b921 |
%?perl_default_filter
|
|
|
72b921 |
}
|
|
|
72b921 |
# RPM 4.9 style
|
|
|
72b921 |
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^%{?scl_prefix}perl\\(version\\)$
|
|
|
72b921 |
|
|
|
72b921 |
%description
|
|
|
72b921 |
Module::CoreList provides information on which core and dual-life modules
|
|
|
72b921 |
are shipped with each version of perl.
|
|
|
72b921 |
|
|
|
72b921 |
%package tools
|
|
|
72b921 |
Summary: Tool for listing modules shipped with perl
|
|
|
72b921 |
Group: Development/Tools
|
|
|
72b921 |
Requires: %{?scl_prefix}perl(feature)
|
|
|
72b921 |
Requires: %{?scl_prefix}perl(version) >= 0.88
|
|
|
72b921 |
Requires: %{?scl_prefix}perl-Module-CoreList = %{epoch}:%{version}-%{release}
|
|
|
72b921 |
# The files were distributed with perl.spec's subpackage
|
|
|
72b921 |
# perl-Module-CoreList <= 1:5.020001-309
|
|
|
72b921 |
Conflicts: %{?scl_prefix}perl-Module-CoreList < 1:5.20140914
|
|
|
72b921 |
|
|
|
72b921 |
%description tools
|
|
|
72b921 |
This package provides a corelist(1) tool which can be used to query what
|
|
|
72b921 |
modules were shipped with given perl version.
|
|
|
72b921 |
|
|
|
72b921 |
|
|
|
72b921 |
%prep
|
|
|
72b921 |
%setup -q -n Module-CoreList-%{version}
|
|
|
72b921 |
|
|
|
72b921 |
%build
|
|
|
72b921 |
%{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor && make %{?_smp_mflags}%{?scl:'}
|
|
|
72b921 |
|
|
|
72b921 |
%install
|
|
|
72b921 |
%{?scl:scl enable %{scl} '}make pure_install DESTDIR=$RPM_BUILD_ROOT%{?scl:'}
|
|
|
72b921 |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
72b921 |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
72b921 |
|
|
|
72b921 |
%check
|
|
|
72b921 |
%{?scl:scl enable %{scl} '}make test%{?scl:'}
|
|
|
72b921 |
|
|
|
72b921 |
%files
|
|
|
72b921 |
%doc Changes README
|
|
|
72b921 |
%{perl_vendorlib}/*
|
|
|
72b921 |
%{_mandir}/man3/*
|
|
|
72b921 |
|
|
|
72b921 |
%files tools
|
|
|
72b921 |
%doc README
|
|
|
72b921 |
%{_bindir}/corelist
|
|
|
72b921 |
%{_mandir}/man1/corelist.*
|
|
|
72b921 |
|
|
|
72b921 |
%changelog
|
|
|
72b921 |
* Sun Jan 25 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.20141220-3
|
|
|
72b921 |
- Rebuild of bootstrapped package
|
|
|
72b921 |
|
|
|
72b921 |
* Thu Jan 22 2015 Petr Pisar <ppisar@redhat.com> - 1:5.20141220-2
|
|
|
72b921 |
- Disable optional tests for small build root
|
|
|
72b921 |
|
|
|
72b921 |
* Fri Jan 02 2015 Petr Pisar <ppisar@redhat.com> - 1:5.20141220-1
|
|
|
72b921 |
- 5.20141220 bump
|
|
|
72b921 |
|
|
|
72b921 |
* Tue Nov 25 2014 Petr Pisar <ppisar@redhat.com> - 1:5.20141120-1
|
|
|
72b921 |
- 5.20141120 bump
|
|
|
72b921 |
|
|
|
72b921 |
* Tue Oct 21 2014 Petr Pisar <ppisar@redhat.com> - 1:5.20141020-1
|
|
|
72b921 |
- 5.20141020 bump
|
|
|
72b921 |
|
|
|
72b921 |
* Wed Oct 08 2014 Petr Pisar <ppisar@redhat.com> - 1:5.20141002-1
|
|
|
72b921 |
- 5.20141002 bump
|
|
|
72b921 |
|
|
|
72b921 |
* Wed Sep 17 2014 Petr Pisar <ppisar@redhat.com> 1:5.20140914-1
|
|
|
72b921 |
- Specfile autogenerated by cpanspec 1.78.
|