Blame SPECS/perl-PathTools.spec

22d2ea
%{?scl:%scl_package perl-PathTools}
22d2ea
22d2ea
%global base_version 3.62
22d2ea
Name:           %{?scl_prefix}perl-PathTools
22d2ea
Version:        3.63
22d2ea
Release:        367%{?dist}
22d2ea
Summary:        PathTools Perl module (Cwd, File::Spec)
22d2ea
License:        (GPL+ or Artistic) and BSD
22d2ea
Group:          Development/Libraries
22d2ea
URL:            http://search.cpan.org/dist/PathTools/
22d2ea
Source0:        http://www.cpan.org/authors/id/R/RJ/RJBS/PathTools-%{base_version}.tar.gz
22d2ea
# Disable VMS test (bug #973713)
22d2ea
Patch0:         PathTools-3.47-Disable-VMS-tests.patch
22d2ea
# Unbundled from perl 5.24.0
22d2ea
Patch1:         PathTools-3.62-Upgrade-to-3.63.patch
22d2ea
# Avoid loading optional modules from default . (CVE-2016-1238)
22d2ea
Patch2:         PathTools-3.63-CVE-2016-1238-avoid-loading-optional-modules-from.patch
22d2ea
BuildRequires:  coreutils
22d2ea
BuildRequires:  findutils
22d2ea
BuildRequires:  gcc
22d2ea
BuildRequires:  make
22d2ea
BuildRequires:  %{?scl_prefix}perl
22d2ea
BuildRequires:  %{?scl_prefix}perl-devel
22d2ea
BuildRequires:  %{?scl_prefix}perl-generators
22d2ea
BuildRequires:  %{?scl_prefix}perl(ExtUtils::MakeMaker)
22d2ea
BuildRequires:  sed
22d2ea
# Run-time:
22d2ea
BuildRequires:  %{?scl_prefix}perl(Carp)
22d2ea
BuildRequires:  %{?scl_prefix}perl(constant)
22d2ea
BuildRequires:  %{?scl_prefix}perl(Exporter)
22d2ea
# File::Basename not needed because of removed File::Spec::VMS
22d2ea
BuildRequires:  %{?scl_prefix}perl(Scalar::Util)
22d2ea
BuildRequires:  %{?scl_prefix}perl(strict)
22d2ea
BuildRequires:  %{?scl_prefix}perl(vars)
22d2ea
# Tests:
22d2ea
BuildRequires:  %{?scl_prefix}perl(Carp::Heavy)
22d2ea
BuildRequires:  %{?scl_prefix}perl(Config)
22d2ea
BuildRequires:  %{?scl_prefix}perl(File::Path)
22d2ea
BuildRequires:  %{?scl_prefix}perl(File::Temp)
22d2ea
BuildRequires:  %{?scl_prefix}perl(lib)
22d2ea
BuildRequires:  %{?scl_prefix}perl(Test::More) >= 0.88
22d2ea
Requires:       %{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'}))
22d2ea
Requires:       %{?scl_prefix}perl(Carp)
22d2ea
Requires:       %{?scl_prefix}perl(Scalar::Util)
22d2ea
22d2ea
%{?perl_default_filter}
22d2ea
22d2ea
%description
22d2ea
This is the combined distribution for the File::Spec and Cwd modules.
22d2ea
22d2ea
%prep
22d2ea
%setup -q -n PathTools-%{base_version}
22d2ea
%patch0 -p1
22d2ea
%patch1 -p1
22d2ea
%patch2 -p1
22d2ea
22d2ea
# Do not distribute File::Spec::VMS as it works on VMS only (bug #973713)
22d2ea
rm lib/File/Spec/VMS.pm
22d2ea
sed -i -e '/^lib\/File\/Spec\/VMS.pm/d' MANIFEST
22d2ea
22d2ea
# Remove bundled modules
22d2ea
rm -rf t/lib
22d2ea
sed -i -e '/t\/lib\//d' MANIFEST
22d2ea
22d2ea
%build
22d2ea
%{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" && make %{?_smp_mflags}%{?scl:'}
22d2ea
22d2ea
%install
22d2ea
%{?scl:scl enable %{scl} '}make pure_install DESTDIR=$RPM_BUILD_ROOT%{?scl:'}
22d2ea
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
22d2ea
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
22d2ea
%{_fixperms} $RPM_BUILD_ROOT/*
22d2ea
22d2ea
%check
22d2ea
%{?scl:scl enable %{scl} '}make test%{?scl:'}
22d2ea
22d2ea
%files
22d2ea
%doc Changes README
22d2ea
%{perl_vendorarch}/auto/*
22d2ea
%{perl_vendorarch}/Cwd.pm
22d2ea
%{perl_vendorarch}/File/
22d2ea
%{_mandir}/man3/*
22d2ea
22d2ea
%changelog
22d2ea
* Wed Aug 03 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.63-367
22d2ea
- Avoid loading optional modules from default . (CVE-2016-1238)
22d2ea
22d2ea
* Mon Jul 11 2016 Petr Pisar <ppisar@redhat.com> - 3.63-366
22d2ea
- SCL
22d2ea
22d2ea
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.63-365
22d2ea
- Increase release to favour standalone package
22d2ea
22d2ea
* Wed May 11 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.63-1
22d2ea
- 3.63 bump in order to dual-live with perl 5.24
22d2ea
22d2ea
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.62-2
22d2ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
22d2ea
22d2ea
* Tue Jan 12 2016 Petr Pisar <ppisar@redhat.com> - 3.62-1
22d2ea
- 3.62 bump
22d2ea
22d2ea
* Mon Jan 11 2016 Petr Pisar <ppisar@redhat.com> - 3.60-2
22d2ea
- Fix CVE-2015-8607 (File::Spec::canonpath() loses tain) (bug #1297455)
22d2ea
22d2ea
* Thu Nov 19 2015 Petr Pisar <ppisar@redhat.com> - 3.60-1
22d2ea
- 3.60 bump
22d2ea
22d2ea
* Mon Nov 16 2015 Petr Pisar <ppisar@redhat.com> - 3.59-1
22d2ea
- 3.59 bump
22d2ea
22d2ea
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.56-346
22d2ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
22d2ea
22d2ea
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.56-345
22d2ea
- Increase release to favour standalone package
22d2ea
22d2ea
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.56-2
22d2ea
- Perl 5.22 rebuild
22d2ea
22d2ea
* Mon Apr 27 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.56-1
22d2ea
- 3.56 bump in order to dual-live with Perl 5.22
22d2ea
22d2ea
* Tue Jan 13 2015 Petr Pisar <ppisar@redhat.com> - 3.47-311
22d2ea
- Require constant module
22d2ea
22d2ea
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.47-310
22d2ea
- Increase release to favour standalone package
22d2ea
22d2ea
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.47-4
22d2ea
- Perl 5.20 rebuild
22d2ea
22d2ea
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.47-3
22d2ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
22d2ea
22d2ea
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.47-2
22d2ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
22d2ea
22d2ea
* Tue May 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.47-1
22d2ea
- 3.47 bump
22d2ea
22d2ea
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.40-291
22d2ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
22d2ea
22d2ea
* Mon Jul 15 2013 Petr Pisar <ppisar@redhat.com> - 3.40-290
22d2ea
- Increase release to favour standalone package
22d2ea
22d2ea
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 3.40-4
22d2ea
- Link minimal build-root packages against libperl.so explicitly
22d2ea
22d2ea
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 3.40-3
22d2ea
- Disable VMS test (bug #973713)
22d2ea
22d2ea
* Fri Jun 14 2013 Petr Pisar <ppisar@redhat.com> - 3.40-2
22d2ea
- Do not distribute File::Spec::VMS (bug #973713)
22d2ea
22d2ea
* Mon Feb 04 2013 Petr Pisar <ppisar@redhat.com> - 3.40-1
22d2ea
- 3.40 bump
22d2ea
22d2ea
* Tue Sep 18 2012 Petr Pisar <ppisar@redhat.com> - 3.39.01-1
22d2ea
- 3.39_01 bump
22d2ea
22d2ea
* Wed Aug 15 2012 Petr Pisar <ppisar@redhat.com> - 3.33-8
22d2ea
- Specify all dependencies
22d2ea
22d2ea
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.33-7
22d2ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
22d2ea
22d2ea
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 3.33-6
22d2ea
- Perl 5.16 rebuild
22d2ea
22d2ea
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.33-5
22d2ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
22d2ea
22d2ea
* Mon Jul 25 2011 Petr Pisar <ppisar@redhat.com> - 3.33-4
22d2ea
- RPM 4.9 dependency filtering added
22d2ea
22d2ea
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 3.33-3
22d2ea
- Perl mass rebuild
22d2ea
22d2ea
* Sun May 29 2011 Ville Skyttä <ville.skytta@iki.fi> - 3.33-2
22d2ea
- Own the %%{perl_vendorarch}/File dir.
22d2ea
22d2ea
* Mon Feb 28 2011 Marcela Mašláňová <mmaslano@redhat.com> 3.33-1
22d2ea
- Specfile autogenerated by cpanspec 1.79.