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.bz2
13 # Source0-md5: be9249132ff49275461cf92039083030
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 Requires: OpenGL >= 1.2
22 Provides: OpenGL-GLU = 1.3
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 SGI implementation of libGLU OpenGL library. It implements OpenGL GLU
29 %description -l pl.UTF-8
30 Implementacja SGI biblioteki libGLU ze standardu OpenGL. Implementuje
31 specyfikację OpenGL GLU 1.3.
34 Summary: Header files for SGI libGLU library
35 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLU
36 Group: Development/Libraries
37 Requires: %{name} = %{version}-%{release}
38 Requires: OpenGL-devel >= 1.2
39 Provides: OpenGL-GLU-devel = 1.3
42 Header files for SGI libGLU library.
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki SGI libGLU.
48 Summary: Static SGI libGLU library
49 Summary(pl.UTF-8): Statyczna biblioteka SGI libGLU
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}-%{release}
52 Provides: OpenGL-GLU-static = 1.3
55 Static SGI libGLU library.
57 %description static -l pl.UTF-8
58 Statyczna biblioteka SGI libGLU.
61 %setup -q -n glu-%{version}
69 --disable-silent-rules \
70 %{!?with_static_libs:--disable-static}
75 rm -rf $RPM_BUILD_ROOT
78 DESTDIR=$RPM_BUILD_ROOT
80 # there is pkg-config support; also, traditionally libGLU didn't have .la
81 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libGLU.la
84 rm -rf $RPM_BUILD_ROOT
86 %post -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
90 %defattr(644,root,root,755)
91 %attr(755,root,root) %{_libdir}/libGLU.so.*.*.*
92 %attr(755,root,root) %ghost %{_libdir}/libGLU.so.1
95 %defattr(644,root,root,755)
96 %attr(755,root,root) %{_libdir}/libGLU.so
97 %{_includedir}/GL/glu.h
98 %{_includedir}/GL/glu_mangle.h
99 %{_pkgconfigdir}/glu.pc
101 %if %{with static_libs}
103 %defattr(644,root,root,755)