3 %bcond_with glvnd # use GLVND as OpenGL provider
4 %bcond_with osmesa # use OSMesa as OpenGL provider
5 %bcond_without static_libs # static library
7 %if %{without glvnd} && %{without osmesa}
8 %define with_generic_opengl 1
10 Summary: SGI implementation of libGLU OpenGL library
11 Summary(pl.UTF-8): Implementacja SGI biblioteki libGLU ze standardu OpenGL
15 License: SGI Free Software License B v2.0 (MIT-like)
17 Source0: ftp://ftp.freedesktop.org/pub/mesa/glu/glu-%{version}.tar.xz
18 # Source0-md5: 2b0f13fa5b949bfb3a995927c6e35125
19 URL: http://www.mesa3d.org/
20 %{?with_osmesa:BuildRequires: Mesa-libOSMesa-devel}
21 %{?with_generic_opengl:BuildRequires: OpenGL-devel >= 1.2}
22 BuildRequires: autoconf >= 2.60
23 BuildRequires: automake
24 %{?with_glvnd:BuildRequires: libglvnd-libGL-devel}
25 BuildRequires: libstdc++-devel
26 BuildRequires: libtool >= 2:2.2
27 BuildRequires: pkgconfig
28 BuildRequires: tar >= 1:1.22
30 Requires: OpenGL >= 1.2
31 Provides: OpenGL-GLU = 1.3
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 SGI implementation of libGLU OpenGL library. It implements OpenGL GLU
38 %description -l pl.UTF-8
39 Implementacja SGI biblioteki libGLU ze standardu OpenGL. Implementuje
40 specyfikację OpenGL GLU 1.3.
43 Summary: Header files for SGI libGLU library
44 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLU
45 Group: Development/Libraries
46 Requires: %{name} = %{version}-%{release}
47 %{?with_osmesa:Requires: Mesa-libOSMesa-devel}
48 %{?with_generic_opengl:Requires: OpenGL-devel >= 1.2}
49 %{?with_glvnd:Requires: libglvnd-libGL-devel}
50 Provides: OpenGL-GLU-devel = 1.3
53 Header files for SGI libGLU library.
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe biblioteki SGI libGLU.
59 Summary: Static SGI libGLU library
60 Summary(pl.UTF-8): Statyczna biblioteka SGI libGLU
61 Group: Development/Libraries
62 Requires: %{name}-devel = %{version}-%{release}
63 Provides: OpenGL-GLU-static = 1.3
66 Static SGI libGLU library.
68 %description static -l pl.UTF-8
69 Statyczna biblioteka SGI libGLU.
72 %setup -q -n glu-%{version}
80 %{?with_glvnd:--enable-libglvnd} \
81 %{?with_osmesa:--enable-osmesa} \
82 --disable-silent-rules \
83 %{!?with_static_libs:--disable-static}
88 rm -rf $RPM_BUILD_ROOT
91 DESTDIR=$RPM_BUILD_ROOT
93 # there is pkg-config support; also, traditionally libGLU didn't have .la
94 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libGLU.la
97 rm -rf $RPM_BUILD_ROOT
99 %post -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_libdir}/libGLU.so.*.*.*
105 %attr(755,root,root) %ghost %{_libdir}/libGLU.so.1
108 %defattr(644,root,root,755)
109 %attr(755,root,root) %{_libdir}/libGLU.so
110 %{_includedir}/GL/glu.h
111 %{_pkgconfigdir}/glu.pc
113 %if %{with static_libs}
115 %defattr(644,root,root,755)