|
|
@ -1,18 +1,13 @@
|
|
|
|
# Provide perl-specific find-{provides,requires}.
|
|
|
|
|
|
|
|
%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: Simple Class for OLE document interface
|
|
|
|
Summary: Simple Class for OLE document interface
|
|
|
|
Name: perl-OLE-Storage_Lite
|
|
|
|
Name: perl-OLE-Storage_Lite
|
|
|
|
Version: 0.14
|
|
|
|
Version: 0.14
|
|
|
|
Release: 3
|
|
|
|
Release: 4
|
|
|
|
License: Artistic or GPL
|
|
|
|
License: Artistic or GPL
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
|
Source0: OLE-Storage_Lite-%{version}.tar.gz
|
|
|
|
Source0: OLE-Storage_Lite-%{version}.tar.gz
|
|
|
|
Url: http://search.cpan.org/dist/OLE-Storage_Lite/
|
|
|
|
Url: http://search.cpan.org/dist/OLE-Storage_Lite/
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: perl >= 0:5.00503
|
|
|
|
BuildRequires: perl >= 1:5.6.1
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
@ -21,18 +16,18 @@ Simple Class for OLE document interface.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n OLE-Storage_Lite-%{version}
|
|
|
|
%setup -q -n OLE-Storage_Lite-%{version}
|
|
|
|
|
|
|
|
%{__perl} -pi -e 's/\r\n/\n/g' Changes README \
|
|
|
|
|
|
|
|
doc/*.html charts/{README,*.{pl,pod,txt}}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile
|
|
|
|
%{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile
|
|
|
|
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
|
|
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 -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
|
|
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
|
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
|
@ -43,11 +38,15 @@ make test
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
|
|
|
|
%doc Changes README doc/ charts/
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sun Apr 24 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.14-4
|
|
|
|
|
|
|
|
- spec file cleanup
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 14 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.14-3
|
|
|
|
* Thu Apr 14 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.14-3
|
|
|
|
- rework spec to match template
|
|
|
|
- rework spec to match template
|
|
|
|
- set to noarch
|
|
|
|
- set to noarch
|
|
|
|