diff --git a/URI-Escape-XS-0.14.tar.gz b/URI-Escape-XS-0.14.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..e7e8f49b2ce231662e726cdc4b69646187ce678e Binary files /dev/null and b/URI-Escape-XS-0.14.tar.gz differ diff --git a/perl-URI-Escape-XS.spec b/perl-URI-Escape-XS.spec new file mode 100644 index 0000000000000000000000000000000000000000..388cf9158d783fc93beb535aa3c062510a0e90d9 --- /dev/null +++ b/perl-URI-Escape-XS.spec @@ -0,0 +1,81 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-URI-Escape-XS +Version: 0.14 +Release: 1 +Summary: URI::Escape::XS Perl module +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/URI-Escape-XS/ +Source0: http://www.cpan.org/authors/id/D/DA/DANKOGAI/URI-Escape-XS-%{version}.tar.gz +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +Requires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +%description +SYNOPSIS +# use it instead of URI::Escape +use URI::Escape::XS qw/uri_escape uri_unescape/; $safe = uri_escape("10% is +enough\n"); $verysafe = uri_escape("foo", "\0-\377"); $str = +uri_unescape($safe); +%package help +Summary : URI::Escape::XS Perl module +Provides: perl-URI-Escape-XS-doc +%description help +SYNOPSIS +# use it instead of URI::Escape +use URI::Escape::XS qw/uri_escape uri_unescape/; $safe = uri_escape("10% is +enough\n"); $verysafe = uri_escape("foo", "\0-\377"); $str = +uri_unescape($safe); +%prep +%setup -q -n URI-Escape-XS-%{version} +%build +export PERL_MM_OPT="" +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +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 -type f -name '*.bs' -size 0 -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 META.json README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/URI* +%files help +%{_mandir}/* + +%changelog +* Wed Jun 30 2021 Perl_Bot 0.14-1 +- Specfile autogenerated by Perl_Bot