add __requires_exclude_from for rpm 4.9

epel9
Iain Arnell 14 years ago
parent 249d34efed
commit c9865ae386

@ -1,6 +1,6 @@
Name: perl-Spreadsheet-WriteExcel Name: perl-Spreadsheet-WriteExcel
Version: 2.37 Version: 2.37
Release: 7%{?dist} Release: 8%{?dist}
Summary: Write formatted text and numbers to a cross-platform Excel binary file Summary: Write formatted text and numbers to a cross-platform Excel binary file
Group: Development/Libraries 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(Date::Calc), perl(Date::Manip), perl(Parse::RecDescent)
Requires: perl(OLE::Storage_Lite) >= 0.19 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 %description
The Spreadsheet::WriteExcel module can be used to create a cross- The Spreadsheet::WriteExcel module can be used to create a cross-
platform Excel binary file. Multiple worksheets can be added to a 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 suggestions. This module cannot be used to write to an existing
Excel file. Excel file.
%{?perl_default_filter}
%prep %prep
%setup -q -n Spreadsheet-WriteExcel-%{version} %setup -q -n Spreadsheet-WriteExcel-%{version}
%{__perl} -pi -e 's/\r\n/\n/g' Changes README bin/chartex \ %{__perl} -pi -e 's/\r\n/\n/g' Changes README bin/chartex \
doc/*.html examples/{README,*.{pl,txt}} doc/*.html examples/{README,*.{pl,txt}}
%{?filter_setup:
%filter_requires_in %{perl_vendorlib}/Spreadsheet/WriteExcel/Examples.pm
%filter_setup
}
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
@ -66,6 +67,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/*.3* %{_mandir}/man3/*.3*
%changelog %changelog
* Wed Jul 20 2011 Iain Arnell <iarnell@gmail.com> 2.37-8
- add __requires_exclude_from for rpm 4.9
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.37-7 * Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.37-7
- Perl mass rebuild - Perl mass rebuild

Loading…
Cancel
Save