+#
+# Conditional build:
+%bcond_with publichtml # enable search of public_html in home taken from mysql
+#
%define mod_name vhost_mysql
%define apxs /usr/sbin/apxs
Summary: Apache vhost in MySQL
-Summary(pl): Wirtualne hosty dla Apache'a w bazie MySQL
+Summary(pl.UTF-8): Wirtualne hosty dla Apache'a w bazie MySQL
Name: apache-mod_%{mod_name}
Version: 0.10
-Release: 5
+Release: 6
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: apache_vhost_mysql.conf
+Patch0: mod_%{mod_name}2-publichtml.patch
BuildRequires: %{apxs}
BuildRequires: apache-devel >= 2.0
BuildRequires: db-devel >= 4.2.52
This module provides dynamically configured virtual hosting using
MySQL in Apache2.
-%description -l pl
-Ten modu³ umo¿liwia dynamicznie konfigurowanie hostów wirtualnych w
-Apache'u 2 przy u¿yciu bazy MySQL.
+%description -l pl.UTF-8
+Ten moduł umożliwia dynamicznie konfigurowanie hostów wirtualnych w
+serwerze Apache 2 przy użyciu bazy MySQL.
%prep
%setup -q -n mod_%{mod_name}2-%{version}
rm -rf .libs *.{la,lo,o,slo}
+%if %{with publichtml}
+%patch -p1
+%endif
%build
%{__make} \
%post
%service -q httpd restart
-%preun
+%postun
if [ "$1" = "0" ]; then
%service -q httpd restart
fi