]>
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 | |
9 | Version: 1.0.0 | |
10 | %define snap 20120116 | |
11 | Release: 0.%{snap}.1 | |
12 | Epoch: 1 | |
13 | License: SGI MIT-like | |
14 | Group: X11/Libraries | |
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 | |
f0ed3329 JB |
25 | BuildRequires: tar >= 1:1.22 |
26 | BuildRequires: xz | |
39879017 JB |
27 | BuildRequires: xorg-lib-libX11-devel |
28 | BuildRequires: xorg-lib-libXext-devel | |
29 | BuildRequires: xorg-lib-libXt-devel | |
30 | Provides: OpenGL-GLw | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
34 | SGI OpenGL Xt widgets library. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | Biblioteka SGI widgetów Xt dla OpenGL-a. | |
38 | ||
39 | %package devel | |
40 | Summary: Header files for SGI libGLw library | |
41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLw | |
42 | License: SGI MIT-like | |
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 | |
49 | ||
50 | %description devel | |
51 | Header files for SGI libGLw library. | |
52 | ||
53 | %description devel -l pl.UTF-8 | |
54 | Pliki nagłówkowe biblioteki SGI libGLw. | |
55 | ||
56 | %package static | |
57 | Summary: Static SGI libGLw library | |
58 | Summary(pl.UTF-8): Statyczna biblioteka SGI libGLw | |
59 | License: SGI MIT-like | |
60 | Group: X11/Development/Libraries | |
61 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
62 | Provides: OpenGL-GLw-static | |
63 | ||
64 | %description static | |
65 | Static SGI libGLw library. | |
66 | ||
67 | %description static -l pl.UTF-8 | |
68 | Statyczna biblioteka SGI libGLw. | |
69 | ||
70 | %prep | |
71 | %setup -q -n mesa-glw | |
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 |