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