import gl-manpages-1.1-15.20161227.el8

This commit is contained in:
CentOS Sources 2019-05-07 02:42:04 -04:00 committed by Andrew Lukoshko
commit 7f464ef51f
5 changed files with 235 additions and 0 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
SOURCES/gl-manpages-1.0.1.tar.bz2
SOURCES/gl-manpages-1.1-20161227.tar.xz
SOURCES/mathml2.tgz
SOURCES/metainfo.xsl

4
.gl-manpages.metadata Normal file
View File

@ -0,0 +1,4 @@
dc94176431df6ba06e94bca12b4c7b4a833b853c SOURCES/gl-manpages-1.0.1.tar.bz2
077dea3190696c0709a0f13aeb2e64447e113ac8 SOURCES/gl-manpages-1.1-20161227.tar.xz
3cd9b1db626259756215e8aa92f70feff4c77116 SOURCES/mathml2.tgz
333d4fd0b0b1147c7bc64f8ebb37dd962947afb6 SOURCES/metainfo.xsl

82
SOURCES/dbmathml.dtd Normal file
View File

@ -0,0 +1,82 @@
<!-- ...................................................................... -->
<!-- DocBook MathML Module V1.1CR1 ........................................... -->
<!-- File dbmathml.dtd .................................................... -->
<!-- Copyright (C) 2000, 2001, 2002, 2003, 2004 Organization for the Advancement
of Structured Information Standards (OASIS).
$Id: dbmathml.dtd,v 1.7 2004/07/27 16:08:17 nwalsh Exp $
Permission to use, copy, modify and distribute the DocBook MathML
Module and its accompanying documentation for any purpose and
without fee is hereby granted in perpetuity, provided that the
above copyright notice and this paragraph appear in all copies.
The copyright holders make no representation about the
suitability of the DTD for any purpose. It is provided "as is"
without expressed or implied warranty.
If you modify the DocBook MathML Module in any way, label your DTD
as a variant of DocBook. See the maintenance documentation for
more information.
Please direct all questions, bug reports, or suggestions for
changes to the docbook@lists.oasis-open.org mailing list. For more
information, see http://www.oasis-open.org/docbook/.
-->
<!-- ...................................................................... -->
<!-- This is the driver file for V1.1CR1 of the DocBook MathML Module.
Please use the following formal public identifier to identify it:
"-//OASIS//DTD DocBook MathML Module V1.1CR1//EN"
For example, if your document's top-level element is Book, and
you are using DocBook directly, use the FPI in the DOCTYPE
declaration:
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1CR1//EN"
"http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd"
[...]>
Or, if you have a higher-level driver file that customizes DocBook,
use the FPI in the parameter entity declaration:
<!ENTITY % DocBookMathMLDTD PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1CR1//EN"
"http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
%DocBookMathMLDTD;
See the documentation for detailed information on the parameter
entity and module scheme used in DocBook, customizing DocBook and
planning for interchange, and changes made since the last release
of DocBook.
-->
<!ENTITY % mathml-colon ':'>
<!ENTITY % mathml-prefix 'mml'>
<!ENTITY % mathml-math '%mathml-prefix;%mathml-colon;math' >
<!ENTITY % equation.content "(alt?, (graphic|mediaobject|%mathml-math;)+)">
<!ENTITY % inlineequation.content "(alt?, (graphic|inlinemediaobject|%mathml-math;)+)">
<!ENTITY % docbook PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
%docbook;
<!-- tell the MathML DTD to do the right prefixing -->
<!ENTITY % NS.prefixed "INCLUDE">
<!ENTITY % MATHML.prefix "%mathml-prefix;">
<!ENTITY % NamespaceDecl.attrib "
xmlns%mathml-colon;%mathml-prefix;
CDATA #FIXED 'http://www.w3.org/1998/Math/MathML'
">
<!-- You must also include the MathML DTD -->
<!ENTITY % mathml PUBLIC "-//W3C//DTD MathML 2.0//EN"
"http://www.w3.org/TR/MathML2/dtd/mathml2.dtd">
%mathml;
<!-- End of dbmathml.dtd V1.1CR1 ............................................. -->
<!-- ...................................................................... -->

View File

@ -0,0 +1,9 @@
#!/bin/bash
TODAY=`date +%Y%m%d`
DIR=gl-manpages-1.1-$TODAY
mkdir -p $DIR
for MAN in man4 man3 man2 ; do
svn co --username anonymous --password anonymous https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/docs/$MAN/ $DIR/$MAN --depth immediates
done
find $DIR -name .svn | xargs rm -rf
tar cJf $DIR.tar.xz $DIR

136
SPECS/gl-manpages.spec Normal file
View File

@ -0,0 +1,136 @@
%global codate 20161227
Name: gl-manpages
Version: 1.1
Release: 15.%{codate}%{?dist}
Summary: OpenGL manpages
License: MIT and Open Publication
URL: http://www.opengl.org/wiki/Getting_started/XML_Toolchain_and_Man_Pages
# 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
# 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 kronos version.
Source4: gl-manpages-1.0.1.tar.bz2
#Silence author/version/manual etc. warnings
Source5: metainfo.xsl
BuildArch: noarch
BuildRequires: libxslt docbook-style-xsl docbook5-style-xsl
%description
OpenGL manpages
%prep
%setup -q -n %{name}-%{version}-%{codate}
tar xzf %{SOURCE3}
cp -av %{SOURCE2} mathml2/
tar xjf %{SOURCE4}
%build
# FIXME Figure out what to do about the GLSL builtin functions
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 man3 man2 ; do
pushd $MAN
for MANP in gl*.xml ; do
xsltproc --nonet %{SOURCE5} $MANP | xsltproc --nonet /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl -
done
popd
done
pushd man4
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 {man4,man3,man2}/*.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 Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-15.20161227
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-14.20161227
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-13.20161227
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Wed Dec 28 2016 Yanko Kaneti <yaneti@declera.com> - 1.1-12.20161227
- Use docbook5-style-xsl for building the GL4 manpages
* Tue Dec 27 2016 Yanko Kaneti <yaneti@declera.com> - 1.1-11.20161227
- New upstream snapshot.
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-11.20140424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-10.20140424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-9.20140424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Thu Apr 24 2014 Yanko Kaneti <yaneti@declera.com> - 1.1-8.%{codate}
- New upstream snapshot
- GLSL folded into man4.
- tarball tweaks
* Tue Nov 5 2013 Yanko Kaneti <yaneti@declera.com> - 1.1-7.%{codate}
- New upstream snapshot.
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-7.20130122
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-6.20130122
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Tue Jan 22 2013 Yanko Kaneti <yaneti@declera.com> - 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 <yaneti@declera.com> - 1.1-4.%{codate}
- Fix symlinked man references some more (#895986)
* Mon Oct 15 2012 Yanko Kaneti <yaneti@declera.com> - 1.1-3.%{codate}
- Fix symlinked man variants.
- Preserve timestamps on the older gl-manpages.
* Tue Oct 9 2012 Yanko Kaneti <yaneti@declera.com> - 1.1-2.%{codate}
- Re-add the older gl-manpages for those not present in khronos
* Tue Oct 9 2012 Yanko Kaneti <yaneti@declera.com> - 1.1-1.%{codate}
- Try building from source
* Wed Sep 5 2012 Yanko Kaneti <yaneti@declera.com> - 1.0.1-1
- Initial split from mesa