auto-import perl-Spreadsheet-WriteExcel-2.12-3 on branch devel from

perl-Spreadsheet-WriteExcel-2.12-3.src.rpm
epel9
Tom Callaway 20 years ago
parent 5042eed867
commit f4b3c098ef

@ -1,17 +1,20 @@
# Provide perl-specific find-{provides,requires}.
%define _use_internal_dependency_generator 0 %define _use_internal_dependency_generator 0
%define __find_provides /usr/lib/rpm/find-provides.perl
%define __find_requires /usr/lib/rpm/find-requires.perl
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
Name: perl-Spreadsheet-WriteExcel Name: perl-Spreadsheet-WriteExcel
Version: 2.12 Version: 2.12
Release: 2 Release: 3
License: Artistic or GPL License: Artistic or GPL
Group: Development/Libraries Group: Development/Libraries
Source0: Spreadsheet-WriteExcel-%{version}.tar.gz Source0: Spreadsheet-WriteExcel-%{version}.tar.gz
Url: http://www.cpan.org Url: http://search.cpan.org/dist/Spreadsheet-WriteExcel
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl >= 0:5.00503, perl-Parse-RecDescent BuildRequires: perl >= 0:5.00503, perl-Parse-RecDescent
Requires: perl >= 0:5.00503
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildArch: noarch
%description %description
The Spreadsheet::WriteExcel module can be used to create a cross- The Spreadsheet::WriteExcel module can be used to create a cross-
@ -31,42 +34,41 @@ Spreadsheet::ParseExcel or look at the main documentation for some
suggestions. This module cannot be uses to write to an existing suggestions. This module cannot be uses to write to an existing
Excel file. Excel file.
# Provide perl-specific find-{provides,requires}.
%define __find_provides /usr/lib/rpm/find-provides.perl
%define __find_requires /usr/lib/rpm/find-requires.perl
%prep %prep
%setup -q -n Spreadsheet-WriteExcel-%{version} %setup -q -n Spreadsheet-WriteExcel-%{version}
%build %build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
make %{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile
make test make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
%clean
rm -rf $RPM_BUILD_ROOT
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make install make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
%check || :
make test
find $RPM_BUILD_ROOT/usr -type f -print | %clean
sed "s@^$RPM_BUILD_ROOT@@g" | rm -rf $RPM_BUILD_ROOT
grep -v perllocal.pod |
grep -v "\.packlist" > %{name}-%{version}-filelist
if [ "$(cat %{name}-%{version}-filelist)X" = "X" ] ; then
echo "ERROR: EMPTY FILE LIST"
exit -1
fi
%files -f %{name}-%{version}-filelist %files
%defattr(-,root,root) %defattr(-,root,root,-)
%{_bindir}/chartex
%{perl_vendorlib}/*
%{_mandir}/man1/*.1*
%{_mandir}/man3/*.3*
%changelog %changelog
* Thu Apr 14 2005 Tom "spot" Callaway <tcallawa@redhat.com> 2.12-3
- rework spec to match template
- set to noarch
* Thu Apr 14 2005 Tom "spot" Callaway <tcallawa@redhat.com> 2.12-2 * Thu Apr 14 2005 Tom "spot" Callaway <tcallawa@redhat.com> 2.12-2
- Add MODULE_COMPAT requires line - Add MODULE_COMPAT requires line

Loading…
Cancel
Save