]>
Commit | Line | Data |
---|---|---|
39879017 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without motif # Motif interface | |
4 | %bcond_without static_libs # static library | |
5 | # | |
6 | Summary: SGI OpenGL Xt widgets library | |
7 | Summary(pl.UTF-8): Biblioteka SGI widgetów Xt dla OpenGL-a | |
8 | Name: Mesa-libGLw | |
06089a35 | 9 | Version: 8.0.0 |
6190b230 | 10 | Release: 3 |
39879017 JB |
11 | Epoch: 1 |
12 | License: SGI MIT-like | |
13 | Group: X11/Libraries | |
06089a35 JB |
14 | Source0: ftp://ftp.freedesktop.org/pub/mesa/glw/glw-%{version}.tar.bz2 |
15 | # Source0-md5: b29b8b5481b8cbc839cb02c324bdabd9 | |
df2d0490 JB |
16 | Patch0: glw-git.patch |
17 | Patch1: glw-include.patch | |
39879017 JB |
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 | |
28 | Provides: OpenGL-GLw | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | SGI OpenGL Xt widgets library. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | Biblioteka SGI widgetów Xt dla OpenGL-a. | |
36 | ||
37 | %package devel | |
38 | Summary: Header files for SGI libGLw library | |
39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLw | |
40 | License: SGI MIT-like | |
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 | |
47 | ||
48 | %description devel | |
49 | Header files for SGI libGLw library. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pliki nagłówkowe biblioteki SGI libGLw. | |
53 | ||
54 | %package static | |
55 | Summary: Static SGI libGLw library | |
56 | Summary(pl.UTF-8): Statyczna biblioteka SGI libGLw | |
57 | License: SGI MIT-like | |
58 | Group: X11/Development/Libraries | |
59 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
60 | Provides: OpenGL-GLw-static | |
61 | ||
62 | %description static | |
63 | Static SGI libGLw library. | |
64 | ||
65 | %description static -l pl.UTF-8 | |
66 | Statyczna biblioteka SGI libGLw. | |
67 | ||
68 | %prep | |
06089a35 | 69 | %setup -q -n glw-%{version} |
df2d0490 JB |
70 | %patch0 -p1 |
71 | %patch1 -p1 | |
39879017 JB |
72 | |
73 | %build | |
74 | %{__libtoolize} | |
75 | %{__aclocal} | |
76 | %{__autoconf} | |
77 | %{__automake} | |
78 | %configure \ | |
79 | --disable-silent-rules \ | |
80 | %{!?with_static_libs:--disable-static} \ | |
81 | %{?with_motif:--enable-motif} | |
82 | ||
83 | %{__make} | |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %{__make} install \ | |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
91 | # there is pkg-config support; also, traditionally libGLw didn't have .la | |
92 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libGLw.la | |
93 | ||
94 | %clean | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %post -p /sbin/ldconfig | |
98 | %postun -p /sbin/ldconfig | |
99 | ||
100 | %files | |
101 | %defattr(644,root,root,755) | |
102 | %attr(755,root,root) %{_libdir}/libGLw.so.*.*.* | |
103 | %attr(755,root,root) %ghost %{_libdir}/libGLw.so.1 | |
104 | ||
105 | %files devel | |
106 | %defattr(644,root,root,755) | |
107 | %attr(755,root,root) %{_libdir}/libGLw.so | |
108 | %{_includedir}/GL/GLwDrawA.h | |
109 | %{_includedir}/GL/GLwDrawAP.h | |
110 | %if %{with motif} | |
111 | %{_includedir}/GL/GLwMDrawA.h | |
112 | %{_includedir}/GL/GLwMDrawAP.h | |
113 | %endif | |
114 | %{_pkgconfigdir}/glw.pc | |
115 | ||
116 | %if %{with static_libs} | |
117 | %files static | |
118 | %defattr(644,root,root,755) | |
119 | %{_libdir}/libGLw.a | |
120 | %endif |