!1 初始化perl-Business-ISMN仓库源码

From: @fuowang 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2022-07-15 00:25:37 +00:00 committed by Gitee
commit 32846f8a48
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 83 additions and 0 deletions

BIN
Business-ISMN-1.202.tar.gz Normal file

Binary file not shown.

83
perl-Business-ISMN.spec Normal file
View File

@ -0,0 +1,83 @@
%global _empty_manifest_terminate_build 0
Name: perl-Business-ISMN
Version: 1.202
Release: 1
Summary: Work with International Standard Music Numbers
License: Artistic 2.0
Group: Development/Libraries
URL: http://search.cpan.org/dist/Business-ISMN/
Source0: http://www.cpan.org/authors/id/B/BD/BDFOY/Business-ISMN-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl >= 0:5.008
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(List::Util)
BuildRequires: perl(Test::More) >= 1
BuildRequires: perl(Tie::Cycle) >= 1.21
Requires: perl(List::Util)
Requires: perl(Tie::Cycle) >= 1.21
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
Work with International Standard Music Numbers
%package help
Summary : Work with International Standard Music Numbers
Provides: perl-Business-ISMN-doc
%description help
Work with International Standard Music Numbers
%prep
%setup -q -n Business-ISMN-%{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 INSTALL.SKIP ismns.txt LICENSE META.json
%{perl_vendorlib}/*
%files help
%{_mandir}/*
%changelog
* Thu Jul 14 2022 wangshuo <wangshuo@kylinos.cn> - 1.202-1
- Specfile autogenerated by Perl_Bot