]> git.pld-linux.org Git - packages/apache-mod_log_sql.git/commitdiff
- make %install re-entrant
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 10 Feb 2005 01:50:54 +0000 (01:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-mod_log_sql.spec -> 1.9

apache-mod_log_sql.spec

index ecf2148c54f6e8a17789eaba09723c031eff9748..052728336e279d2d0ba35bac997243390e768470 100644 (file)
@@ -12,6 +12,7 @@ Group:                Networking/Daemons
 Source0:       http://www.outoforder.cc/downloads/mod_log_sql/mod_%{mod_name}-%{version}.tar.gz
 # Source0-md5: e246a3d8e96d2d62715eb34f75c7c11d
 Patch0:                mod_%{mod_name}-acam_libexecdir.patch
+Patch1:                mod_%{mod_name}-subdirs.patch
 URL:           http://www.outoforder.cc/projects/apache/mod_log_sql/
 BuildRequires: %{apxs}
 BuildRequires: apache-devel >= 2.0.40
@@ -27,8 +28,8 @@ Requires(preun):      fileutils
 Requires:      apache
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _sysconfdir     %(%{apxs} -q SYSCONFDIR)
-%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR)
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define                _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)
 
 %description
 mod_log_sql is a logging module for Apache 1.3 and 2.0 which logs all requests
@@ -41,6 +42,9 @@ logowanie wszystkich zapyta
 %prep
 %setup -q -n mod_%{mod_name}-%{version}
 %patch0 -p0
+%patch1 -p1
+
+rm -f docs/{Makefile*,*.xml} contrib/Makefile*
 
 %build
 %{__perl} -pi -e "s:apr-config:apr-1-config:g" aclocal.m4
@@ -59,8 +63,6 @@ install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_pkglibdir}}
 install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
 #install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
 
-rm docs/Makefile* docs/*.xml contrib/Makefile*
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
This page took 0.061899 seconds and 4 git commands to generate.