[perl-Module-Manifest/el6] Fix sample script permissions in %prep rather than %install

Paul Howarth pghmcfc at fedoraproject.org
Mon Aug 8 12:44:14 UTC 2011


commit 7b470c7cb3fa15ae4b9b7f855992a1075ddbddf5
Author: Paul Howarth <paul at city-fan.org>
Date:   Mon Aug 8 13:23:40 2011 +0100

    Fix sample script permissions in %prep rather than %install

 perl-Module-Manifest.spec |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/perl-Module-Manifest.spec b/perl-Module-Manifest.spec
index 81fcc45..72e77e7 100644
--- a/perl-Module-Manifest.spec
+++ b/perl-Module-Manifest.spec
@@ -1,6 +1,6 @@
 Name:           perl-Module-Manifest
 Version:        1.08
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Parse and examine a Perl distribution MANIFEST file
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -25,6 +25,9 @@ Module::Inspector.
 %prep
 %setup -q -n Module-Manifest-%{version}
 
+# Avoid doc-file dependencies by removing exec bits from sample script
+chmod -c -x examples/difference.pl
+
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
@@ -38,9 +41,6 @@ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
 find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
 
 %{_fixperms} $RPM_BUILD_ROOT/*
-# Remove executable bit from %%doc files
-%{__chmod} 0644 examples/*
-
 
 %check
 make test
@@ -55,6 +55,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/*
 
 %changelog
+* Mon Aug  8 2011 Paul Howarth <paul at city-fan.org> - 1.08-5
+- Fix sample script permissions in %%prep rather than %%install
+
 * Wed Jul 20 2011 Petr Sabata <contyk at redhat.com> - 1.08-4
 - Perl mass rebuild
 



More information about the perl-devel mailing list