[gl-manpages] Try building gl-manpages from the Khronos source

Yanko Kaneti yaneti at fedoraproject.org
Tue Oct 9 14:37:43 UTC 2012


commit 919fd7eac14736a1161bfe6163755f53c1a0234d
Author: Yanko Kaneti <yaneti at declera.com>
Date:   Tue Oct 9 17:37:10 2012 +0300

    Try building gl-manpages from the Khronos source

 .gitignore       |    4 ++++
 gl-manpages.spec |   39 ++++++++++++++++++++++++++++-----------
 sources          |    2 +-
 3 files changed, 33 insertions(+), 12 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 150d9ce..925589d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,5 @@
 /gl-manpages-1.0.1.tar.bz2
+/gl-manpages-1.1-20121009.tar.xz
+/mathml2.tgz
+/dbmathml.dtd
+/make-gl-man-snapshot.sh
diff --git a/gl-manpages.spec b/gl-manpages.spec
index f1b18de..e81acf5 100644
--- a/gl-manpages.spec
+++ b/gl-manpages.spec
@@ -1,31 +1,45 @@
+%global codate 20121009
+
 Name:           gl-manpages
-Version:        1.0.1
-Release:        1%{?dist}
+Version:        1.1
+Release:        1.%{codate}%{?dist}
 Summary:        OpenGL manpages
 
-License:        MIT
+License:        MIT and Open Publication
 URL:            http://www.opengl.org/wiki/Getting_started/XML_Toolchain_and_Man_Pages
-# FIXME 
-# Prebuild manpages that were previously bundled in mesa. Should be replaced
-# a proper build from the khronos repos sources soon.
-Source0:        gl-manpages-1.0.1.tar.bz2
+# see Source1
+Source0:        gl-manpages-%{version}-%{codate}.tar.xz
+Source1:        make-gl-man-snapshot.sh
+# FIXME: Bundle mathml and the Oasis dbmathl until they are packaged
+Source2:        http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd
+Source3:        http://www.w3.org/Math/DTD/mathml2.tgz
 
 BuildArch:      noarch
 
+BuildRequires:  libxslt docbook-style-xsl
 
 %description
 OpenGL manpages
 
 %prep
-%setup -q
+%setup -q -n %{name}-%{version}-%{codate}
+tar xzf %{SOURCE3}
+cp -av %{SOURCE2} mathml2/
 
 
 %build
-%configure
-make %{?_smp_mflags}
+# FIXME Figure out how to build the GLSL manpages
+# FIXME Figure out how to silence the author/version etc warnings
+for MAN in man4 man3 man ; do
+	pushd $MAN
+	ls -1 *.xml | xargs -n1 xsltproc --noout --nonet --path ../mathml2/ /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl
+	popd
+done
+
 
 %install
-%make_install 
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3/
+cp -n {man4,man3,man}/*.3G $RPM_BUILD_ROOT%{_mandir}/man3/
 
 
 %files
@@ -33,5 +47,8 @@ make %{?_smp_mflags}
 
 
 %changelog
+* Tue Oct  9 2012 Yanko Kaneti <yaneti at declera.com> - 1.1-1.%{codate}
+- Try building from source
+
 * Wed Sep  5 2012 Yanko Kaneti <yaneti at declera.com> - 1.0.1-1
 - Initial split from mesa
diff --git a/sources b/sources
index c441fa7..f158523 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-6ae05158e678f4594343f32c2ca50515  gl-manpages-1.0.1.tar.bz2
+d66fd4a92910731c19327af50dd15e77  make-gl-man-snapshot.sh


More information about the scm-commits mailing list