[mod_form] First package import

averi averi at fedoraproject.org
Wed Dec 4 16:33:08 UTC 2013


commit 3c9959ac8fa54685ae2d3977b785ce53c7288dec
Author: Andrea Veri <av at gnome.org>
Date:   Wed Dec 4 17:33:01 2013 +0100

    First package import

 .gitignore                     |    1 +
 mod_form.c.preserve_args.patch |   20 ++++++++++
 mod_form.spec                  |   78 ++++++++++++++++++++++++++++++++++++++++
 sources                        |    1 +
 4 files changed, 100 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5bbb025 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mod_form-0.1-1.20131204svn145.tar.gz
diff --git a/mod_form.c.preserve_args.patch b/mod_form.c.preserve_args.patch
new file mode 100644
index 0000000..7b49db1
--- /dev/null
+++ b/mod_form.c.preserve_args.patch
@@ -0,0 +1,20 @@
+--- mod_form.c	2007-03-13 15:05:13.872945000 +0100
++++ mod_form.c	2007-03-13 15:06:26.378367000 +0100
+@@ -61,6 +61,7 @@
+   char* pair ;
+   char* last = NULL ;
+   char* eq ;
++  char* a ;
+   if ( ! ctx ) {
+     ctx = apr_pcalloc(r->pool, sizeof(form_ctx)) ;
+     ctx->delim = delim[0];
+@@ -69,7 +70,8 @@
+   if ( ! ctx->vars ) {
+     ctx->vars = apr_table_make(r->pool, 10) ;
+   }
+-  for ( pair = apr_strtok(args, delim, &last) ; pair ;
++  a = apr_pstrdup(r->pool, args);
++  for ( pair = apr_strtok(a, delim, &last) ; pair ;
+         pair = apr_strtok(NULL, delim, &last) ) {
+     for (eq = pair ; *eq ; ++eq)
+       if ( *eq == '+' )
diff --git a/mod_form.spec b/mod_form.spec
new file mode 100644
index 0000000..0bb3b4d
--- /dev/null
+++ b/mod_form.spec
@@ -0,0 +1,78 @@
+%if 0%{?rhel}
+%global apxs /usr/sbin/apxs
+%endif
+%if 0%{?fedora}
+%global apxs /usr/bin/apxs
+%endif
+%global apache apache
+%global apache_libexecdir %(%{apxs} -q LIBEXECDIR)
+%global apache_sysconfdir %(%{apxs} -q SYSCONFDIR)
+%global apache_includedir %(%{apxs} -q INCLUDEDIR)
+%global apache_serverroot %(%{apxs} -q PREFIX)
+%global apache_localstatedir %(%{apxs} -q LOCALSTATEDIR)
+%global apache_mmn        %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN)
+
+Name:           mod_form
+Version:        0.1
+Release:        1.20131204svn145%{?dist}
+# The tarball's contents were downloaded from:
+# http://apache.webthing.com/svn/apache/forms/mod_form.c
+# http://apache.webthing.com/svn/apache/forms/mod_form.h
+# the version number 0.1 is arbitrary, because no release
+# version was ever defined.
+License:        GPLv2+
+Group:          Applications/Internet
+Summary:        Apache module that decodes data submitted from Web forms
+Source0:        mod_form-%{version}-1.20131204svn145.tar.gz
+Patch0:         mod_form.c.preserve_args.patch
+BuildRequires:  httpd-devel
+Requires:       httpd
+URL:            http://apache.webthing.com/mod_form
+
+%description
+Utility to decode data submitted from Web forms. It deals with both GET
+and POST methods where the data are encoded using the default content type
+application/x-www-form-urlencoded. It does not decode multipart/form-data
+(file upload) forms: for those you should use mod_upload.
+
+%package -n mod_form-devel
+License:	GPLv2+
+Summary:	Apache module that decodes data submitted from Web forms
+Group:		Applications/Internet
+Requires:	httpd
+
+%description -n mod_form-devel
+Utility to decode data submitted from Web forms. It deals with both GET
+and POST methods where the data are encoded using the default content type
+application/x-www-form-urlencoded. It does not decode multipart/form-data
+(file upload) forms: for those you should use mod_upload.
+
+Development package.
+
+%prep
+%setup -q -n mod_form-%{version}
+%patch0
+
+%build
+%{apxs} -c mod_form.c
+
+%install
+mkdir -p %{buildroot}/%{apache_libexecdir}
+mkdir -p %{buildroot}/%{apache_includedir}
+cp -p .libs/mod_form.so %{buildroot}/%{apache_libexecdir}
+cp -p mod_form.h %{buildroot}/%{apache_includedir}
+
+%files
+%{apache_includedir}/mod_form.h
+
+%files -n mod_form-devel
+%{apache_libexecdir}/mod_form.so
+
+%changelog
+* Wed Dec 04 2013 Andrea Veri <averi at fedoraproject.org> 0.1-1.20131204svn145
+- Adjusted the versioning.
+- Fixed the license to be GPLv2+.
+- Moved the .so package into a -devel package.
+
+* Thu Nov 28 2013 Andrea Veri <averi at fedoraproject.org> 0.1-1
+- First package release.
diff --git a/sources b/sources
index e69de29..0a009ea 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+05811659b96c95b1dfcfa63ed5186c13  mod_form-0.1-1.20131204svn145.tar.gz


More information about the scm-commits mailing list