From 010499da45f02776686b06719448f4050d0db245 Mon Sep 17 00:00:00 2001 From: weidong Date: Mon, 10 Aug 2020 14:53:41 +0800 Subject: [PATCH 1/4] package init --- Any-URI-Escape-0.01.tar.gz | Bin 0 -> 1819 bytes perl-Any-URI-Escape.spec | 50 +++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 Any-URI-Escape-0.01.tar.gz create mode 100644 perl-Any-URI-Escape.spec diff --git a/Any-URI-Escape-0.01.tar.gz b/Any-URI-Escape-0.01.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..809ed45234038f0da460e54d95954386d53d507b GIT binary patch literal 1819 zcmV+$2juu4iwFpG*YZmO13_+iEmcxUEk$!(~C->hGPLuu0MQPQitYKrZd zot@oTKeO|=?a#~adM9N|*feBit)l7Gtu;4I(;B7;@o)X^Z`MH9_Zx<3?wfT3G~L+O z^(`>BHqas=DMwdAhqLiLdJoCddEEZ~Pg;9L{Er;!PnlR}{OgAC<@nc(EdEB_tk*IA zW?eJ3Kr7<^-CK`cy21^7a9kk+K8H!bq06`j>{>EE7Tw(=6++Z50T@IKI&=>DZ=h?< zn%UGfsA;-Jo|GZr?$q_E2bYX18!fOoqmqqbGzX`4EkLi-_TkEv4g{e@4MCnfDZgJD zi;%6NZT$WB+|gQdz`w_TQ!^U{{y$dyJM@B0T#r?{ryIe4Q?F(C-)O|~uh;7J0{=JB zp8Zmd1h0-CTaqqm7C@Ks>REpbyPeGJCn)7@sz(~!B+Bhq{XwsNG)QbeWV-!s@bP7a5+kg{8x{T}Q6 zPs6yO_g~ksnpk@O@v3Unbr&|+SP&`3G~Z^rq!3}2Cd5shptRquKp`4@h0 z<&&|iPBNoN)tEy$50%y|h96=F{=}U|oDDhq7`dE@WY87o8|uqvFV!7h75E0DN44^v{R?N!nj) z{eLh1n`UEy|3-}edZSU`|0bF$(MSsOcPcZ4oo_;K(*JOF-tC|CQ~Xi|vyD%%rb_jmedfiL>v=F@%K8}LQAmca29vxVxD#+CxFVLLvus=; zYa24SZyvNvr?TZmU0g;U3@kqN+%Qt;uRP;c#~i!c(_R7GmuvusE@AA!hlNw z(qSO40_-FtV9uH$LL)dk!B{9iWAm|*yszqhfF1FfJ7z-7Pv%CZ7===7E%caV7!2WH z3h*I7@8=AsAp!`gv>le%zG5CKD+0G~SUwnKsfGVv z;J;k+7r<}${%4v-!T&y9{Fm$f@5}!fjYa&m`1@aDzgF-+KP>+{U_xTa5pad30<+t} zAs8+4%6fBh2A@<;9tIaXpL4yta6<^<_G;-Ke7xGpodM#@$WL!})oH+IMEkcKj8&`#ABh*9^0W|Bn#=TXO&V<^NjUtmW!|4YZniTIBytw2;~tbh@fU zzwZ>F>Y(lPqb(NhYS-Y?0|%>cJ^t#8HRHPYgabR0i8CXL|COw3RZ=rvYQ=86wBC2m zdjs_1-s1zhm!40O3X@$@4@xOZyX;gcWgcd8*bXnI30;9@`p)*t-OND3OI(ZF>dz14 zqI%zpd5`=&vOX(@Y~2dgXgHHQU$awRZW6aWG@J8aMTc|(i#~pkhEdITB2t-}o9$77 zr#Bc5yX~Xj+i$GlFcJRx>1iVTyV+bU>C+q3RU#a8NwB(Gw)`tPE<`PYr$Un3Keq%D z`7(R-HO$c(S) - 0.01-19 +- Initial release for OpenEuler -- Gitee From a8ff19ad022b84d1a857790fb3a6bf219373601b Mon Sep 17 00:00:00 2001 From: weidong Date: Thu, 13 Aug 2020 10:14:29 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E6=A0=B9=E6=8D=AEperlporter=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=EF=BC=8C=E9=87=8D=E6=96=B0=E7=94=9F=E6=88=90spec?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- perl-Any-URI-Escape.spec | 60 ++++++++++++++++++++++++++++------------ 1 file changed, 42 insertions(+), 18 deletions(-) diff --git a/perl-Any-URI-Escape.spec b/perl-Any-URI-Escape.spec index bbc250a..19273de 100644 --- a/perl-Any-URI-Escape.spec +++ b/perl-Any-URI-Escape.spec @@ -1,50 +1,74 @@ +%global _empty_manifest_terminate_build 0 Name: perl-Any-URI-Escape Version: 0.01 Release: 19 Summary: Load URI::Escape::XS preferentially over URI::Escape -License: GPL+ or Artistic - -URL: https://metacpan.org/release/Any-URI-Escape -Source0: Any-URI-Escape-%{version}.tar.gz - +License: CHECK(Distributable) +Group: Development/Libraries +URL: http://search.cpan.org/dist/Any-URI-Escape/ +Source0: http://www.cpan.org/authors/id/P/PH/PHRED/Any-URI-Escape-%{version}.tar.gz BuildArch: noarch BuildRequires: perl-generators -BuildRequires: perl(base) -BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(Test::More) BuildRequires: perl(URI::Escape) Requires: perl(URI::Escape) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) - -%{?perl_default_filter} - %description 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. - +%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 %setup -q -n Any-URI-Escape-%{version} - %build +export PERL_MM_OPT="" %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %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 -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 -%files +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) %doc Changes README -%{perl_vendorlib}/Any* -%{_mandir}/man3/* +%{perl_vendorlib}/* +%files help +%{_mandir}/* %changelog -* Fri Aug 7 2020 weidong - 0.01-19 +* Wed Aug 12 2020 weidong 0.01-19 - Initial release for OpenEuler -- Gitee From 6e5fe51d827ca4ffa60478c82ec6f39587f65bf2 Mon Sep 17 00:00:00 2001 From: weidong Date: Thu, 13 Aug 2020 10:17:22 +0800 Subject: [PATCH 3/4] add License --- perl-Any-URI-Escape.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-Any-URI-Escape.spec b/perl-Any-URI-Escape.spec index 19273de..d39d1b9 100644 --- a/perl-Any-URI-Escape.spec +++ b/perl-Any-URI-Escape.spec @@ -3,7 +3,7 @@ Name: perl-Any-URI-Escape Version: 0.01 Release: 19 Summary: Load URI::Escape::XS preferentially over URI::Escape -License: CHECK(Distributable) +License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Any-URI-Escape/ Source0: http://www.cpan.org/authors/id/P/PH/PHRED/Any-URI-Escape-%{version}.tar.gz -- Gitee From 487b8c8b820225cb0a248c1b9172503eea3bc2d4 Mon Sep 17 00:00:00 2001 From: weidong Date: Thu, 13 Aug 2020 15:53:57 +0800 Subject: [PATCH 4/4] set release to 1 --- perl-Any-URI-Escape.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-Any-URI-Escape.spec b/perl-Any-URI-Escape.spec index d39d1b9..ebf69cc 100644 --- a/perl-Any-URI-Escape.spec +++ b/perl-Any-URI-Escape.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: perl-Any-URI-Escape Version: 0.01 -Release: 19 +Release: 1 Summary: Load URI::Escape::XS preferentially over URI::Escape License: GPL+ or Artistic Group: Development/Libraries @@ -70,5 +70,5 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/* %changelog -* Wed Aug 12 2020 weidong 0.01-19 +* Wed Aug 12 2020 weidong 0.01-1 - Initial release for OpenEuler -- Gitee