From f37d3faf1e6668329a93f8ecdc89c95d989711cd Mon Sep 17 00:00:00 2001 From: scheiter Date: Wed, 1 Jun 2005 18:33:38 +0000 Subject: [PATCH] Arg! SuSE has no /usr/share/doc but instead uses /usr/share/doc/packages git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@578 594d385d-05f5-0310-b6e9-bd551577e9d8 --- contrib/gosa.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/gosa.spec b/contrib/gosa.spec index 2dcf39383..7388c43a2 100644 --- a/contrib/gosa.spec +++ b/contrib/gosa.spec @@ -35,11 +35,13 @@ BuildArch: noarch %define apacheuser wwwrun %define apachegroup root %define webconf /etc/apache2/conf.d/ + %define docdir /usr/share/doc/packages/gosa %else %{echo:Building other rpm} %define apacheuser apache %define apachegroup apache %define webconf /etc/httpd/conf.d/ + %define docdir /usr/share/doc/gosa-%{version} %endif %description @@ -99,7 +101,7 @@ EOF 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", "/usr/share/doc/gosa-%{version}/"§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 mkdir -p %{buildroot}/etc/gosa/vacation -- 2.30.2