!1 package init
From: @caodongxia Reviewed-by: @jeff200902,@myeuler Signed-off-by: @myeuler
This commit is contained in:
commit
6ec482862e
BIN
OLE-Storage_Lite-0.20.tar.gz
Normal file
BIN
OLE-Storage_Lite-0.20.tar.gz
Normal file
Binary file not shown.
65
perl-OLE-Storage_Lite.spec
Normal file
65
perl-OLE-Storage_Lite.spec
Normal file
@ -0,0 +1,65 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: perl-OLE-Storage_Lite
|
||||
Version: 0.20
|
||||
Release: 1
|
||||
Summary: Simple Class for OLE document interface
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/OLE-Storage_Lite/
|
||||
Source0: http://www.cpan.org/authors/id/J/JM/JMCNAMARA/OLE-Storage_Lite-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl-generators
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
%description
|
||||
OLE::Storage_Lite allows you to read and write an OLE structured file.
|
||||
%package help
|
||||
Summary : Simple Class for OLE document interface
|
||||
Provides: perl-OLE-Storage_Lite-doc
|
||||
%description help
|
||||
OLE::Storage_Lite allows you to read and write an OLE structured file.
|
||||
%prep
|
||||
%setup -q -n OLE-Storage_Lite-%{version}
|
||||
%build
|
||||
export PERL_MM_OPT=""
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
export PERL_MM_OPT=""
|
||||
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 -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
pushd %{buildroot}
|
||||
touch filelist.lst
|
||||
if [ -d usr/bin ];then
|
||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/sbin ];then
|
||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
popd
|
||||
mv %{buildroot}/filelist.lst .
|
||||
%check
|
||||
make test
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f filelist.lst
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes META.json README
|
||||
%{perl_vendorlib}/*
|
||||
%files help
|
||||
%{_mandir}/*
|
||||
|
||||
%changelog
|
||||
* Thu Jun 11 2020 Perl_Bot <Perl_Bot@openeuler.org> 0.20-1
|
||||
- Specfile autogenerated by Perl_Bot
|
||||
4
perl-OLE-Storage_Lite.yaml
Normal file
4
perl-OLE-Storage_Lite.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version-ctrl: metacpan
|
||||
src_repo: OLE-Storage_Lite
|
||||
mag_prefix: "cooker-"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user