SPECS: apache-mod_macro.spec (NEW) - new
zbyniu
zbyniu at pld-linux.org
Fri Oct 28 00:06:33 CEST 2005
Author: zbyniu Date: Thu Oct 27 22:06:33 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
apache-mod_macro.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/apache-mod_macro.spec
diff -u /dev/null SPECS/apache-mod_macro.spec:1.1
--- /dev/null Fri Oct 28 00:06:33 2005
+++ SPECS/apache-mod_macro.spec Fri Oct 28 00:06:28 2005
@@ -0,0 +1,70 @@
+# $Revision$, $Date$
+%define mod_name macro
+%define apxs /usr/sbin/apxs
+Summary: Apache module to allow macros in apache config files
+Summary(pl): Moduł do apache pozwalający używać makr w konfiguracji
+Name: apache-mod_%{mod_name}
+Version: 1.1.6
+Release: 0.1
+License: Apache
+Group: Networking/Daemons
+Source0: http://www.cri.ensmp.fr/~coelho/mod_macro/mod_%{mod_name}-%{version}.tar.bz2
+# Source0-md5: c79c299f650b35292d3b71da19e42e45
+URL: http://www.cri.ensmp.fr/~coelho/mod_macro/
+BuildRequires: apache-devel
+Requires(post,preun): %{apxs}
+Requires: apache
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _pkglibdir %(%{apxs} -q LIBEXECDIR)
+%define _sysconfdir %(%{apxs} -q SYSCONFDIR)
+
+%description
+Apache module to allow macros in apache config files.
+
+%description -l pl
+Moduł do apache pozwalający używać makr w plikach konfiguracyjnych.
+
+%prep
+%setup -q -n mod_%{mod_name}-%{version}
+
+%build
+%{apxs} -c mod_%{mod_name}.c
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_pkglibdir}
+
+install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%{apxs} -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
+if [ -f /var/lock/subsys/httpd ]; then
+ /etc/rc.d/init.d/httpd restart 1>&2
+fi
+
+%preun
+if [ "$1" = "0" ]; then
+ %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
+ if [ -f /var/lock/subsys/httpd ]; then
+ /etc/rc.d/init.d/httpd restart 1>&2
+ fi
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc README CHANGES
+%attr(755,root,root) %{_pkglibdir}/*
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2005/10/27 22:06:28 zbyniu
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list