Do not distribute File::Spec::VMS
This commit is contained in:
parent
d87423be3d
commit
2b04441c35
@ -1,17 +1,18 @@
|
||||
%global cpan_version 3.40
|
||||
Name: perl-PathTools
|
||||
Version: %(echo '%{cpan_version}' | tr _ .)
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?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
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
# Run-time:
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(Exporter)
|
||||
BuildRequires: perl(File::Basename)
|
||||
# File::Basename not needed because of removed File::Spec::VMS
|
||||
BuildRequires: perl(Scalar::Util)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(vars)
|
||||
@ -21,12 +22,11 @@ BuildRequires: perl(Config)
|
||||
BuildRequires: perl(File::Path)
|
||||
BuildRequires: perl(lib)
|
||||
BuildRequires: perl(Test::More)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
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.
|
||||
@ -36,6 +36,9 @@ This is the combined distribution for the File::Spec and Cwd modules.
|
||||
# Remove bundled modules
|
||||
rm -r t/lib
|
||||
sed -i -e '/^t\/lib\//d' MANIFEST
|
||||
# Do not distribute File::Spec::VMS as it works on VMS only (bug #973713)
|
||||
rm lib/File/Spec/VMS.pm
|
||||
sed -i -e '/^lib\/File\/Spec\/VMS.pm/d' MANIFEST
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
@ -58,6 +61,9 @@ make test
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Fri Jun 14 2013 Petr Pisar <ppisar@redhat.com> - 3.40-2
|
||||
- Do not distribute File::Spec::VMS (bug #973713)
|
||||
|
||||
* Mon Feb 04 2013 Petr Pisar <ppisar@redhat.com> - 3.40-1
|
||||
- 3.40 bump
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user