commit 2b04441c355c6d62923d0ca3002f69161caa43a6
Author: Petr Písař <ppi...@redhat.com>
Date:   Fri Jun 14 10:33:59 2013 +0200

    Do not distribute File::Spec::VMS

 perl-PathTools.spec |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/perl-PathTools.spec b/perl-PathTools.spec
index dff9b0e..59801a9 100644
--- a/perl-PathTools.spec
+++ b/perl-PathTools.spec
@@ -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 <ppi...@redhat.com> - 3.40-2
+- Do not distribute File::Spec::VMS (bug #973713)
+
 * Mon Feb 04 2013 Petr Pisar <ppi...@redhat.com> - 3.40-1
 - 3.40 bump
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to