[gpsbabel] Build and view gpsbabel.html without net access

Hans Ulrich Niedermann ndim at fedoraproject.org
Tue Jan 11 19:25:40 UTC 2011


commit b14c8a68d398f893725eb446d54b3f4a80302a6a
Author: Hans Ulrich Niedermann <hun at n-dimensional.de>
Date:   Tue Jan 11 19:12:05 2011 +0100

    Build and view gpsbabel.html without net access

 .gitignore                  |    1 +
 gpsbabel-1.4.2-xmldoc.patch |   13 +++++++++++++
 gpsbabel.spec               |    9 ++++++++-
 sources                     |    1 +
 4 files changed, 23 insertions(+), 1 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index b611aa3..9efba80 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 gpsbabel-1.3.6.tar.gz
 /gpsbabel-1.4.2.tar.gz
+/style3.css
diff --git a/gpsbabel-1.4.2-xmldoc.patch b/gpsbabel-1.4.2-xmldoc.patch
new file mode 100644
index 0000000..7203409
--- /dev/null
+++ b/gpsbabel-1.4.2-xmldoc.patch
@@ -0,0 +1,13 @@
+diff -ru gpsbabel-1.4.2/Makefile.in gpsbabel-1.4.2-xmldoc/Makefile.in
+--- gpsbabel-1.4.2/Makefile.in	2011-01-11 17:57:47.075777307 +0100
++++ gpsbabel-1.4.2-xmldoc/Makefile.in	2011-01-11 17:58:53.134094491 +0100
+@@ -234,8 +234,7 @@
+ 	xsltproc \
+ 	  --output $@ \
+ 	  --stringparam toc.section.depth "1" \
+-	  --stringparam html.stylesheet \
+-	  "http://www.gpsbabel.org/style3.css" \
++	  --stringparam html.stylesheet "style3.css" \
+ 	  http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl \
+ 	xmldoc/readme.xml
+ 
diff --git a/gpsbabel.spec b/gpsbabel.spec
index 5f16de9..f7b6fc5 100644
--- a/gpsbabel.spec
+++ b/gpsbabel.spec
@@ -20,8 +20,10 @@ URL:           http://www.gpsbabel.org
 Source0:       %{name}-%{version}.tar.gz
 Source1:       %{name}.desktop
 Source2:       %{name}.png
+Source21:      http://www.gpsbabel.org/style3.css
 Patch0:        gpsbabel-1.3.5-autoconf.patch
 Patch11:       gpsbabel-1.4.2-use-system-shapelib.patch
+Patch21:       gpsbabel-1.4.2-xmldoc.patch
 BuildRoot:     %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 BuildRequires: expat-devel
@@ -31,6 +33,7 @@ BuildRequires: qt-devel
 BuildRequires: qt-webkit-devel
 BuildRequires: desktop-file-utils
 BuildRequires: libxslt
+BuildRequires: docbook-style-xsl
 BuildRequires: shapelib-devel
 
 %description
@@ -51,6 +54,9 @@ Qt GUI interface for GPSBabel
 %patch0 -p1 -b .remove-autoconf-from-Makefile
 rm -rf shapelib
 %patch11 -p1 -b .use-system-shapelib
+%patch21 -p1 -b .xmldoc
+
+cp -p %{SOURCE21} style3.css
 
 # fix bad execute perms
 %{__chmod} a-x *.c *.h
@@ -95,7 +101,8 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 %files
 %defattr(-,root,root,-)
-%doc README* COPYING AUTHORS gpsbabel.html
+%doc README* COPYING AUTHORS
+%doc gpsbabel.html style3.css
 %{_bindir}/gpsbabel
 
 %files gui
diff --git a/sources b/sources
index a846d84..cdfdd26 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
+993d828189a53b353b9606fa45fe9480  style3.css
 76ea9f7852be2e98aa18976c4697ca93  gpsbabel-1.4.2.tar.gz


More information about the scm-commits mailing list