diff --git a/dbmathml.dtd b/dbmathml.dtd new file mode 100644 index 0000000000000000000000000000000000000000..6c4dbd735e7d0339260d94d0207dbb4a37bcee66 --- /dev/null +++ b/dbmathml.dtd @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + +%docbook; + + + + + + + + +%mathml; + + + diff --git a/gl-manpages-1.0.1.tar.bz2 b/gl-manpages-1.0.1.tar.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..d50b351d2e520f77e624e9d12b8970a13623c68c Binary files /dev/null and b/gl-manpages-1.0.1.tar.bz2 differ diff --git a/gl-manpages-4547332.tar.gz b/gl-manpages-4547332.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..74e88523ed64028c510c139bad2d9f26eab08f0a Binary files /dev/null and b/gl-manpages-4547332.tar.gz differ diff --git a/gl-manpages.spec b/gl-manpages.spec new file mode 100644 index 0000000000000000000000000000000000000000..952f918c6a875e9e012bc6880149884beb3fde0f --- /dev/null +++ b/gl-manpages.spec @@ -0,0 +1,76 @@ +%define anolis_release 1 +%global codate 20190306 +%global commit 4547332f0f27d98601a8f5732ce8e85e09dbdb93 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: gl-manpages +Version: 1.1 +Epoch: 1 +Release: %{anolis_release}.%{codate}%{?dist} +Summary: OpenGL manpages + +License: MIT and Open Publication +URL: https://github.com/KhronosGroup/OpenGL-Refpages +Source0: https://github.com/KhronosGroup/OpenGL-Refpages/archive/%{commit}/%{name}-%{shortcommit}.tar.gz +# 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 +# FIXME These are the old gl-manpages source which +# still have some manpages that khronos doesn't. +# Ship until somebody in the know helps figuring whats what. +# When matching install the khronos version. +Source4: gl-manpages-1.0.1.tar.bz2 +#Silence author/version/manual etc. warnings +Source5: metainfo.xsl + +BuildArch: noarch + +BuildRequires: make +BuildRequires: libxslt docbook-style-xsl docbook5-style-xsl python3 + +%description +OpenGL manpages + +%prep +%setup -q -n OpenGL-Refpages-%{commit} +tar xzf %{SOURCE3} +cp -av %{SOURCE2} mathml2/ +tar xjf %{SOURCE4} + + +%build +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" +make +pushd gl4 + for MANP in gl*.xml ; do + xsltproc --xinclude --nonet %{SOURCE5} $MANP | xsltproc --xinclude --nonet /usr/share/sgml/docbook/xsl-ns-stylesheets/manpages/docbook.xsl - + done +popd + + +%install +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3/ +cp -n gl4/*.3G $RPM_BUILD_ROOT%{_mandir}/man3/ +# install the old manpages source with 3gl -> 3G +# when matchin don't clobber the khronos version +for MANP in `find gl-manpages-1.0.1 -name *.3gl` ; do + FN=${MANP//*\//} + cp -a -n $MANP $RPM_BUILD_ROOT%{_mandir}/man3/${FN/.3gl/.3G} +done +find $RPM_BUILD_ROOT%{_mandir}/man3/ -type f -size -100b | xargs sed -i -e 's/\.3gl/\.3G/' -e 's,^\.so man3G/,.so man3/,' + + +%files +%{_mandir}/man3/* + + +%changelog +* Wed Jul 27 2022 Chunmei Xu - 1:1.1-1.20190306 +- init from upstream diff --git a/mathml2.tgz b/mathml2.tgz new file mode 100644 index 0000000000000000000000000000000000000000..204ddda837cd6f0ab90fe94fcac8abd5fa6aea21 Binary files /dev/null and b/mathml2.tgz differ diff --git a/metainfo.xsl b/metainfo.xsl new file mode 100644 index 0000000000000000000000000000000000000000..eb38dfa7a215d85cb283a8d42d27931dd4ef89c1 --- /dev/null +++ b/metainfo.xsl @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + consortium + opengl.org + + + + + + manual + OpenGL Manual + + + + +