2013-01-22 16:52:05 +00:00
|
|
|
%global codate 20130122
|
2012-10-09 14:37:10 +00:00
|
|
|
|
2012-09-05 15:27:23 +00:00
|
|
|
Name: gl-manpages
|
2012-10-09 14:37:10 +00:00
|
|
|
Version: 1.1
|
2013-01-22 16:52:05 +00:00
|
|
|
Release: 5.%{codate}%{?dist}
|
2012-09-05 15:27:23 +00:00
|
|
|
Summary: OpenGL manpages
|
|
|
|
|
2012-10-09 14:37:10 +00:00
|
|
|
License: MIT and Open Publication
|
2012-09-05 15:27:23 +00:00
|
|
|
URL: http://www.opengl.org/wiki/Getting_started/XML_Toolchain_and_Man_Pages
|
2012-10-09 14:37:10 +00:00
|
|
|
# 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
|
2012-10-09 16:51:24 +00:00
|
|
|
# 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
|
2013-01-22 19:09:30 +00:00
|
|
|
#Silence author/version/manual etc. warnings
|
|
|
|
Source5: metainfo.xsl
|
2012-09-05 15:27:23 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
2012-10-09 14:37:10 +00:00
|
|
|
BuildRequires: libxslt docbook-style-xsl
|
2012-09-05 15:27:23 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
OpenGL manpages
|
|
|
|
|
|
|
|
%prep
|
2012-10-09 14:37:10 +00:00
|
|
|
%setup -q -n %{name}-%{version}-%{codate}
|
|
|
|
tar xzf %{SOURCE3}
|
|
|
|
cp -av %{SOURCE2} mathml2/
|
2012-10-09 16:51:24 +00:00
|
|
|
tar xjf %{SOURCE4}
|
2012-09-05 15:27:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2012-10-09 14:37:10 +00:00
|
|
|
# FIXME Figure out how to build the GLSL manpages
|
2013-01-22 19:09:30 +00:00
|
|
|
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"
|
2013-01-22 16:52:05 +00:00
|
|
|
for MAN in man4 man3 man2 ; do
|
2012-10-09 14:37:10 +00:00
|
|
|
pushd $MAN
|
2013-01-22 19:09:30 +00:00
|
|
|
for MANP in gl*.xml ; do
|
|
|
|
xsltproc --nonet %{SOURCE5} $MANP | xsltproc --nonet /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl -
|
|
|
|
done
|
2012-10-09 14:37:10 +00:00
|
|
|
popd
|
|
|
|
done
|
|
|
|
|
2012-09-05 15:27:23 +00:00
|
|
|
|
|
|
|
%install
|
2012-10-09 14:37:10 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3/
|
2013-01-22 16:52:05 +00:00
|
|
|
cp -n {man4,man3,man2}/*.3G $RPM_BUILD_ROOT%{_mandir}/man3/
|
2012-10-09 16:51:24 +00:00
|
|
|
# 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//*\//}
|
2012-10-15 10:24:55 +00:00
|
|
|
cp -a -n $MANP $RPM_BUILD_ROOT%{_mandir}/man3/${FN/.3gl/.3G}
|
2012-10-09 16:51:24 +00:00
|
|
|
done
|
2013-01-16 14:55:16 +00:00
|
|
|
find $RPM_BUILD_ROOT%{_mandir}/man3/ -type f -size -100b | xargs sed -i -e 's/\.3gl/\.3G/' -e 's,^\.so man3G/,.so man3/,'
|
2012-09-05 15:27:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2013-01-22 16:52:05 +00:00
|
|
|
* 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.
|
2013-01-22 19:09:30 +00:00
|
|
|
- Try to actually use the bundled mathml2. Fix warnings.
|
2013-01-22 16:52:05 +00:00
|
|
|
|
2013-01-16 14:55:16 +00:00
|
|
|
* Wed Jan 16 2013 Yanko Kaneti <yaneti@declera.com> - 1.1-4.%{codate}
|
|
|
|
- Fix symlinked man references some more (#895986)
|
|
|
|
|
2012-10-15 10:24:55 +00:00
|
|
|
* Mon Oct 15 2012 Yanko Kaneti <yaneti@declera.com> - 1.1-3.%{codate}
|
|
|
|
- Fix symlinked man variants.
|
|
|
|
- Preserve timestamps on the older gl-manpages.
|
|
|
|
|
2012-10-09 16:51:24 +00:00
|
|
|
* 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
|
|
|
|
|
2012-10-09 14:37:10 +00:00
|
|
|
* Tue Oct 9 2012 Yanko Kaneti <yaneti@declera.com> - 1.1-1.%{codate}
|
|
|
|
- Try building from source
|
|
|
|
|
2012-09-05 15:27:23 +00:00
|
|
|
* Wed Sep 5 2012 Yanko Kaneti <yaneti@declera.com> - 1.0.1-1
|
|
|
|
- Initial split from mesa
|