!2 Package init

From: @wangchong1995924
Reviewed-by: @shinwell_hu
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2021-05-25 17:23:48 +08:00 committed by Gitee
commit b817fcad66
2 changed files with 71 additions and 0 deletions

BIN
FreezeThaw-0.5001.tar.gz Normal file

Binary file not shown.

71
perl-FreezeThaw.spec Normal file
View File

@ -0,0 +1,71 @@
%global _empty_manifest_terminate_build 0
Name: perl-FreezeThaw
Version: 0.5001
Release: 1
Summary: Converting Perl structures to strings and back
License: GPL-1.0-only or Artistic-1.0-Perl
Group: Development/Libraries
URL: http://search.cpan.org/dist/FreezeThaw/
Source0: http://www.cpan.org/authors/id/I/IL/ILYAZ/modules/FreezeThaw-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
%description
Converts data to/from stringified form, appropriate for saving-to/reading-
from permanent storage.
%package help
Summary : Converting Perl structures to strings and back
Provides: perl-FreezeThaw-doc
%description help
Converts data to/from stringified form, appropriate for saving-to/reading-
from permanent storage.
%prep
%setup -q -n FreezeThaw-%{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
if [ -d usr/lib64 ];then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib ];then
find usr/lib -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 README
%{perl_vendorlib}/*
%files help
%{_mandir}/*
%changelog
* Sun May 23 2021 Perl_Bot <Perl_Bot@openeuler.org> 0.5001-1
- Specfile autogenerated by Perl_Bot