Code

Arg! SuSE has no /usr/share/doc but instead uses /usr/share/doc/packages
authorscheiter <scheiter@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 1 Jun 2005 18:33:38 +0000 (18:33 +0000)
committerscheiter <scheiter@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 1 Jun 2005 18:33:38 +0000 (18:33 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@578 594d385d-05f5-0310-b6e9-bd551577e9d8

contrib/gosa.spec

index 2dcf39383feb4ec74ea28a1ff5fc9dafd3bba112..7388c43a29374544ee8b1b4b321a4de6e47432a2 100644 (file)
@@ -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