]>
Commit | Line | Data |
---|---|---|
0dfdf502 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without egl # EGL utilities | |
4 | %bcond_without gles1 # GLESv1 utilities | |
5 | %bcond_without gles2 # GLESv2 utilities | |
b645648f | 6 | %bcond_with openvg # OpenVG utilities |
0dfdf502 JB |
7 | %bcond_without wayland # Wayland support |
8 | ||
309f5fea JR |
9 | Summary: Mesa Demos source code |
10 | Summary(pl.UTF-8): Kod źródłowy programów demonstrujących dla bibliotek Mesa | |
11 | Name: mesa-demos | |
88d18436 JB |
12 | Version: 8.3.0 |
13 | Release: 1 | |
309f5fea JR |
14 | License: various (MIT, SGI, GPL - see copyright notes in sources) |
15 | Group: Development/Libraries | |
16 | Source0: ftp://ftp.freedesktop.org/pub/mesa/demos/%{version}/%{name}-%{version}.tar.bz2 | |
88d18436 | 17 | # Source0-md5: 628e75c23c17394f11a316c36f8e4164 |
309f5fea | 18 | URL: http://www.mesa3d.org/ |
0dfdf502 | 19 | %{?with_egl:BuildRequires: EGL-devel} |
223e6363 | 20 | BuildRequires: Mesa-libgbm-devel |
0dfdf502 | 21 | %{?with_wayland:BuildRequires: Mesa-libwayland-egl-devel} |
defae254 JB |
22 | BuildRequires: OpenGL-GLU-devel |
23 | BuildRequires: OpenGL-devel | |
5fc1d099 | 24 | BuildRequires: OpenGL-glut-devel |
0dfdf502 JB |
25 | %{?with_gles1:BuildRequires: OpenGLESv1-devel} |
26 | %{?with_gles2:BuildRequires: OpenGLESv2-devel} | |
27 | %{?with_openvg:BuildRequires: OpenVG-devel} | |
223e6363 JB |
28 | BuildRequires: freetype-devel >= 2 |
29 | BuildRequires: glew-devel >= 1.5.4 | |
0dfdf502 | 30 | %{?with_egl:BuildRequires: libdrm-devel} |
a9ebec15 | 31 | BuildRequires: pkgconfig |
32 | BuildRequires: rpm-pythonprov | |
0dfdf502 | 33 | %{?with_wayland:BuildRequires: wayland-devel} |
309f5fea JR |
34 | BuildRequires: xorg-lib-libX11-devel |
35 | BuildRequires: xorg-lib-libXext-devel | |
36 | Requires: OpenGL-devel | |
5fc1d099 | 37 | Requires: OpenGL-glut-devel |
309f5fea JR |
38 | Obsoletes: Mesa-demos |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
40 | ||
41 | %description | |
42 | Demonstration programs for the Mesa libraries in source code form. | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | Kod źródłowy programów demonstracyjnych dla bibliotek Mesa. | |
46 | ||
47 | %package -n mesa-utils | |
48 | Summary: OpenGL utilities from Mesa3D | |
49 | Summary(pl.UTF-8): Programy narzędziowe OpenGL z projektu Mesa3D | |
50 | License: MIT | |
51 | Group: X11/Applications/Graphics | |
52 | Obsoletes: Mesa-utils | |
309f5fea JR |
53 | |
54 | %description -n mesa-utils | |
55 | OpenGL utilities from Mesa3D: glxgears and glxinfo. | |
56 | ||
57 | %description -n mesa-utils -l pl.UTF-8 | |
58 | Programy narzędziowe OpenGL z projektu Mesa3D: glxgears i glxinfo. | |
59 | ||
0dfdf502 JB |
60 | %package -n mesa-utils-egl |
61 | Summary: EGL utilities from Mesa3D | |
62 | Summary(pl.UTF-8): Programy narzędziowe EGL z projektu Mesa3D | |
63 | License: MIT | |
64 | Group: Applications/Graphics | |
65 | ||
66 | %description -n mesa-utils-egl | |
67 | EGL utilities from Mesa3D: eglgears and eglinfo. | |
68 | ||
69 | %description -n mesa-utils-egl -l pl.UTF-8 | |
70 | Programy narzędziowe EGL z projektu Mesa3D: eglgears i eglinfo. | |
71 | ||
72 | %package -n mesa-utils-gles1 | |
73 | Summary: OpenGLESv1 utilities from Mesa3D | |
74 | Summary(pl.UTF-8): Programy narzędziowe OpenGLESv1 z projektu Mesa3D | |
75 | License: MIT | |
76 | Group: Applications/Graphics | |
77 | ||
78 | %description -n mesa-utils-gles1 | |
79 | OpenGLESv1 utilities from Mesa3D: es1gears and es1_info. | |
80 | ||
81 | %description -n mesa-utils-gles1 -l pl.UTF-8 | |
82 | Programy narzędziowe OpenGLESv1 z projektu Mesa3D: es1gears i | |
83 | es1_info. | |
84 | ||
85 | %package -n mesa-utils-gles2 | |
86 | Summary: OpenGLESv2 utilities from Mesa3D | |
87 | Summary(pl.UTF-8): Programy narzędziowe OpenGLESv2 z projektu Mesa3D | |
88 | License: MIT | |
89 | Group: Applications/Graphics | |
90 | ||
91 | %description -n mesa-utils-gles2 | |
92 | OpenGLESv2 utilities from Mesa3D: es2gears and es2_info. | |
93 | ||
94 | %description -n mesa-utils-gles2 -l pl.UTF-8 | |
95 | Programy narzędziowe OpenGLESv2 z projektu Mesa3D: es2gears i | |
96 | es2_info. | |
97 | ||
98 | %package -n mesa-utils-openvg | |
99 | Summary: OpenVG utilities from Mesa3D | |
100 | Summary(pl.UTF-8): Programy narzędziowe OpenVG z projektu Mesa3D | |
101 | License: MIT | |
102 | Group: Applications/Graphics | |
103 | ||
104 | %description -n mesa-utils-openvg | |
105 | OpenVG utilities from Mesa3D. | |
106 | ||
107 | %description -n mesa-utils-openvg -l pl.UTF-8 | |
108 | Programy narzędziowe OpenVG z projektu Mesa3D. | |
109 | ||
309f5fea JR |
110 | %prep |
111 | %setup -q | |
112 | ||
113 | %build | |
defae254 | 114 | %configure \ |
0dfdf502 JB |
115 | %{!?with_egl:--disable-egl} \ |
116 | %{!?with_gles1:--disable-gles1} \ | |
117 | %{!?with_gles2:--disable-gles2} \ | |
118 | --disable-silent-rules \ | |
119 | %{!?with_openvg:--disable-vg} \ | |
120 | %{?with_egl:--enable-wayland} | |
309f5fea JR |
121 | |
122 | # we only want glxinfo and glxgears to be built here | |
123 | %{__make} -C src/xdemos | |
124 | ||
0dfdf502 JB |
125 | %if %{with egl} |
126 | %{__make} -C src/egl | |
127 | %endif | |
128 | ||
309f5fea JR |
129 | %install |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_examplesdir}/%{name}-%{version}} | |
132 | ||
133 | install -p src/xdemos/{glxinfo,glxgears} $RPM_BUILD_ROOT%{_bindir} | |
0dfdf502 | 134 | %if %{with egl} |
88d18436 | 135 | install -p src/egl/opengl/{eglinfo,eglgears_x11,peglgears} $RPM_BUILD_ROOT%{_bindir} |
0dfdf502 JB |
136 | %if %{with gles1} |
137 | install -p src/egl/opengles1/es1_info $RPM_BUILD_ROOT%{_bindir} | |
0dfdf502 JB |
138 | install -p src/egl/opengles1/gears_x11 $RPM_BUILD_ROOT%{_bindir}/es1gears_x11 |
139 | %endif | |
140 | %if %{with gles2} | |
88d18436 | 141 | install -p src/egl/opengles2/{es2_info,es2gears_x11} $RPM_BUILD_ROOT%{_bindir} |
0dfdf502 JB |
142 | %if %{with wayland} |
143 | install -p src/egl/opengles2/es2gears_wayland $RPM_BUILD_ROOT%{_bindir} | |
144 | %endif | |
145 | %endif | |
146 | %if %{with openvg} | |
88d18436 | 147 | install -p src/egl/openvg/{lion,sp}_x11 $RPM_BUILD_ROOT%{_bindir} |
0dfdf502 JB |
148 | %endif |
149 | %endif | |
309f5fea JR |
150 | |
151 | cp -a * $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
5fc1d099 | 152 | %{__make} -C $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} distclean |
309f5fea JR |
153 | |
154 | %clean | |
155 | rm -rf $RPM_BUILD_ROOT | |
156 | ||
157 | %files | |
158 | %defattr(644,root,root,755) | |
159 | %{_examplesdir}/%{name}-%{version} | |
160 | ||
161 | %files -n mesa-utils | |
162 | %defattr(644,root,root,755) | |
163 | %attr(755,root,root) %{_bindir}/glxgears | |
164 | %attr(755,root,root) %{_bindir}/glxinfo | |
0dfdf502 JB |
165 | |
166 | %if %{with egl} | |
167 | %files -n mesa-utils-egl | |
168 | %defattr(644,root,root,755) | |
0dfdf502 JB |
169 | %attr(755,root,root) %{_bindir}/eglgears_x11 |
170 | %attr(755,root,root) %{_bindir}/eglinfo | |
171 | %attr(755,root,root) %{_bindir}/peglgears | |
172 | %endif | |
173 | ||
174 | %if %{with egl} && %{with gles1} | |
175 | %files -n mesa-utils-gles1 | |
176 | %defattr(644,root,root,755) | |
177 | %attr(755,root,root) %{_bindir}/es1_info | |
0dfdf502 JB |
178 | %attr(755,root,root) %{_bindir}/es1gears_x11 |
179 | %endif | |
180 | ||
181 | %if %{with egl} && %{with gles2} | |
182 | %files -n mesa-utils-gles2 | |
183 | %defattr(644,root,root,755) | |
184 | %attr(755,root,root) %{_bindir}/es2_info | |
0dfdf502 JB |
185 | %attr(755,root,root) %{_bindir}/es2gears_x11 |
186 | %if %{with wayland} | |
187 | %attr(755,root,root) %{_bindir}/es2gears_wayland | |
188 | %endif | |
189 | %endif | |
190 | ||
191 | %if %{with egl} && %{with openvg} | |
192 | %files -n mesa-utils-openvg | |
193 | %defattr(644,root,root,755) | |
0dfdf502 | 194 | %attr(755,root,root) %{_bindir}/lion_x11 |
0dfdf502 JB |
195 | %attr(755,root,root) %{_bindir}/sp_x11 |
196 | %endif |