%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 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 0.1-1 - First package release.