!1 gl-manpages:First commit for openEuler project
Merge pull request !1 from Alex_Chao/master
This commit is contained in:
commit
9e313a29ec
82
dbmathml.dtd
Normal file
82
dbmathml.dtd
Normal 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 ............................................. -->
|
||||||
|
<!-- ...................................................................... -->
|
||||||
BIN
gl-manpages-1.0.1.tar.bz2
Normal file
BIN
gl-manpages-1.0.1.tar.bz2
Normal file
Binary file not shown.
BIN
gl-manpages-1.1-20161227.tar.xz
Normal file
BIN
gl-manpages-1.1-20161227.tar.xz
Normal file
Binary file not shown.
63
gl-manpages.spec
Normal file
63
gl-manpages.spec
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
Name: gl-manpages
|
||||||
|
Version: 1.1
|
||||||
|
Release: 17
|
||||||
|
Summary: OpenGL manpages
|
||||||
|
|
||||||
|
License: MIT and Open Publication
|
||||||
|
URL: http://www.opengl.org/wiki/Getting_started/XML_Toolchain_and_Man_Pages
|
||||||
|
Source0: %{name}-%{version}-20161227.tar.xz
|
||||||
|
Source1: make-gl-man-snapshot.sh
|
||||||
|
Source2: http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd
|
||||||
|
Source3: http://www.w3.org/Math/DTD/mathml2.tgz
|
||||||
|
Source4: gl-manpages-1.0.1.tar.bz2
|
||||||
|
Source5: metainfo.xsl
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: libxslt docbook-style-xsl docbook5-style-xsl
|
||||||
|
|
||||||
|
%description
|
||||||
|
Manual pages for OpenGL.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{name}-%{version}-20161227
|
||||||
|
tar xzf %{SOURCE3}
|
||||||
|
cp -av %{SOURCE2} mathml2/
|
||||||
|
tar xjf %{SOURCE4}
|
||||||
|
|
||||||
|
%build
|
||||||
|
xmlcatalog --create --noout \
|
||||||
|
--add public "-//W3C//DTD MathML 2.0//EN" "file://`pwd`/mathml2/mathml2.dtd" \
|
||||||
|
--add system "http://www.w3.org/TR/MathML2/dtd/mathml2.dtd" "file://`pwd`/mathml2/mathml2.dtd" \
|
||||||
|
--add public "-//OASIS//DTD DocBook MathML Module V1.1b1//EN" "file://`pwd`/mathml2/dbmathml.dtd" \
|
||||||
|
--add system "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd" "file://`pwd`/mathml2/dbmathml.dtd" \
|
||||||
|
mathml2.cat
|
||||||
|
# Define for xsltproc
|
||||||
|
export XML_CATALOG_FILES="`pwd`/mathml2.cat /etc/xml/catalog"
|
||||||
|
|
||||||
|
for MAN in man3 man2 ; do
|
||||||
|
cd $MAN
|
||||||
|
for MANP in gl*.xml ; do
|
||||||
|
xsltproc --nonet %{SOURCE5} $MANP | xsltproc --nonet /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl -
|
||||||
|
done
|
||||||
|
cd ..
|
||||||
|
done
|
||||||
|
cd 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
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -d $RPM_BUILD_ROOT%{_mandir}/man3/
|
||||||
|
cp -n {man4,man3,man2}/*.3G $RPM_BUILD_ROOT%{_mandir}/man3/
|
||||||
|
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
|
||||||
|
* Sat Nov 30 2019 Alex Chao <zhaolei746@huawei.com> - 1.1-17
|
||||||
|
- Package init
|
||||||
9
make-gl-man-snapshot.sh
Normal file
9
make-gl-man-snapshot.sh
Normal 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
|
||||||
BIN
mathml2.tgz
Normal file
BIN
mathml2.tgz
Normal file
Binary file not shown.
34
metainfo.xsl
Normal file
34
metainfo.xsl
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<?xml version='1.0'?>
|
||||||
|
|
||||||
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||||
|
<xsl:output
|
||||||
|
doctype-public="-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
|
||||||
|
doctype-system="http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd"
|
||||||
|
cdata-section-elements="book"
|
||||||
|
indent="yes"
|
||||||
|
encoding="UTF-8"
|
||||||
|
/>
|
||||||
|
<xsl:template match="@*|node()">
|
||||||
|
<xsl:copy>
|
||||||
|
<xsl:apply-templates select="@*|node()"/>
|
||||||
|
</xsl:copy>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
|
<xsl:template match="refentry/refmeta">
|
||||||
|
<xsl:element name="info">
|
||||||
|
<xsl:element name="orgname">
|
||||||
|
<xsl:attribute name="class">consortium</xsl:attribute>
|
||||||
|
<xsl:text>opengl.org</xsl:text>
|
||||||
|
</xsl:element>
|
||||||
|
</xsl:element>
|
||||||
|
<xsl:element name="refmeta">
|
||||||
|
<xsl:apply-templates select="@*|node()"/>
|
||||||
|
<xsl:element name="refmiscinfo">
|
||||||
|
<xsl:attribute name="class">manual</xsl:attribute>
|
||||||
|
<xsl:text>OpenGL Manual</xsl:text>
|
||||||
|
</xsl:element>
|
||||||
|
</xsl:element>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
</xsl:stylesheet>
|
||||||
Loading…
x
Reference in New Issue
Block a user