You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.7 KiB
60 lines
1.7 KiB
# 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
|
|
Name: perl-OLE-Storage_Lite
|
|
Version: 0.14
|
|
Release: 3
|
|
License: Artistic or GPL
|
|
Group: Development/Libraries
|
|
Source0: OLE-Storage_Lite-%{version}.tar.gz
|
|
Url: http://search.cpan.org/dist/OLE-Storage_Lite/
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRequires: perl >= 0:5.00503
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Simple Class for OLE document interface.
|
|
|
|
%prep
|
|
%setup -q -n OLE-Storage_Lite-%{version}
|
|
|
|
%build
|
|
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
|
|
%{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile
|
|
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
|
%install
|
|
rm -rf $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 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 ';'
|
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
%check || :
|
|
make test
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man3/*.3*
|
|
|
|
%changelog
|
|
* Thu Apr 14 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.14-3
|
|
- rework spec to match template
|
|
- set to noarch
|
|
|
|
* Thu Apr 14 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.14-2
|
|
- add MODULE_COMPAT requires
|
|
|
|
* Fri Apr 1 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.14-1
|
|
- initial package
|