Blame SPECS/perl-PathTools.spec

856d4b
%{?scl:%scl_package perl-PathTools}
856d4b
856d4b
%global cpan_version 3.47
856d4b
Name:           %{?scl_prefix}perl-PathTools
856d4b
Version:        %(echo '%{cpan_version}' | tr _ .)
856d4b
Release:        311%{?dist}
856d4b
Summary:        PathTools Perl module (Cwd, File::Spec)
856d4b
License:        (GPL+ or Artistic) and BSD
856d4b
Group:          Development/Libraries
856d4b
URL:            http://search.cpan.org/dist/PathTools/
856d4b
Source0:        http://www.cpan.org/authors/id/S/SM/SMUELLER/PathTools-%{cpan_version}.tar.gz
856d4b
# Disable VMS test (bug #973713)
856d4b
Patch0:         PathTools-3.47-Disable-VMS-tests.patch
856d4b
BuildRequires:  %{?scl_prefix}perl
856d4b
BuildRequires:  %{?scl_prefix}perl(ExtUtils::MakeMaker)
856d4b
# Run-time:
856d4b
BuildRequires:  %{?scl_prefix}perl(Carp)
856d4b
BuildRequires:  %{?scl_prefix}perl(constant)
856d4b
BuildRequires:  %{?scl_prefix}perl(Exporter)
856d4b
# File::Basename not needed because of removed File::Spec::VMS
856d4b
BuildRequires:  %{?scl_prefix}perl(Scalar::Util)
856d4b
BuildRequires:  %{?scl_prefix}perl(strict)
856d4b
BuildRequires:  %{?scl_prefix}perl(vars)
856d4b
# Tests:
856d4b
BuildRequires:  %{?scl_prefix}perl(Carp::Heavy)
856d4b
BuildRequires:  %{?scl_prefix}perl(Config)
856d4b
BuildRequires:  %{?scl_prefix}perl(File::Path)
856d4b
BuildRequires:  %{?scl_prefix}perl(lib)
856d4b
BuildRequires:  %{?scl_prefix}perl(Test::More)
856d4b
Requires:       %{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'}))
856d4b
Requires:       %{?scl_prefix}perl(Carp)
856d4b
Requires:       %{?scl_prefix}perl(Scalar::Util)
856d4b
856d4b
%{?perl_default_filter}
856d4b
856d4b
%description
856d4b
This is the combined distribution for the File::Spec and Cwd modules.
856d4b
856d4b
%prep
856d4b
%setup -q -n PathTools-%{cpan_version}
856d4b
%patch0 -p1
856d4b
# Remove bundled modules
856d4b
rm -r t/lib
856d4b
sed -i -e '/^t\/lib\//d' MANIFEST
856d4b
# Do not distribute File::Spec::VMS as it works on VMS only (bug #973713)
856d4b
rm lib/File/Spec/VMS.pm
856d4b
sed -i -e '/^lib\/File\/Spec\/VMS.pm/d' MANIFEST
856d4b
856d4b
%build
856d4b
%{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" && make %{?_smp_mflags}%{?scl:'}
856d4b
856d4b
%install
856d4b
%{?scl:scl enable %{scl} '}make pure_install DESTDIR=$RPM_BUILD_ROOT%{?scl:'}
856d4b
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
856d4b
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
856d4b
%{_fixperms} $RPM_BUILD_ROOT/*
856d4b
856d4b
%check
856d4b
%{?scl:scl enable %{scl} '}make test%{?scl:'}
856d4b
856d4b
%files
856d4b
%doc Changes README
856d4b
%{perl_vendorarch}/auto/*
856d4b
%{perl_vendorarch}/Cwd.pm
856d4b
%{perl_vendorarch}/File/
856d4b
%{_mandir}/man3/*
856d4b
856d4b
%changelog
856d4b
* Tue Jan 13 2015 Petr Pisar <ppisar@redhat.com> - 3.47-311
856d4b
- Require constant module
856d4b
856d4b
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.47-310
856d4b
- Increase release to favour standalone package
856d4b
856d4b
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.47-4
856d4b
- Perl 5.20 rebuild
856d4b
856d4b
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.47-3
856d4b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
856d4b
856d4b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.47-2
856d4b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
856d4b
856d4b
* Tue May 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.47-1
856d4b
- 3.47 bump
856d4b
856d4b
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.40-291
856d4b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
856d4b
856d4b
* Mon Jul 15 2013 Petr Pisar <ppisar@redhat.com> - 3.40-290
856d4b
- Increase release to favour standalone package
856d4b
856d4b
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 3.40-4
856d4b
- Link minimal build-root packages against libperl.so explicitly
856d4b
856d4b
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 3.40-3
856d4b
- Disable VMS test (bug #973713)
856d4b
856d4b
* Fri Jun 14 2013 Petr Pisar <ppisar@redhat.com> - 3.40-2
856d4b
- Do not distribute File::Spec::VMS (bug #973713)
856d4b
856d4b
* Mon Feb 04 2013 Petr Pisar <ppisar@redhat.com> - 3.40-1
856d4b
- 3.40 bump
856d4b
856d4b
* Tue Sep 18 2012 Petr Pisar <ppisar@redhat.com> - 3.39.01-1
856d4b
- 3.39_01 bump
856d4b
856d4b
* Wed Aug 15 2012 Petr Pisar <ppisar@redhat.com> - 3.33-8
856d4b
- Specify all dependencies
856d4b
856d4b
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.33-7
856d4b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
856d4b
856d4b
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 3.33-6
856d4b
- Perl 5.16 rebuild
856d4b
856d4b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.33-5
856d4b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
856d4b
856d4b
* Mon Jul 25 2011 Petr Pisar <ppisar@redhat.com> - 3.33-4
856d4b
- RPM 4.9 dependency filtering added
856d4b
856d4b
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 3.33-3
856d4b
- Perl mass rebuild
856d4b
856d4b
* Sun May 29 2011 Ville Skyttä <ville.skytta@iki.fi> - 3.33-2
856d4b
- Own the %%{perl_vendorarch}/File dir.
856d4b
856d4b
* Mon Feb 28 2011 Marcela Mašláňová <mmaslano@redhat.com> 3.33-1
856d4b
- Specfile autogenerated by cpanspec 1.79.