diff --git a/URL-Encode-XS-0.03.tar.gz b/URL-Encode-XS-0.03.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..cc0b560461286fc4b4b215997629149d4e4f1864 Binary files /dev/null and b/URL-Encode-XS-0.03.tar.gz differ diff --git a/perl-URL-Encode-XS.spec b/perl-URL-Encode-XS.spec new file mode 100644 index 0000000000000000000000000000000000000000..63be446c1a1eafcde2a883ae66c7b519c9ddd829 --- /dev/null +++ b/perl-URL-Encode-XS.spec @@ -0,0 +1,83 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-URL-Encode-XS +Version: 0.03 +Release: 1 +Summary: XS implementation of URL::Encode +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/URL-Encode-XS/ +Source0: http://www.cpan.org/authors/id/C/CH/CHANSEN/URL-Encode-XS-%{version}.tar.gz +BuildRequires: perl >= 1:5.8.1 +BuildRequires: perl-generators +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(URL::Encode) >= 0.03 +BuildRequires: perl(XSLoader) +Requires: perl(Carp) +Requires: perl(Exporter) +Requires: perl(URL::Encode) >= 0.03 +Requires: perl(XSLoader) +%description +The main URL::Encode package will use this package automatically if it can +find it. Do not use this package directly, use URL::Encode instead. +%package help +Summary : XS implementation of URL::Encode +Provides: perl-URL-Encode-XS-doc +%description help +The main URL::Encode package will use this package automatically if it can +find it. Do not use this package directly, use URL::Encode instead. +%prep +%setup -q -n URL-Encode-XS-%{version} +%build +export PERL_MM_OPT="" +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +%{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile +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 README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/URL* +%files help +%{_mandir}/* + +%changelog +* Sun May 23 2021 Perl_Bot 0.03-1 +- Specfile autogenerated by Perl_Bot