[packages/perl-WWW-Form-UrlEncoded] - initial
arekm
arekm at pld-linux.org
Thu Mar 15 19:26:12 CET 2018
commit 6d28f22a649684dcc1159320db8454a7b8532848
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Mar 15 19:25:55 2018 +0100
- initial
perl-WWW-Form-UrlEncoded.spec | 66 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)
---
diff --git a/perl-WWW-Form-UrlEncoded.spec b/perl-WWW-Form-UrlEncoded.spec
new file mode 100644
index 0000000..a16ec6f
--- /dev/null
+++ b/perl-WWW-Form-UrlEncoded.spec
@@ -0,0 +1,66 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir WWW
+%define pnam Form-UrlEncoded
+%include /usr/lib/rpm/macros.perl
+Summary: WWW::Form::UrlEncoded - parser and builder for application/x-www-form-urlencoded
+Name: perl-WWW-Form-UrlEncoded
+Version: 0.24
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/WWW/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: f586b90fa142741728547dc2ea573f15
+URL: http://search.cpan.org/dist/WWW-Form-UrlEncoded/
+BuildRequires: perl-Module-Build
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-JSON >= 2
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+WWW::Form::UrlEncoded provides application/x-www-form-urlencoded
+parser and builder. This module aims to have compatibility with other
+CPAN modules like HTTP::Body's urlencoded parser.
+
+This module try to use WWW::Form::UrlEncoded::XS by default and fail
+to it, use WWW::Form::UrlEncoded::PP instead
+
+WWW::Form::UrlEncoded parsed string in this rule.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Build.PL \
+ destdir=$RPM_BUILD_ROOT \
+ installdirs=vendor
+./Build
+
+%{?with_tests:./Build test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%dir %{perl_vendorarch}/WWW/Form
+%{perl_vendorarch}/WWW/Form/*.pm
+%{perl_vendorarch}/WWW/Form/UrlEncoded
+%{_mandir}/man3/WWW::Form::UrlEncoded*.3*
+%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-WWW-Form-UrlEncoded.git/commitdiff/6d28f22a649684dcc1159320db8454a7b8532848
More information about the pld-cvs-commit
mailing list