Sun, 02 Sep 2012 18:18:43 +0200
Introduce new version of tcpdump, reorder taglib and cryptbreaker to
the end because they fail to build on Linux, and correct flawed URLs
probably copied from the doxygen build entry.
1 ##
2 ## mesa.spec -- OpenPKG RPM Package Specification
3 ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
4 ##
5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all
8 ## copies.
9 ##
10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE.
22 ##
24 # package information
25 Name: mesa
26 Summary: OpenGL Toolkit
27 URL: http://www.mesa3d.org/
28 Vendor: Brian Paul
29 Packager: OpenPKG Foundation e.V.
30 Distribution: OpenPKG Community
31 Class: EVAL
32 Group: XWindow
33 License: LGPL
34 Version: 7.4.4
35 Release: 20101008
37 # list of sources
38 Source0: http://osdn.dl.sourceforge.net/sourceforge/mesa3d/MesaLib-%{version}.tar.bz2
39 Source1: http://osdn.dl.sourceforge.net/sourceforge/mesa3d/MesaGLUT-%{version}.tar.bz2
40 Patch0: mesa.patch
42 # build information
43 Prefix: %{l_prefix}
44 BuildRoot: %{l_buildroot}
45 BuildPreReq: OpenPKG, openpkg >= 20040130, X11, gcc, make, autoconf
46 PreReq: OpenPKG, openpkg >= 20040130, X11
47 AutoReq: no
48 AutoReqProv: no
50 %description
51 Mesa is a full-featured 3D graphics rendering library providing the
52 official OpenGL 2.0 and OpenGL 2.1 APIs. A variety of device drivers
53 allow Mesa to be used in many different environments ranging from
54 software emulation to complete hardware acceleration for modern
55 GPUs.
57 %track
58 prog mesa:MesaLib = {
59 version = %{version}
60 url = http://sourceforge.net/projects/mesa3d/files/
61 regex = MesaLib-(7\.\d+(?:\.\d+)?)\.tar\.bz2
62 }
63 prog mesa:MesaGLUT = {
64 version = %{version}
65 url = http://sourceforge.net/projects/mesa3d/files/
66 regex = MesaGLUT-(7\.\d+(?:\.\d+)?)\.tar\.bz2
67 }
69 %prep
70 %setup -q -n Mesa-%{version}
71 %setup -q -n Mesa-%{version} -T -D -b 1
72 %patch -p0
73 %{l_shtool} subst \
74 -e "s;@l_x11bindir@;`%{l_rc} --query x11_bindir`;g" \
75 configs/default
76 %{l_shtool} subst \
77 -e 's;\(PIC_FLAGS =\).*;\1 -fPIC;' \
78 configs/linux-*
80 %build
81 case "%{l_platform -t}" in
82 *-freebsd* ) plat="freebsd" ;;
83 *-netbsd* ) plat="netbsd" ;;
84 i?86*-linux* ) plat="linux-x86-static" ;;
85 *-linux* ) plat="linux-static" ;;
86 i?86*-sunos* ) plat="solaris-x86-gcc" ;;
87 *-sunos* ) plat="sunos5-gcc" ;;
88 * ) echo "platform %{l_platform -t} not supported" 2>&1; exit 1; ;;
89 esac
90 CC="%{l_cc}" \
91 CXX="%{l_cxx}" \
92 CFLAGS="%{l_cflags -O}" \
93 CXXFLAGS="%{l_cxxflags -O}" \
94 CPPFLAGS="%{l_cppflags}" \
95 LDFLAGS="%{l_ldflags}" \
96 X11LIB_DIR="`%{l_rc} --query x11_libdir`" \
97 %{l_make} %{l_mflags} \
98 SHELL="%{l_bash}" \
99 $plat
101 %install
102 rm -rf $RPM_BUILD_ROOT
103 %{l_shtool} mkdir -f -p -m 755 \
104 $RPM_BUILD_ROOT%{l_prefix}/lib \
105 $RPM_BUILD_ROOT%{l_prefix}/include/GL
106 %{l_shtool} install -c -m 644 \
107 lib/* $RPM_BUILD_ROOT%{l_prefix}/lib/
108 %{l_shtool} install -c -m 644 \
109 include/GL/*.h $RPM_BUILD_ROOT%{l_prefix}/include/GL/
110 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
112 %files -f files
114 %clean
115 rm -rf $RPM_BUILD_ROOT