This commit is contained in:
wangyiru826 2019-12-06 10:07:42 +08:00
parent 33a4c0a584
commit 0c5882ed6c
3 changed files with 93 additions and 0 deletions

View File

@ -0,0 +1,26 @@
diff -up gnome-doc-utils-0.14.0/xslt/docbook/html/db2html-css.xsl.package gnome-doc-utils-0.14.0/xslt/docbook/html/db2html-css.xsl
--- gnome-doc-utils-0.14.0/xslt/docbook/html/db2html-css.xsl.package 2008-09-22 16:06:09.000000000 -0400
+++ gnome-doc-utils-0.14.0/xslt/docbook/html/db2html-css.xsl 2008-11-29 11:35:54.000000000 -0500
@@ -465,6 +465,7 @@ span.medialabel { font-style: italic; }
span.methodname { font-family: monospace; }
span.ooclass, span.ooexception, span.oointerface { font-family: monospace; }
span.option { font-family: monospace; }
+span.package { font-family: monospace; }
span.parameter { font-family: monospace; }
span.paramdef span.parameter { font-style: italic; }
span.prompt { font-family: monospace; }
diff -up gnome-doc-utils-0.14.0/xslt/docbook/html/db2html-inline.xsl.package gnome-doc-utils-0.14.0/xslt/docbook/html/db2html-inline.xsl
--- gnome-doc-utils-0.14.0/xslt/docbook/html/db2html-inline.xsl.package 2008-09-22 16:06:09.000000000 -0400
+++ gnome-doc-utils-0.14.0/xslt/docbook/html/db2html-inline.xsl 2008-11-29 11:35:54.000000000 -0500
@@ -669,6 +669,11 @@ FIXME
<xsl:call-template name="db2html.inline"/>
</xsl:template>
+<!-- = package = -->
+<xsl:template match="package">
+ <xsl:call-template name="db2html.inline"/>
+</xsl:template>
+
<!-- = pagenums = -->
<xsl:template match="pagenums">
<xsl:call-template name="db2html.inline"/>

Binary file not shown.

67
gnome-doc-utils.spec Normal file
View File

@ -0,0 +1,67 @@
Name: gnome-doc-utils
Version: 0.20.10
Release: 17
Summary: A collection of documentation utilities for the Gnome project
License: GPLv2+ and LGPLv2+ and GFDL
URL: https://wiki.gnome.org/Projects/GnomeDocUtils
Source: https://download.gnome.org/sources/%{name}/0.20/%{name}-%{version}.tar.xz
Patch0001: gnome-doc-utils-0.14.0-package.patch
BuildArch: noarch
BuildRequires: libxml2-devel >= 2.6.12 libxslt-devel >= 1.1.8 python2-libxml2
BuildRequires: python2-devel intltool gettext scrollkeeper
Requires: libxml2 >= 2.6.12 libxslt >= 1.1.8 python2-libxml2 automake
Requires: gnome-doc-utils-stylesheets = %{version}-%{release}
%description
gnome-doc-utils is a collection of documentation utilities for the Gnome project.
It includes xml2po tool which makes it easier to translate and keep up to date
translations of documentation. It is highly recommended that all GNOME projects
that have user documentation should use gnome-doc-utils.
%package stylesheets
Summary: XSL stylesheets which is uesd by Gnome
License: LGPLv2+
Requires: docbook-dtds pkgconfig xml-common
%description stylesheets
The package includes XSL stylesheets used by yelp and by the tools in gnome-doc-utils.
%package help
Summary: This package contains help documents
%description help
Files for help with gnome-doc-utils.
%prep
%autosetup -p1
%build
%configure --disable-scrollkeeper --enable-build-utils
%make_build
%install
%make_install
sed -i -e '/^Requires:/d' %{buildroot}%{_datadir}/pkgconfig/xml2po.pc
%find_lang %{name}
%files -f %{name}.lang
%license COPYING COPYING.GPL COPYING.LGPL
%{_bindir}/*
%{_datadir}/aclocal/gnome-doc-utils.m4
%{_datadir}/gnome-doc-utils
%{python2_sitelib}/xml2po/
%{_datadir}/pkgconfig/{gnome-doc-utils.pc,xml2po.pc}
%files stylesheets
%{_datadir}/xml/{gnome,mallard}
%files help
%doc AUTHORS NEWS README
%{_datadir}/gnome/help/gnome-doc-make
%{_datadir}/gnome/help/gnome-doc-xslt
%{_mandir}/man1/xml2po.1*
%changelog
* Wed Dec 4 2019 wangyiru <wangyiru1@huawei.com> - 0.20.10-17
- Package init