[perl-CGI-Deurl-XS] Initial import (#1150284).

David Dick ddick at fedoraproject.org
Tue Oct 14 08:58:55 UTC 2014


commit 36fbb5719859e6f4cf26972594d4566a6c7525d2
Author: David Dick <ddick at cpan.org>
Date:   Tue Oct 14 19:58:37 2014 +1100

    Initial import (#1150284).

 .gitignore             |    1 +
 perl-CGI-Deurl-XS.spec |   56 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 3 files changed, 58 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..910700a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/CGI-Deurl-XS-0.07.tar.gz
diff --git a/perl-CGI-Deurl-XS.spec b/perl-CGI-Deurl-XS.spec
new file mode 100644
index 0000000..24d9ade
--- /dev/null
+++ b/perl-CGI-Deurl-XS.spec
@@ -0,0 +1,56 @@
+Name:           perl-CGI-Deurl-XS
+Version:        0.07
+Release:        1%{?dist}
+Summary:        Fast decoder for URL parameter strings
+License:        (GPL+ or Artistic) and ASL 2.0
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/CGI-Deurl-XS/
+Source0:        http://www.cpan.org/modules/by-module/CGI/CGI-Deurl-XS-%{version}.tar.gz
+BuildRequires:  perl
+BuildRequires:  perl(AutoLoader)
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(encoding)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(ExtUtils::Constant)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(File::Copy)
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(warnings)
+BuildRequires:  perl(XSLoader)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+This module decodes a URL-encoded parameter string in the manner of CGI.pm.
+However, as it uses C code from libapreq to perform the task, it's
+somewhere from slightly to much faster (depending on your strings) than
+using CGI or a functionally similar module like CGI::Deurl.
+
+%prep
+%setup -q -n CGI-Deurl-XS-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=$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 {} \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc Changes README
+%{perl_vendorarch}/auto/*
+%{perl_vendorarch}/CGI*
+%{_mandir}/man3/*
+
+%changelog
+* Fri Oct 03 2014 David Dick <ddick at cpan.org> - 0.07-1
+- Initial release
diff --git a/sources b/sources
index e69de29..d642585 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5692438b5fe015d214d9dca6e4c98811  CGI-Deurl-XS-0.07.tar.gz



More information about the perl-devel mailing list