diff --git a/gl-manpages.spec b/gl-manpages.spec index 4bdca39..85d384d 100644 --- a/gl-manpages.spec +++ b/gl-manpages.spec @@ -18,6 +18,8 @@ Source3: http://www.w3.org/Math/DTD/mathml2.tgz # Ship until somebody in the know helps figuring whats what. # When matching install the kronos version. Source4: gl-manpages-1.0.1.tar.bz2 +#Silence author/version/manual etc. warnings +Source5: metainfo.xsl BuildArch: noarch @@ -35,10 +37,19 @@ tar xjf %{SOURCE4} %build # FIXME Figure out how to build the GLSL manpages -# FIXME Figure out how to silence the author/version etc warnings +export BD=`pwd` +xmlcatalog --create --noout \ + --add public "-//W3C//DTD MathML 2.0//EN" "file://$BD/mathml2/mathml2.dtd" \ + --add system "http://www.w3.org/TR/MathML2/dtd/mathml2.dtd" "file://$BD/mathml2/mathml2.dtd" \ + --add public "-//OASIS//DTD DocBook MathML Module V1.1b1//EN" "file://$BD/mathml2/dbmathml.dtd" \ + --add system "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd" "file://$BD/mathml2/dbmathml.dtd" \ + mathml2.cat +export XML_CATALOG_FILES="$BD/mathml2.cat /etc/xml/catalog" for MAN in man4 man3 man2 ; do pushd $MAN - ls -1 *.xml | xargs -n1 xsltproc --noout --nonet --path ../mathml2/ /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl + for MANP in gl*.xml ; do + xsltproc --nonet %{SOURCE5} $MANP | xsltproc --nonet /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl - + done popd done @@ -63,6 +74,7 @@ find $RPM_BUILD_ROOT%{_mandir}/man3/ -type f -size -100b | xargs sed -i -e 's/\. * Tue Jan 22 2013 Yanko Kaneti - 1.1-5.%{codate} - Newer upstream snapshot. Minor upstream rearrangement. - Remove checkout script from sources and add to git. +- Try to actually use the bundled mathml2. Fix warnings. * Wed Jan 16 2013 Yanko Kaneti - 1.1-4.%{codate} - Fix symlinked man references some more (#895986) diff --git a/metainfo.xsl b/metainfo.xsl new file mode 100644 index 0000000..eb38dfa --- /dev/null +++ b/metainfo.xsl @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + consortium + opengl.org + + + + + + manual + OpenGL Manual + + + + +