diff --git a/contrib/gosa.spec b/contrib/gosa.spec
index 250d77ba83067dc39a166df69fc23020404f3537..a737bfaa875d8bf9ca1ce9b5314cbd52378d1c33 100644 (file)
--- a/contrib/gosa.spec
+++ b/contrib/gosa.spec
Packager: Lars Scheiter <lars.scheiter@GONICUS.de>
Buildarch: noarch
%if %{suse}
-Requires: apache2,apache2-mod_php4,php4,php4-gd,php4-ldap,php4-mcrypt,php4-mysql,php4-imap,php4-iconv,php4-mbstring,php4-gettext,php4-session,ImageMagick
+Requires: apache2,apache2-mod_php5,php5,php5-gd,php5-ldap,php5-mcrypt,php5-mysql,php5-imap,php5-iconv,php5-mbstring,php5-gettext,php5-session,ImageMagick
%else
Requires: httpd,php,php-ldap,php-imap,php-snmp,php-mysql,php-mbstring,ImageMagick
%endif
mkdir -p %{buildroot}/usr/share/gosa
# Copy
-DIRS="doc ihtml plugins html include locale"
+DIRS="doc ihtml plugins html include locale setup"
for i in $DIRS; do \
cp -ua $i %{buildroot}/usr/share/gosa/$i ; \
done
mkdir -p %{buildroot}/etc/openldap/schema/gosa
mv contrib/openldap/*.schema %{buildroot}/etc/openldap/schema/gosa
-sed 's�"CONFIG_TEMPLATE_DIR", "../contrib/"�"CONFIG_TEMPLATE_DIR", "%{docdir}/"�g' %{buildroot}/usr/share/gosa/include/functions.inc > %{buildroot}/usr/share/gosa/include/functions.inc.new
+sed 's%"CONFIG_TEMPLATE_DIR", "../contrib/"%"CONFIG_TEMPLATE_DIR", "%{docdir}/"%g' %{buildroot}/usr/share/gosa/include/functions.inc > %{buildroot}/usr/share/gosa/include/functions.inc.new
mv -f %{buildroot}/usr/share/gosa/include/functions.inc.new %{buildroot}/usr/share/gosa/include/functions.inc
mv -f doc manual
%attr(0744, %{apacheuser}, %{apachegroup}) /usr/share/gosa/ihtml
%attr(0744, %{apacheuser}, %{apachegroup}) /usr/share/gosa/include
%attr(0744, %{apacheuser}, %{apachegroup}) /usr/share/gosa/locale
+%attr(0744, %{apacheuser}, %{apachegroup}) /usr/share/gosa/setup
%attr(0744, %{apacheuser}, %{apachegroup}) /usr/share/gosa/plugins
%attr(0744, %{apacheuser}, %{apachegroup}) /usr/share/gosa/doc/guide.xml