3 %bcond_without motif # Motif interface
4 %bcond_without static_libs # static library
6 Summary: SGI OpenGL Xt widgets library
7 Summary(pl.UTF-8): Biblioteka SGI widgetów Xt dla OpenGL-a
15 # git clone git://anongit.freedesktop.org/git/mesa/glw mesa-glw
16 Source0: mesa-glw.tar.xz
17 # Source0-md5: ffe670e257fd0ec1acda9e978a221318
18 URL: http://www.mesa3d.org/
19 BuildRequires: OpenGL-devel >= 1.2
20 BuildRequires: autoconf >= 2.50
21 BuildRequires: automake
22 BuildRequires: libtool
23 %{?with_motif:BuildRequires: motif-devel}
24 BuildRequires: pkgconfig
25 BuildRequires: xorg-lib-libX11-devel
26 BuildRequires: xorg-lib-libXext-devel
27 BuildRequires: xorg-lib-libXt-devel
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 SGI OpenGL Xt widgets library.
34 %description -l pl.UTF-8
35 Biblioteka SGI widgetów Xt dla OpenGL-a.
38 Summary: Header files for SGI libGLw library
39 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLw
41 Group: X11/Development/Libraries
42 Requires: %{name} = %{epoch}:%{version}-%{release}
43 Requires: OpenGL-devel >= 1.2
44 Requires: xorg-lib-libX11-devel
45 Requires: xorg-lib-libXt-devel
46 Provides: OpenGL-GLw-devel
49 Header files for SGI libGLw library.
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe biblioteki SGI libGLw.
55 Summary: Static SGI libGLw library
56 Summary(pl.UTF-8): Statyczna biblioteka SGI libGLw
58 Group: X11/Development/Libraries
59 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
60 Provides: OpenGL-GLw-static
63 Static SGI libGLw library.
65 %description static -l pl.UTF-8
66 Statyczna biblioteka SGI libGLw.
77 --disable-silent-rules \
78 %{!?with_static_libs:--disable-static} \
79 %{?with_motif:--enable-motif}
84 rm -rf $RPM_BUILD_ROOT
87 DESTDIR=$RPM_BUILD_ROOT
89 # there is pkg-config support; also, traditionally libGLw didn't have .la
90 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libGLw.la
93 rm -rf $RPM_BUILD_ROOT
95 %post -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
99 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_libdir}/libGLw.so.*.*.*
101 %attr(755,root,root) %ghost %{_libdir}/libGLw.so.1
104 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_libdir}/libGLw.so
106 %{_includedir}/GL/GLwDrawA.h
107 %{_includedir}/GL/GLwDrawAP.h
109 %{_includedir}/GL/GLwMDrawA.h
110 %{_includedir}/GL/GLwMDrawAP.h
112 %{_pkgconfigdir}/glw.pc
114 %if %{with static_libs}
116 %defattr(644,root,root,755)