commit c9865ae3869c45171c4d776d89ae5747de6bba59
Author: Iain Arnell <iarn...@gmail.com>
Date:   Wed Jul 20 05:14:14 2011 +0200

    add __requires_exclude_from for rpm 4.9

 perl-Spreadsheet-WriteExcel.spec |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/perl-Spreadsheet-WriteExcel.spec b/perl-Spreadsheet-WriteExcel.spec
index 1b7dcb8..5169bed 100644
--- a/perl-Spreadsheet-WriteExcel.spec
+++ b/perl-Spreadsheet-WriteExcel.spec
@@ -1,6 +1,6 @@
 Name:                  perl-Spreadsheet-WriteExcel
 Version:               2.37
-Release:               7%{?dist}
+Release:               8%{?dist}
 Summary:               Write formatted text and numbers to a cross-platform 
Excel binary file
 
 Group:                 Development/Libraries
@@ -14,6 +14,13 @@ Requires:            perl(:MODULE_COMPAT_%(eval "`%{__perl} 
-V:version`"; echo $version))
 Requires:              perl(Date::Calc), perl(Date::Manip), 
perl(Parse::RecDescent)
 Requires:              perl(OLE::Storage_Lite) >= 0.19
 
+%{?perl_default_filter:
+%filter_requires_in %{perl_vendorlib}/Spreadsheet/WriteExcel/Examples.pm
+%perl_default_filter
+}
+%global __requires_exclude_from 
%{?__requires_exclude_from:%__requires_exclude_from|}Spreadsheet/WriteExcel/Examples\\.pm$
+
+
 %description
 The Spreadsheet::WriteExcel module can be used to create a cross-
 platform Excel binary file. Multiple worksheets can be added to a
@@ -29,18 +36,12 @@ Spreadsheet::ParseExcel or look at the main documentation 
for some
 suggestions. This module cannot be used to write to an existing
 Excel file.
 
-%{?perl_default_filter}
 
 %prep
 %setup -q -n Spreadsheet-WriteExcel-%{version} 
 %{__perl} -pi -e 's/\r\n/\n/g' Changes README bin/chartex \
      doc/*.html examples/{README,*.{pl,txt}}
 
-%{?filter_setup:
-%filter_requires_in %{perl_vendorlib}/Spreadsheet/WriteExcel/Examples.pm
-%filter_setup
-}
-
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
@@ -66,6 +67,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/*.3*
 
 %changelog
+* Wed Jul 20 2011 Iain Arnell <iarn...@gmail.com> 2.37-8
+- add __requires_exclude_from for rpm 4.9
+
 * Mon Jun 20 2011 Marcela Mašláňová <mmasl...@redhat.com> - 2.37-7
 - Perl mass rebuild
 
--
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