]>
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 JB |
9 | Version: 8.0.0 |
10 | Release: 1 | |
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 | |
39879017 JB |
16 | URL: http://www.mesa3d.org/ |
17 | BuildRequires: OpenGL-devel >= 1.2 | |
18 | BuildRequires: autoconf >= 2.50 | |
19 | BuildRequires: automake | |
20 | BuildRequires: libtool | |
21 | %{?with_motif:BuildRequires: motif-devel} | |
22 | BuildRequires: pkgconfig | |
23 | BuildRequires: xorg-lib-libX11-devel | |
24 | BuildRequires: xorg-lib-libXext-devel | |
25 | BuildRequires: xorg-lib-libXt-devel | |
26 | Provides: OpenGL-GLw | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | SGI OpenGL Xt widgets library. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | Biblioteka SGI widgetów Xt dla OpenGL-a. | |
34 | ||
35 | %package devel | |
36 | Summary: Header files for SGI libGLw library | |
37 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLw | |
38 | License: SGI MIT-like | |
39 | Group: X11/Development/Libraries | |
40 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
41 | Requires: OpenGL-devel >= 1.2 | |
42 | Requires: xorg-lib-libX11-devel | |
43 | Requires: xorg-lib-libXt-devel | |
44 | Provides: OpenGL-GLw-devel | |
45 | ||
46 | %description devel | |
47 | Header files for SGI libGLw library. | |
48 | ||
49 | %description devel -l pl.UTF-8 | |
50 | Pliki nagłówkowe biblioteki SGI libGLw. | |
51 | ||
52 | %package static | |
53 | Summary: Static SGI libGLw library | |
54 | Summary(pl.UTF-8): Statyczna biblioteka SGI libGLw | |
55 | License: SGI MIT-like | |
56 | Group: X11/Development/Libraries | |
57 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
58 | Provides: OpenGL-GLw-static | |
59 | ||
60 | %description static | |
61 | Static SGI libGLw library. | |
62 | ||
63 | %description static -l pl.UTF-8 | |
64 | Statyczna biblioteka SGI libGLw. | |
65 | ||
66 | %prep | |
06089a35 | 67 | %setup -q -n glw-%{version} |
39879017 JB |
68 | |
69 | %build | |
70 | %{__libtoolize} | |
71 | %{__aclocal} | |
72 | %{__autoconf} | |
73 | %{__automake} | |
74 | %configure \ | |
75 | --disable-silent-rules \ | |
76 | %{!?with_static_libs:--disable-static} \ | |
77 | %{?with_motif:--enable-motif} | |
78 | ||
79 | %{__make} | |
80 | ||
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %{__make} install \ | |
85 | DESTDIR=$RPM_BUILD_ROOT | |
86 | ||
87 | # there is pkg-config support; also, traditionally libGLw didn't have .la | |
88 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libGLw.la | |
89 | ||
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %post -p /sbin/ldconfig | |
94 | %postun -p /sbin/ldconfig | |
95 | ||
96 | %files | |
97 | %defattr(644,root,root,755) | |
98 | %attr(755,root,root) %{_libdir}/libGLw.so.*.*.* | |
99 | %attr(755,root,root) %ghost %{_libdir}/libGLw.so.1 | |
100 | ||
101 | %files devel | |
102 | %defattr(644,root,root,755) | |
103 | %attr(755,root,root) %{_libdir}/libGLw.so | |
104 | %{_includedir}/GL/GLwDrawA.h | |
105 | %{_includedir}/GL/GLwDrawAP.h | |
106 | %if %{with motif} | |
107 | %{_includedir}/GL/GLwMDrawA.h | |
108 | %{_includedir}/GL/GLwMDrawAP.h | |
109 | %endif | |
110 | %{_pkgconfigdir}/glw.pc | |
111 | ||
112 | %if %{with static_libs} | |
113 | %files static | |
114 | %defattr(644,root,root,755) | |
115 | %{_libdir}/libGLw.a | |
116 | %endif |