3 %bcond_without static_libs # static library
5 Summary: SGI implementation of libGLU OpenGL library
6 Summary(pl.UTF-8): Implementacja SGI biblioteki libGLU ze standardu OpenGL
10 License: SGI Free Software License B v2.0 (MIT-like)
12 Source0: ftp://ftp.freedesktop.org/pub/mesa/glu/glu-%{version}.tar.xz
13 # Source0-md5: 151aef599b8259efe9acd599c96ea2a3
14 URL: http://www.mesa3d.org/
15 BuildRequires: OpenGL-devel >= 1.2
16 BuildRequires: autoconf >= 2.60
17 BuildRequires: automake
18 BuildRequires: libstdc++-devel
19 BuildRequires: libtool >= 2:2.2
20 BuildRequires: pkgconfig
21 BuildRequires: tar >= 1:1.22
23 Requires: OpenGL >= 1.2
24 Provides: OpenGL-GLU = 1.3
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 SGI implementation of libGLU OpenGL library. It implements OpenGL GLU
31 %description -l pl.UTF-8
32 Implementacja SGI biblioteki libGLU ze standardu OpenGL. Implementuje
33 specyfikację OpenGL GLU 1.3.
36 Summary: Header files for SGI libGLU library
37 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLU
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
40 Requires: OpenGL-devel >= 1.2
41 Provides: OpenGL-GLU-devel = 1.3
44 Header files for SGI libGLU library.
46 %description devel -l pl.UTF-8
47 Pliki nagłówkowe biblioteki SGI libGLU.
50 Summary: Static SGI libGLU library
51 Summary(pl.UTF-8): Statyczna biblioteka SGI libGLU
52 Group: Development/Libraries
53 Requires: %{name}-devel = %{version}-%{release}
54 Provides: OpenGL-GLU-static = 1.3
57 Static SGI libGLU library.
59 %description static -l pl.UTF-8
60 Statyczna biblioteka SGI libGLU.
63 %setup -q -n glu-%{version}
71 --disable-silent-rules \
72 %{!?with_static_libs:--disable-static}
77 rm -rf $RPM_BUILD_ROOT
80 DESTDIR=$RPM_BUILD_ROOT
82 # there is pkg-config support; also, traditionally libGLU didn't have .la
83 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libGLU.la
86 rm -rf $RPM_BUILD_ROOT
88 %post -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
92 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_libdir}/libGLU.so.*.*.*
94 %attr(755,root,root) %ghost %{_libdir}/libGLU.so.1
97 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_libdir}/libGLU.so
99 %{_includedir}/GL/glu.h
100 %{_includedir}/GL/glu_mangle.h
101 %{_pkgconfigdir}/glu.pc
103 %if %{with static_libs}
105 %defattr(644,root,root,755)