From 803c3c42276888553d8c0845193743eedbdcb3a6 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Fri, 15 Apr 2005 15:14:44 +0000 Subject: [PATCH] auto-import perl-OLE-Storage_Lite-0.14-3 on branch devel from perl-OLE-Storage_Lite-0.14-3.src.rpm --- .cvsignore | 1 + perl-OLE-Storage_Lite.spec | 59 ++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 61 insertions(+) create mode 100644 perl-OLE-Storage_Lite.spec diff --git a/.cvsignore b/.cvsignore index e69de29..227b52c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +OLE-Storage_Lite-0.14.tar.gz diff --git a/perl-OLE-Storage_Lite.spec b/perl-OLE-Storage_Lite.spec new file mode 100644 index 0000000..ca4b7fd --- /dev/null +++ b/perl-OLE-Storage_Lite.spec @@ -0,0 +1,59 @@ +# 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 0.14-3 +- rework spec to match template +- set to noarch + +* Thu Apr 14 2005 Tom "spot" Callaway 0.14-2 +- add MODULE_COMPAT requires + +* Fri Apr 1 2005 Tom "spot" Callaway 0.14-1 +- initial package diff --git a/sources b/sources index e69de29..8ff474a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +376118e3061bf4370b1a286dd7a0bb07 OLE-Storage_Lite-0.14.tar.gz