根据perlporter模板,重新生成spec文件

This commit is contained in:
weidong 2020-08-13 10:14:29 +08:00
parent 010499da45
commit a8ff19ad02

View File

@ -1,50 +1,74 @@
%global _empty_manifest_terminate_build 0
Name: perl-Any-URI-Escape Name: perl-Any-URI-Escape
Version: 0.01 Version: 0.01
Release: 19 Release: 19
Summary: Load URI::Escape::XS preferentially over URI::Escape Summary: Load URI::Escape::XS preferentially over URI::Escape
License: GPL+ or Artistic License: CHECK(Distributable)
Group: Development/Libraries
URL: https://metacpan.org/release/Any-URI-Escape URL: http://search.cpan.org/dist/Any-URI-Escape/
Source0: Any-URI-Escape-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/P/PH/PHRED/Any-URI-Escape-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl(base)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl(URI::Escape) BuildRequires: perl(URI::Escape)
Requires: perl(URI::Escape) Requires: perl(URI::Escape)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%{?perl_default_filter}
%description %description
URI::Escape is great, but URI::Escape::XS is faster. This module loads URI::Escape is great, but URI::Escape::XS is faster. This module loads
URI::Escape::XS and imports the two most common methods if XS is installed. URI::Escape::XS and imports the two most common methods if XS is installed.
%package help
Summary : Load URI::Escape::XS preferentially over URI::Escape
Provides: perl-Any-URI-Escape-doc
%description help
URI::Escape is great, but URI::Escape::XS is faster. This module loads
URI::Escape::XS and imports the two most common methods if XS is installed.
%prep %prep
%setup -q -n Any-URI-Escape-%{version} %setup -q -n Any-URI-Escape-%{version}
%build %build
export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make pure_install DESTDIR=$RPM_BUILD_ROOT 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 -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/* %{_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 %check
make test make test
%files %clean
rm -rf $RPM_BUILD_ROOT
%files -f filelist.lst
%defattr(-,root,root,-)
%doc Changes README %doc Changes README
%{perl_vendorlib}/Any* %{perl_vendorlib}/*
%{_mandir}/man3/* %files help
%{_mandir}/*
%changelog %changelog
* Fri Aug 7 2020 weidong <weidong@uniontech.com> - 0.01-19 * Wed Aug 12 2020 weidong <weidong@uniontech.com> 0.01-19
- Initial release for OpenEuler - Initial release for OpenEuler