[7142] | 1 | %global codate 20121009 |
---|
| 2 | |
---|
| 3 | Name: gl-manpages |
---|
| 4 | Version: 1.1 |
---|
[9123] | 5 | Release: 2%{?_dist_release} |
---|
[7142] | 6 | Summary: OpenGL manpages |
---|
| 7 | Summary(ja): OpenGLマニュアルページ |
---|
| 8 | |
---|
| 9 | License: MIT and Open Publication |
---|
[9123] | 10 | Group: Documentation |
---|
[7142] | 11 | URL: http://www.opengl.org/wiki/Getting_started/XML_Toolchain_and_Man_Pages |
---|
| 12 | # see Source1 |
---|
| 13 | Source0: gl-manpages-%{version}-%{codate}.tar.xz |
---|
| 14 | Source1: make-gl-man-snapshot.sh |
---|
| 15 | # FIXME: Bundle mathml and the Oasis dbmathl until they are packaged |
---|
| 16 | Source2: http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd |
---|
| 17 | Source3: http://www.w3.org/Math/DTD/mathml2.tgz |
---|
| 18 | # FIXME These are the old gl-manpages source which |
---|
| 19 | # still have some manpages that khronos doesn't. |
---|
| 20 | # Ship until somebody in the know helps figuring whats what. |
---|
| 21 | # When matching install the kronos version. |
---|
| 22 | Source4: gl-manpages-1.0.1.tar.bz2 |
---|
| 23 | |
---|
[9123] | 24 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
[7142] | 25 | BuildArch: noarch |
---|
| 26 | BuildRequires: libxslt docbook-style-xsl |
---|
| 27 | |
---|
| 28 | %description |
---|
| 29 | OpenGL manpages |
---|
| 30 | |
---|
| 31 | %prep |
---|
| 32 | %setup -q -n %{name}-%{version}-%{codate} |
---|
| 33 | tar xzf %{SOURCE3} |
---|
| 34 | cp -av %{SOURCE2} mathml2/ |
---|
| 35 | tar xjf %{SOURCE4} |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | %build |
---|
| 39 | # FIXME Figure out how to build the GLSL manpages |
---|
| 40 | # FIXME Figure out how to silence the author/version etc warnings |
---|
| 41 | for MAN in man4 man3 man ; do |
---|
| 42 | pushd $MAN |
---|
| 43 | ls -1 *.xml | xargs -n1 xsltproc --noout --nonet --path ../mathml2/ /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl |
---|
| 44 | popd |
---|
| 45 | done |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | %install |
---|
| 49 | mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3/ |
---|
| 50 | cp -n {man4,man3,man}/*.3G $RPM_BUILD_ROOT%{_mandir}/man3/ |
---|
| 51 | # install the old manpages source with 3gl -> 3G |
---|
| 52 | # when matchin don't clobber the khronos version |
---|
| 53 | for MANP in `find gl-manpages-1.0.1 -name *.3gl` ; do |
---|
| 54 | FN=${MANP//*\//} |
---|
| 55 | cp -a -n $MANP $RPM_BUILD_ROOT%{_mandir}/man3/${FN/.3gl/.3G} |
---|
| 56 | find $RPM_BUILD_ROOT%{_mandir}/man3/ -type f -size -100b | xargs sed -i -e 's/\.3gl/\.3G/' |
---|
| 57 | done |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | %files |
---|
| 61 | %{_mandir}/man3/* |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | %changelog |
---|
[9123] | 65 | * Mon Nov 24 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.1-2 |
---|
| 66 | - added Group tag |
---|
| 67 | |
---|
[7142] | 68 | * Wed Nov 21 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-1 |
---|
| 69 | - initial build for Vine Linux |
---|
| 70 | |
---|
| 71 | * Mon Oct 15 2012 Yanko Kaneti <yaneti@declera.com> - 1.1-3.%{codate} |
---|
| 72 | - Fix symlinked man variants. |
---|
| 73 | - Preserve timestamps on the older gl-manpages. |
---|
| 74 | |
---|
| 75 | * Tue Oct 9 2012 Yanko Kaneti <yaneti@declera.com> - 1.1-2.%{codate} |
---|
| 76 | - Re-add the older gl-manpages for those not present in khronos |
---|
| 77 | |
---|
| 78 | * Tue Oct 9 2012 Yanko Kaneti <yaneti@declera.com> - 1.1-1.%{codate} |
---|
| 79 | - Try building from source |
---|
| 80 | |
---|
| 81 | * Wed Sep 5 2012 Yanko Kaneti <yaneti@declera.com> - 1.0.1-1 |
---|
| 82 | - Initial split from mesa |
---|