]> git.pld-linux.org Git - packages/apache-mod_dbi_pool.git/blobdiff - apache-mod_dbi_pool.spec
- fix config dir
[packages/apache-mod_dbi_pool.git] / apache-mod_dbi_pool.spec
index cbf2a3d911be61e4ed1e4f8ddb6b2c6b26f943e1..7ce522ee09d447df088477647903cf37a81502db 100644 (file)
@@ -6,11 +6,11 @@ Name:         apache-mod_%{mod_name}
 Version:       0.4.0
 Release:       1
 License:       GPL
-Group:         Networking/Daemons
+Group:         Networking/Daemons/HTTP
 Source0:       http://www.outoforder.cc/downloads/mod_dbi_pool/mod_%{mod_name}-%{version}.tar.bz2
 # Source0-md5: 7fd42e90358b370eafdddf1f7252a65e
 URL:           http://www.outoforder.cc/projects/apache/mod_dbi_pool/
-BuildRequires: apache-apxs >= 2.0
+BuildRequires: %{apxs}
 BuildRequires: apache-devel >= 2.0.40
 BuildRequires: autoconf
 BuildRequires: automake
@@ -24,7 +24,7 @@ Requires:     libdbi >= 0.7.2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)
-%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define                _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
 
 %description
 mod_dbi_pool provides database connection pooling services for other
@@ -69,13 +69,13 @@ sed -i -e 's,test_paths="/usr/lib /usr/local/lib",test_paths="/usr/%{_lib} /usr/
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_includedir}/apache,%{_sysconfdir}/httpd.conf}
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_includedir}/apache,%{_sysconfdir}}
 
 install src/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
 
 install include/mod_dbi_pool.h $RPM_BUILD_ROOT%{_includedir}/apache
 echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
-       $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/75_mod_%{mod_name}.conf
+       $RPM_BUILD_ROOT%{_sysconfdir}/75_mod_%{mod_name}.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -90,7 +90,7 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*_mod_%{mod_name}.conf
 %attr(755,root,root) %{_pkglibdir}/*.so
 
 %files devel
This page took 0.083346 seconds and 4 git commands to generate.