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