docs-common/packaging spec.xsl,1.11,1.12

Paul W. Frields (pfrields) fedora-docs-commits at redhat.com
Fri Dec 30 16:56:41 UTC 2005


Author: pfrields

Update of /cvs/docs/docs-common/packaging
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29842/docs-common/packaging

Modified Files:
	spec.xsl 
Log Message:
Rebuilding docs offline from SRPM now works too


Index: spec.xsl
===================================================================
RCS file: /cvs/docs/docs-common/packaging/spec.xsl,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- spec.xsl	30 Dec 2005 16:26:33 -0000	1.11
+++ spec.xsl	30 Dec 2005 16:56:33 -0000	1.12
@@ -8,10 +8,10 @@
   <xsl:param name="lang" select="'en'" />
   <xsl:param name="docbase" select="'example-tutorial'" />
 
-<xsl:template match="/">
-# Fedora Documentation Specfile
+<xsl:template match="/"># Fedora Documentation Specfile
 %define	docbase	<xsl:value-of select="$docbase"/>
-%{!?fdpdir:%{expand:%%define localbuild 1;%%define fdpdir %{_datadir}/fedora/doc}}
+%{!?fdpdir:%define localbuild 1}
+%{!?fdpdir:%define fdpdir %{_datadir}/fedora/doc}
 
 Summary:	Fedora Documentation: %{docbase}
 Name:		fedora-doc-%{docbase}
@@ -59,7 +59,7 @@
 
 
 %build
-make html FDPDIR=%{fdpdir} HTMLCSSEXTRA=""
+make html FDPDIR=%{fdpdir} %{!?localbuild:HTMLCSSEXTRA=""}
 <xsl:for-each select="/rpm-info/titles/translation">
 mkdir kde-<xsl:value-of select="@lang"/>
 meinproc --output kde-<xsl:value-of select="@lang"/>/index.docbook \




More information about the Fedora-docs-commits mailing list