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