|
|
|
@ -1,43 +1,42 @@
|
|
|
|
|
# FIXME: Figure out what to do about the gles* manpages, maybe different conflicting packages...
|
|
|
|
|
%global codate 20190306
|
|
|
|
|
%global commit 4547332f0f27d98601a8f5732ce8e85e09dbdb93
|
|
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
|
%global codate 20161227
|
|
|
|
|
|
|
|
|
|
Name: gl-manpages
|
|
|
|
|
Version: 1.1
|
|
|
|
|
Release: 24.%{codate}%{?dist}
|
|
|
|
|
Release: 15.%{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
|
|
|
|
|
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 khronos version.
|
|
|
|
|
# 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: make
|
|
|
|
|
BuildRequires: libxslt docbook-style-xsl docbook5-style-xsl python3
|
|
|
|
|
BuildRequires: libxslt docbook-style-xsl docbook5-style-xsl
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
OpenGL manpages
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n OpenGL-Refpages-%{commit}
|
|
|
|
|
%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" \
|
|
|
|
@ -46,17 +45,23 @@ xmlcatalog --create --noout \
|
|
|
|
|
--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 MAN in man3 man2 ; do
|
|
|
|
|
pushd $MAN
|
|
|
|
|
for MANP in gl*.xml ; do
|
|
|
|
|
xsltproc --xinclude --nonet %{SOURCE5} $MANP | xsltproc --xinclude --nonet /usr/share/sgml/docbook/xsl-ns-stylesheets/manpages/docbook.xsl -
|
|
|
|
|
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 gl4/*.3G $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
|
|
|
|
@ -71,35 +76,6 @@ find $RPM_BUILD_ROOT%{_mandir}/man3/ -type f -size -100b | xargs sed -i -e 's/\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.1-24.20190306
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 1.1-23.20190306
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-22.20190306
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-21.20190306
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-20.20190306
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-19.20190306
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Mar 6 2019 Yanko Kaneti <yaneti@declera.com> - 1.1-18.20190306
|
|
|
|
|
- Switch to the new upstream github repo sources
|
|
|
|
|
- Build only gl4 manpages for now
|
|
|
|
|
|
|
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-17.20161227
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-16.20161227
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-15.20161227
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|