-#
-# TODO:
-# other number at httpd.conf ?
%define mod_name vhost_mysql
%define apxs /usr/sbin/apxs
Summary(pl): Wirtualne hosty dla Apache'a w bazie MySQL
Name: apache-mod_%{mod_name}
Version: 0.10
-Release: 0.8
+Release: 1
License: GPL
Group: Networking/Daemons
Source0: http://fabienne.tc2.utelisys.net/~skinkie/mod_vhost_mysql2/mod_%{mod_name}2-%{version}.tar.gz
# Source0-md5: c47c8dc4ac41e9ed2c91a239c876d272
-Source1: 95_vhost_mysql.conf
+Source1: apache_vhost_mysql.conf
BuildRequires: %{apxs}
BuildRequires: apache-devel
BuildRequires: db-devel >= 4.2.52
%build
%{__make} \
- APXS=apxs
+ APXS=/usr/sbin/apxs
%install
rm -rf $RPM_BUILD_ROOT
install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
-install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/21_vhost_mysql.conf
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README vh.sql
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/95_vhost_mysql.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_vhost_mysql.conf
%attr(755,root,root) %{_pkglibdir}/*.so