Group: Applications/WWW
Source0: ftp://ftp.horde.org/pub/skeleton/%{hordeapp}-h3-%{version}.tar.gz
# Source0-md5: -
-Source1: %{hordeapp}.conf
-Patch0: %{hordeapp}-prefs.patch
+Source1: apache.conf
+Patch0: prefs.patch
URL: http://www.horde.org/skeleton/
BuildRequires: rpm-php-pearprov >= 4.0.2-98
BuildRequires: rpmbuild(macros) >= 1.264
-Requires: apache(mod_access)
Requires: horde >= 3.0
Requires: webapps
+Requires: webserver(access)
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q -n %{hordeapp}-h3-%{version}
+%patch0 -p1
rm {,*/}.htaccess
for i in config/*.dist; do
%post
if [ ! -f %{_sysconfdir}/conf.php.bak ]; then
- install /dev/null -o root -g http -m660 %{_sysconfdir}/conf.php.bak
+ install /dev/null -o root -g http -m 0660 %{_sysconfdir}/conf.php.bak
fi
# CHECK FIRST DOES IT HAVE SQL AND FILE THERE.
if [ "$1" = 1 ]; then
-%banner %{name} -e <<-EOF
+ %banner %{name} -e <<-EOF
IMPORTANT:
If you are installing Skeleton for the first time, You may need to
create the Skeleton database tables. To do so run:
zcat %{_docdir}/%{name}-%{version}/scripts/sql/%{hordeapp}.sql.gz | mysql horde
-EOF
+ EOF
fi
%triggerin -- apache1 < 1.3.37-3, apache1-base