source: projects/specs/trunk/gl-manpages/gl-manpages-vl.spec @ 7142

Revision 7142, 2.4 KB checked in by daisuke, 11 years ago (diff)

gl-manpages: new package, splitted from mesa

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