summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2006-02-15 13:18:20 +0000
committerPaul W. Frields <stickster@gmail.com>2006-02-15 13:18:20 +0000
commit9799501274417ee6d592458a103213482d7838ac (patch)
tree549d19e326b17fa3ee275bc57877236f755ebb70
parent686b75bc254ee5800cd29aebadac5d058995d5a2 (diff)
downloadfedora-doc-utils-9799501274417ee6d592458a103213482d7838ac.tar.gz
fedora-doc-utils-9799501274417ee6d592458a103213482d7838ac.tar.xz
fedora-doc-utils-9799501274417ee6d592458a103213482d7838ac.zip
Make kinder, gentler, more attractive spec files
-rw-r--r--packaging/spec.xsl9
1 files changed, 2 insertions, 7 deletions
diff --git a/packaging/spec.xsl b/packaging/spec.xsl
index f8b44da..7521c1e 100644
--- a/packaging/spec.xsl
+++ b/packaging/spec.xsl
@@ -42,7 +42,6 @@ BuildRequires: kdelibs
# Used if builder does not specify common files locally
%{?localbuild:%{expand:BuildRequires: fedora-doc-common}}
-
%description
<xsl:value-of select="/rpm-info/titles/translation[@lang='en']/desc" />
@@ -51,8 +50,9 @@ Summary: Fedora Documentation - <xsl:value-of select="title"/>
Group: Documentation
%description <xsl:value-of select="@lang"/>
-<xsl:value-of select="desc"/></xsl:if></xsl:for-each>
+<xsl:value-of select="desc"/></xsl:if>
+</xsl:for-each>
%prep
%setup -q -n %{docbase}-%{version}
#export GLOBIGNORE=rpm-info.xml
@@ -71,7 +71,6 @@ meinproc --output kde-<xsl:value-of select="@lang"/>/index.docbook \
<xsl:value-of select="@lang"/>/%{docbase}-<xsl:value-of select="@lang"/>.xml
</xsl:for-each>
-
%install
for DIR in $RPM_BUILD_ROOT%{_datadir}/applications/kde \
$RPM_BUILD_ROOT%{_datadir}/apps/khelpcenter/plugins/Fedora \
@@ -99,11 +98,9 @@ find . -type f | xargs -i \
popd
</xsl:for-each>
-
%clean
/bin/rm -rf $RPM_BUILD_ROOT
-
<xsl:for-each select="/rpm-info/titles/translation">
%post <xsl:if test="@lang != 'en'"><xsl:value-of select="@lang"/></xsl:if>
/usr/bin/scrollkeeper-update || true
@@ -124,7 +121,6 @@ popd
%{_datadir}/omf/fedora-doc-%{docbase}/fedora-doc-%{docbase}-C.omf
%{_docdir}/HTML/en/fedora-doc-%{docbase}/*
-
<xsl:for-each select="/rpm-info/titles/translation"><xsl:if test="@lang != 'en'">
%files <xsl:value-of select="@lang"/>
%defattr(-, root, root, -)
@@ -134,7 +130,6 @@ popd
%{_docdir}/HTML/<xsl:value-of select="@lang"/>/fedora-doc-%{docbase}/*
</xsl:if></xsl:for-each>
-
%changelog
<xsl:for-each select="/rpm-info/changelog/revision"><xsl:if
test="@role='rpm'">* <xsl:value-of select="@date"/> - <xsl:call-template