Changes of Revision 2
[-] | Added | apache2-webthings-collection.spec |
x 1
2 +# 3 +# spec file for package apache2-webthings-collection (Version 1.0) 4 +# 5 +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. 6 +# This file and all modifications and additions to the pristine 7 +# package are under the same license as the package itself. 8 +# 9 +# Please submit bugfixes or comments via http://bugs.opensuse.org/ 10 +# 11 + 12 +# norootforbuild 13 + 14 +Name: apache2-webthings-collection 15 +BuildRequires: apache2-devel apache2-prefork apache2-worker 16 +%define apxs /usr/sbin/apxs2 17 +%define apache apache2 18 +%define apache_libexecdir %(%{apxs} -q LIBEXECDIR) 19 +%define apache_sysconfdir %(%{apxs} -q SYSCONFDIR) 20 +%define apache_includedir %(%{apxs} -q INCLUDEDIR) 21 +%define apache_serverroot %(%{apxs} -q PREFIX) 22 +%define apache_localstatedir %(%{apxs} -q LOCALSTATEDIR) 23 +%define apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN) 24 +Version: 1.0 25 +Release: 50 26 +License: GPL 27 +Group: Productivity/Networking/Web/Servers 28 +Requires: apache2 %{apache_mmn} 29 +Autoreqprov: on 30 +Summary: Some Apache modules from Webthing.com 31 +# 32 +Source10: http://apache.webthing.com/svn/apache/forms/mod_form.c 33 +Source11: http://apache.webthing.com/svn/apache/forms/mod_form.h 34 +Patch0: mod_form.c.preserve_args.patch 35 +# 36 +Source20: http://apache.webthing.com/mod_line_edit/mod_line_edit.c 37 +# 38 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 39 + 40 +%description 41 +This is a collection of some Apache modules from Webthing.com, like 42 +mod_form and mod_edit. 43 + 44 +See 45 +http://apache.webthing.com/mod_form/ 46 +http://apache.webthing.com/mod_line_edit/ 47 + 48 +Author: Nick Kew 49 + 50 +%if 0%{?opensuse_bs} 51 + %debug_package 52 +%endif 53 +%prep 54 +cp -p %{S:10} %{S:11} %{S:20} . 55 +%patch0 56 + 57 +%build 58 +%{apxs} -c mod_form.c 59 +%{apxs} -c mod_line_edit.c 60 + 61 +%install 62 +rm -rf $RPM_BUILD_ROOT 63 +mkdir -p $RPM_BUILD_ROOT/%{apache_libexecdir} 64 +mkdir -p $RPM_BUILD_ROOT/%{apache_includedir} 65 +cp -p .libs/mod_form.so $RPM_BUILD_ROOT/%{apache_libexecdir} 66 +cp -p .libs/mod_line_edit.so $RPM_BUILD_ROOT/%{apache_libexecdir} 67 +cp -p mod_form.h $RPM_BUILD_ROOT/%{apache_includedir} 68 + 69 +%files 70 +%defattr(-,root,root) 71 +#%doc mod_*.{c,h} 72 +%{apache_libexecdir}/*.so 73 +%{apache_includedir}/*.h 74 + 75 +%changelog -n apache2-webthings-collection 76 |