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: tar >= 1:1.22
27 BuildRequires: xorg-lib-libX11-devel
28 BuildRequires: xorg-lib-libXext-devel
29 BuildRequires: xorg-lib-libXt-devel
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 SGI OpenGL Xt widgets library.
36 %description -l pl.UTF-8
37 Biblioteka SGI widgetów Xt dla OpenGL-a.
40 Summary: Header files for SGI libGLw library
41 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLw
43 Group: X11/Development/Libraries
44 Requires: %{name} = %{epoch}:%{version}-%{release}
45 Requires: OpenGL-devel >= 1.2
46 Requires: xorg-lib-libX11-devel
47 Requires: xorg-lib-libXt-devel
48 Provides: OpenGL-GLw-devel
51 Header files for SGI libGLw library.
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe biblioteki SGI libGLw.
57 Summary: Static SGI libGLw library
58 Summary(pl.UTF-8): Statyczna biblioteka SGI libGLw
60 Group: X11/Development/Libraries
61 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
62 Provides: OpenGL-GLw-static
65 Static SGI libGLw library.
67 %description static -l pl.UTF-8
68 Statyczna biblioteka SGI libGLw.
79 --disable-silent-rules \
80 %{!?with_static_libs:--disable-static} \
81 %{?with_motif:--enable-motif}
86 rm -rf $RPM_BUILD_ROOT
89 DESTDIR=$RPM_BUILD_ROOT
91 # there is pkg-config support; also, traditionally libGLw didn't have .la
92 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libGLw.la
95 rm -rf $RPM_BUILD_ROOT
97 %post -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
101 %defattr(644,root,root,755)
102 %attr(755,root,root) %{_libdir}/libGLw.so.*.*.*
103 %attr(755,root,root) %ghost %{_libdir}/libGLw.so.1
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/libGLw.so
108 %{_includedir}/GL/GLwDrawA.h
109 %{_includedir}/GL/GLwDrawAP.h
111 %{_includedir}/GL/GLwMDrawA.h
112 %{_includedir}/GL/GLwMDrawAP.h
114 %{_pkgconfigdir}/glw.pc
116 %if %{with static_libs}
118 %defattr(644,root,root,755)