]> git.pld-linux.org Git - packages/apache-mod_xsendfile.git/blobdiff - apache-mod_xsendfile.spec
- fix config dir
[packages/apache-mod_xsendfile.git] / apache-mod_xsendfile.spec
index 9a6b391c5c876bf036454bb9c38f5a701714f017..16e603a7f9173fcb162fff09edaa682125e91df3 100644 (file)
@@ -6,19 +6,18 @@ Name:         apache-mod_%{mod_name}
 Version:       0.9
 Release:       1
 License:       Apache 2.0
-Group:         Networking/Daemons
+Group:         Networking/Daemons/HTTP
 Source0:       http://tn123.ath.cx/mod_xsendfile/mod_xsendfile-%{version}.tar.gz
 # Source0-md5: a7d22d4027386929c7d69c8f2b050c96
 URL:           http://tn123.ath.cx/mod_xsendfile/
-BuildRequires: apache-apxs >= 2.0
+BuildRequires: %{apxs}
 BuildRequires: apache-devel >= 2.0
 BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      apache(modules-api) = %apache_modules_api
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
-%define                _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)
-%define                _pkglogdir      %(%{apxs} -q PREFIX 2>/dev/null)/logs
+%define                _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
 
 %description
 mod_xsendfile is a small Apache2 module that processes X-SENDFILE
@@ -47,10 +46,10 @@ dowolnego CGI.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
-install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}}
+install -p .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
 echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
-    $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/90_mod_%{mod_name}.conf
+    $RPM_BUILD_ROOT%{_sysconfdir}/90_mod_%{mod_name}.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -66,5 +65,5 @@ fi
 %files
 %defattr(644,root,root,755)
 %doc Readme.html
-%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
This page took 0.082811 seconds and 4 git commands to generate.