f3c77b
%global base_version 3.75
f3c77b
f3c77b
Name:           perl-PathTools
f3c77b
Version:        3.78
f3c77b
Release:        439%{?dist}
f3c77b
Summary:        PathTools Perl module (Cwd, File::Spec)
f3c77b
# Cwd.xs:                   BSD
f3c77b
# other files:              GPL+ or Artistic
f3c77b
License:        (GPL+ or Artistic) and BSD
f3c77b
URL:            https://metacpan.org/release/PathTools
f3c77b
Source0:        https://cpan.metacpan.org/authors/id/X/XS/XSAWYERX/PathTools-%{base_version}.tar.gz
f3c77b
# Disable VMS tests (bug #973713)
f3c77b
Patch0:         PathTools-3.74-Disable-VMS-tests.patch
f3c77b
# Unbundled from perl 5.29.10
f3c77b
Patch1:         PathTools-3.75-Upgrade-to-3.78.patch
f3c77b
BuildRequires:  coreutils
f3c77b
BuildRequires:  findutils
f3c77b
BuildRequires:  gcc
f3c77b
BuildRequires:  make
f3c77b
BuildRequires:  perl-devel
f3c77b
BuildRequires:  perl-generators
f3c77b
BuildRequires:  perl-interpreter
f3c77b
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
f3c77b
BuildRequires:  sed
f3c77b
# Run-time:
f3c77b
BuildRequires:  perl(Carp)
f3c77b
BuildRequires:  perl(constant)
f3c77b
BuildRequires:  perl(Errno)
f3c77b
BuildRequires:  perl(Exporter)
f3c77b
# File::Basename not needed because of removed File::Spec::VMS
f3c77b
BuildRequires:  perl(Scalar::Util)
f3c77b
BuildRequires:  perl(strict)
f3c77b
# Optional run-time:
f3c77b
BuildRequires:  perl(XSLoader)
f3c77b
# Tests:
f3c77b
BuildRequires:  perl(Carp::Heavy)
f3c77b
BuildRequires:  perl(Config)
f3c77b
BuildRequires:  perl(File::Path)
f3c77b
BuildRequires:  perl(File::Temp)
f3c77b
BuildRequires:  perl(lib)
f3c77b
BuildRequires:  perl(Test::More) >= 0.88
f3c77b
BuildRequires:  perl(warnings)
f3c77b
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
f3c77b
Requires:       perl(Carp)
f3c77b
Requires:       perl(Errno)
f3c77b
Requires:       perl(Scalar::Util)
f3c77b
# XSLoader is optional only because miniperl does not support XS. With perl we
f3c77b
# almost certainly want it.
f3c77b
Recommends:     perl(XSLoader)
f3c77b
f3c77b
%{?perl_default_filter}
f3c77b
f3c77b
%description
f3c77b
This is the combined distribution for the File::Spec and Cwd modules.
f3c77b
f3c77b
%prep
f3c77b
%setup -q -n PathTools-%{base_version}
f3c77b
%patch0 -p1
f3c77b
%patch1 -p1
f3c77b
f3c77b
# Do not distribute File::Spec::VMS as it works on VMS only (bug #973713)
f3c77b
rm lib/File/Spec/VMS.pm
f3c77b
sed -i -e '/^lib\/File\/Spec\/VMS.pm/d' MANIFEST
f3c77b
f3c77b
%build
f3c77b
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
f3c77b
make %{?_smp_mflags}
f3c77b
f3c77b
%install
f3c77b
make pure_install DESTDIR=$RPM_BUILD_ROOT
f3c77b
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
f3c77b
%{_fixperms} $RPM_BUILD_ROOT/*
f3c77b
f3c77b
%check
f3c77b
make test
f3c77b
f3c77b
%files
f3c77b
%doc Changes
f3c77b
%{perl_vendorarch}/auto/*
f3c77b
%{perl_vendorarch}/Cwd.pm
f3c77b
%{perl_vendorarch}/File/
f3c77b
%{_mandir}/man3/*
f3c77b
f3c77b
%changelog
f3c77b
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.78-439
f3c77b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f3c77b
f3c77b
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 3.78-438
f3c77b
- Increase release to favour standalone package
f3c77b
f3c77b
* Thu Apr 25 2019 Jitka Plesnikova <jplesnik@redhat.com> - 3.78-1
f3c77b
- Upgrade to 3.78 as provided in perl-5.29.10
f3c77b
f3c77b
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.75-2
f3c77b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
f3c77b
f3c77b
* Thu Aug 30 2018 Petr Pisar <ppisar@redhat.com> - 3.75-1
f3c77b
- 3.75 bump
f3c77b
f3c77b
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.74-417
f3c77b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f3c77b
f3c77b
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 3.74-416
f3c77b
- Increase release to favour standalone package
f3c77b
f3c77b
* Mon Feb 19 2018 Petr Pisar <ppisar@redhat.com> - 3.74-1
f3c77b
- 3.74 bump
f3c77b
f3c77b
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.67-396
f3c77b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f3c77b
f3c77b
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.67-395
f3c77b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f3c77b
f3c77b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.67-394
f3c77b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f3c77b
f3c77b
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 3.67-393
f3c77b
- Perl 5.26 rebuild
f3c77b
f3c77b
* Thu May 11 2017 Petr Pisar <ppisar@redhat.com> - 3.67-1
f3c77b
- Upgrade to 3.67 as provided in perl-5.25.12
f3c77b
f3c77b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.63-367
f3c77b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f3c77b
f3c77b
* Wed Aug 03 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.63-366
f3c77b
- Avoid loading optional modules from default . (CVE-2016-1238)
f3c77b
f3c77b
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.63-365
f3c77b
- Increase release to favour standalone package
f3c77b
f3c77b
* Wed May 11 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.63-1
f3c77b
- 3.63 bump in order to dual-live with perl 5.24
f3c77b
f3c77b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.62-2
f3c77b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f3c77b
f3c77b
* Tue Jan 12 2016 Petr Pisar <ppisar@redhat.com> - 3.62-1
f3c77b
- 3.62 bump
f3c77b
f3c77b
* Mon Jan 11 2016 Petr Pisar <ppisar@redhat.com> - 3.60-2
f3c77b
- Fix CVE-2015-8607 (File::Spec::canonpath() loses tain) (bug #1297455)
f3c77b
f3c77b
* Thu Nov 19 2015 Petr Pisar <ppisar@redhat.com> - 3.60-1
f3c77b
- 3.60 bump
f3c77b
f3c77b
* Mon Nov 16 2015 Petr Pisar <ppisar@redhat.com> - 3.59-1
f3c77b
- 3.59 bump
f3c77b
f3c77b
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.56-346
f3c77b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f3c77b
f3c77b
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.56-345
f3c77b
- Increase release to favour standalone package
f3c77b
f3c77b
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.56-2
f3c77b
- Perl 5.22 rebuild
f3c77b
f3c77b
* Mon Apr 27 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.56-1
f3c77b
- 3.56 bump in order to dual-live with Perl 5.22
f3c77b
f3c77b
* Tue Jan 13 2015 Petr Pisar <ppisar@redhat.com> - 3.47-311
f3c77b
- Require constant module
f3c77b
f3c77b
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.47-310
f3c77b
- Increase release to favour standalone package
f3c77b
f3c77b
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.47-4
f3c77b
- Perl 5.20 rebuild
f3c77b
f3c77b
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.47-3
f3c77b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f3c77b
f3c77b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.47-2
f3c77b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f3c77b
f3c77b
* Tue May 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.47-1
f3c77b
- 3.47 bump
f3c77b
f3c77b
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.40-291
f3c77b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f3c77b
f3c77b
* Mon Jul 15 2013 Petr Pisar <ppisar@redhat.com> - 3.40-290
f3c77b
- Increase release to favour standalone package
f3c77b
f3c77b
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 3.40-4
f3c77b
- Link minimal build-root packages against libperl.so explicitly
f3c77b
f3c77b
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 3.40-3
f3c77b
- Disable VMS test (bug #973713)
f3c77b
f3c77b
* Fri Jun 14 2013 Petr Pisar <ppisar@redhat.com> - 3.40-2
f3c77b
- Do not distribute File::Spec::VMS (bug #973713)
f3c77b
f3c77b
* Mon Feb 04 2013 Petr Pisar <ppisar@redhat.com> - 3.40-1
f3c77b
- 3.40 bump
f3c77b
f3c77b
* Tue Sep 18 2012 Petr Pisar <ppisar@redhat.com> - 3.39.01-1
f3c77b
- 3.39_01 bump
f3c77b
f3c77b
* Wed Aug 15 2012 Petr Pisar <ppisar@redhat.com> - 3.33-8
f3c77b
- Specify all dependencies
f3c77b
f3c77b
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.33-7
f3c77b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f3c77b
f3c77b
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 3.33-6
f3c77b
- Perl 5.16 rebuild
f3c77b
f3c77b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.33-5
f3c77b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f3c77b
f3c77b
* Mon Jul 25 2011 Petr Pisar <ppisar@redhat.com> - 3.33-4
f3c77b
- RPM 4.9 dependency filtering added
f3c77b
f3c77b
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 3.33-3
f3c77b
- Perl mass rebuild
f3c77b
f3c77b
* Sun May 29 2011 Ville Skyttä <ville.skytta@iki.fi> - 3.33-2
f3c77b
- Own the %%{perl_vendorarch}/File dir.
f3c77b
f3c77b
* Mon Feb 28 2011 Marcela Mašláňová <mmaslano@redhat.com> 3.33-1
f3c77b
- Specfile autogenerated by cpanspec 1.79.