|
|
56c395 |
%global codate 20161227
|
|
|
56c395 |
|
|
|
56c395 |
Name: gl-manpages
|
|
|
56c395 |
Version: 1.1
|
|
|
56c395 |
Release: 15.%{codate}%{?dist}
|
|
|
56c395 |
Summary: OpenGL manpages
|
|
|
56c395 |
|
|
|
56c395 |
License: MIT and Open Publication
|
|
|
56c395 |
URL: http://www.opengl.org/wiki/Getting_started/XML_Toolchain_and_Man_Pages
|
|
|
56c395 |
# see Source1
|
|
|
56c395 |
Source0: gl-manpages-%{version}-%{codate}.tar.xz
|
|
|
56c395 |
Source1: make-gl-man-snapshot.sh
|
|
|
56c395 |
# FIXME: Bundle mathml and the Oasis dbmathl until they are packaged
|
|
|
56c395 |
Source2: http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd
|
|
|
56c395 |
Source3: http://www.w3.org/Math/DTD/mathml2.tgz
|
|
|
56c395 |
# FIXME These are the old gl-manpages source which
|
|
|
56c395 |
# still have some manpages that khronos doesn't.
|
|
|
56c395 |
# Ship until somebody in the know helps figuring whats what.
|
|
|
56c395 |
# When matching install the kronos version.
|
|
|
56c395 |
Source4: gl-manpages-1.0.1.tar.bz2
|
|
|
56c395 |
#Silence author/version/manual etc. warnings
|
|
|
56c395 |
Source5: metainfo.xsl
|
|
|
56c395 |
|
|
|
56c395 |
BuildArch: noarch
|
|
|
56c395 |
|
|
|
56c395 |
BuildRequires: libxslt docbook-style-xsl docbook5-style-xsl
|
|
|
56c395 |
|
|
|
56c395 |
%description
|
|
|
56c395 |
OpenGL manpages
|
|
|
56c395 |
|
|
|
56c395 |
%prep
|
|
|
56c395 |
%setup -q -n %{name}-%{version}-%{codate}
|
|
|
56c395 |
tar xzf %{SOURCE3}
|
|
|
56c395 |
cp -av %{SOURCE2} mathml2/
|
|
|
56c395 |
tar xjf %{SOURCE4}
|
|
|
56c395 |
|
|
|
56c395 |
|
|
|
56c395 |
%build
|
|
|
56c395 |
# FIXME Figure out what to do about the GLSL builtin functions
|
|
|
56c395 |
export BD=`pwd`
|
|
|
56c395 |
xmlcatalog --create --noout \
|
|
|
56c395 |
--add public "-//W3C//DTD MathML 2.0//EN" "file://$BD/mathml2/mathml2.dtd" \
|
|
|
56c395 |
--add system "http://www.w3.org/TR/MathML2/dtd/mathml2.dtd" "file://$BD/mathml2/mathml2.dtd" \
|
|
|
56c395 |
--add public "-//OASIS//DTD DocBook MathML Module V1.1b1//EN" "file://$BD/mathml2/dbmathml.dtd" \
|
|
|
56c395 |
--add system "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd" "file://$BD/mathml2/dbmathml.dtd" \
|
|
|
56c395 |
mathml2.cat
|
|
|
56c395 |
export XML_CATALOG_FILES="$BD/mathml2.cat /etc/xml/catalog"
|
|
|
56c395 |
for MAN in man3 man2 ; do
|
|
|
56c395 |
pushd $MAN
|
|
|
56c395 |
for MANP in gl*.xml ; do
|
|
|
56c395 |
xsltproc --nonet %{SOURCE5} $MANP | xsltproc --nonet /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl -
|
|
|
56c395 |
done
|
|
|
56c395 |
popd
|
|
|
56c395 |
done
|
|
|
56c395 |
pushd man4
|
|
|
56c395 |
for MANP in gl*.xml ; do
|
|
|
56c395 |
xsltproc --xinclude --nonet %{SOURCE5} $MANP | xsltproc --xinclude --nonet /usr/share/sgml/docbook/xsl-ns-stylesheets/manpages/docbook.xsl -
|
|
|
56c395 |
done
|
|
|
56c395 |
popd
|
|
|
56c395 |
|
|
|
56c395 |
|
|
|
56c395 |
%install
|
|
|
56c395 |
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3/
|
|
|
56c395 |
cp -n {man4,man3,man2}/*.3G $RPM_BUILD_ROOT%{_mandir}/man3/
|
|
|
56c395 |
# install the old manpages source with 3gl -> 3G
|
|
|
56c395 |
# when matchin don't clobber the khronos version
|
|
|
56c395 |
for MANP in `find gl-manpages-1.0.1 -name *.3gl` ; do
|
|
|
56c395 |
FN=${MANP//*\//}
|
|
|
56c395 |
cp -a -n $MANP $RPM_BUILD_ROOT%{_mandir}/man3/${FN/.3gl/.3G}
|
|
|
56c395 |
done
|
|
|
56c395 |
find $RPM_BUILD_ROOT%{_mandir}/man3/ -type f -size -100b | xargs sed -i -e 's/\.3gl/\.3G/' -e 's,^\.so man3G/,.so man3/,'
|
|
|
56c395 |
|
|
|
56c395 |
|
|
|
56c395 |
%files
|
|
|
56c395 |
%{_mandir}/man3/*
|
|
|
56c395 |
|
|
|
56c395 |
|
|
|
56c395 |
%changelog
|
|
|
56c395 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-15.20161227
|
|
|
56c395 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
56c395 |
|
|
|
56c395 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-14.20161227
|
|
|
56c395 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
56c395 |
|
|
|
56c395 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-13.20161227
|
|
|
56c395 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
56c395 |
|
|
|
56c395 |
* Wed Dec 28 2016 Yanko Kaneti <yaneti@declera.com> - 1.1-12.20161227
|
|
|
56c395 |
- Use docbook5-style-xsl for building the GL4 manpages
|
|
|
56c395 |
|
|
|
56c395 |
* Tue Dec 27 2016 Yanko Kaneti <yaneti@declera.com> - 1.1-11.20161227
|
|
|
56c395 |
- New upstream snapshot.
|
|
|
56c395 |
|
|
|
56c395 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-11.20140424
|
|
|
56c395 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
56c395 |
|
|
|
56c395 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-10.20140424
|
|
|
56c395 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
56c395 |
|
|
|
56c395 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-9.20140424
|
|
|
56c395 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
56c395 |
|
|
|
56c395 |
* Thu Apr 24 2014 Yanko Kaneti <yaneti@declera.com> - 1.1-8.%{codate}
|
|
|
56c395 |
- New upstream snapshot
|
|
|
56c395 |
- GLSL folded into man4.
|
|
|
56c395 |
- tarball tweaks
|
|
|
56c395 |
|
|
|
56c395 |
* Tue Nov 5 2013 Yanko Kaneti <yaneti@declera.com> - 1.1-7.%{codate}
|
|
|
56c395 |
- New upstream snapshot.
|
|
|
56c395 |
|
|
|
56c395 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-7.20130122
|
|
|
56c395 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
56c395 |
|
|
|
56c395 |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-6.20130122
|
|
|
56c395 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
56c395 |
|
|
|
56c395 |
* Tue Jan 22 2013 Yanko Kaneti <yaneti@declera.com> - 1.1-5.%{codate}
|
|
|
56c395 |
- Newer upstream snapshot. Minor upstream rearrangement.
|
|
|
56c395 |
- Remove checkout script from sources and add to git.
|
|
|
56c395 |
- Try to actually use the bundled mathml2. Fix warnings.
|
|
|
56c395 |
|
|
|
56c395 |
* Wed Jan 16 2013 Yanko Kaneti <yaneti@declera.com> - 1.1-4.%{codate}
|
|
|
56c395 |
- Fix symlinked man references some more (#895986)
|
|
|
56c395 |
|
|
|
56c395 |
* Mon Oct 15 2012 Yanko Kaneti <yaneti@declera.com> - 1.1-3.%{codate}
|
|
|
56c395 |
- Fix symlinked man variants.
|
|
|
56c395 |
- Preserve timestamps on the older gl-manpages.
|
|
|
56c395 |
|
|
|
56c395 |
* Tue Oct 9 2012 Yanko Kaneti <yaneti@declera.com> - 1.1-2.%{codate}
|
|
|
56c395 |
- Re-add the older gl-manpages for those not present in khronos
|
|
|
56c395 |
|
|
|
56c395 |
* Tue Oct 9 2012 Yanko Kaneti <yaneti@declera.com> - 1.1-1.%{codate}
|
|
|
56c395 |
- Try building from source
|
|
|
56c395 |
|
|
|
56c395 |
* Wed Sep 5 2012 Yanko Kaneti <yaneti@declera.com> - 1.0.1-1
|
|
|
56c395 |
- Initial split from mesa
|