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