SuSE has different doc conventions.
authorScott Cantor <cantor.2@osu.edu>
Tue, 7 Aug 2007 22:00:07 +0000 (22:00 +0000)
committerScott Cantor <cantor.2@osu.edu>
Tue, 7 Aug 2007 22:00:07 +0000 (22:00 +0000)
shibboleth.spec.in

index ba5c42f..c800d7d 100644 (file)
@@ -113,9 +113,15 @@ if [ "$APACHE_CONFIG" != "no" ] ; then
        fi
        if [ "$APACHE_CONFD" != "no" ] ; then
                if [ ! -f $APACHE_CONFD/shib.conf ] ; then
-                       sed "s/\/usr\/doc\/%{name}/\/usr\/share\/doc\/%{name}-@-VERSION-@/g" \
+%if "%{_vendor}" == "suse"
+                   sed "s/\/usr\/doc\/%{name}/\/usr\/share\/doc\/packages\/%{name}/g" \
                                %{_sysconfdir}/%{name}/$APACHE_CONFIG \
                                > $APACHE_CONFD/shib.conf
+%else
+                       sed "s/\/usr\/doc\/%{name}/\/usr\/share\/doc\/%{name}-@-VERSION-@/g" \
+                           %{_sysconfdir}/%{name}/$APACHE_CONFIG \
+                           > $APACHE_CONFD/shib.conf
+%endif
                fi
        fi
 fi