]>
Commit | Line | Data |
---|---|---|
8e512474 JR |
1 | # |
2 | # Conditional build: | |
825ac997 | 3 | %bcond_with gnome2 # build with support for GNOME2 wm-properties |
3f8bdb2a | 4 | |
1578159e | 5 | Summary: Small and fast window manger for the X Window |
0c5ef806 | 6 | Summary(pl.UTF-8): Mały i szybki zarządca okien dla X Window |
1578159e | 7 | Name: openbox |
c8ecbe64 | 8 | Version: 3.6.1 |
825ac997 | 9 | Release: 5 |
af9cb758 | 10 | Epoch: 1 |
df7df029 | 11 | License: GPL v2+ |
1578159e | 12 | Group: X11/Window Managers |
825ac997 | 13 | Source0: http://openbox.org/dist/openbox/%{name}-%{version}.tar.xz |
c8ecbe64 | 14 | # Source0-md5: 46bf5f1edda0eda0d9e824b585988be9 |
1578159e | 15 | URL: http://openbox.org/ |
df7df029 | 16 | BuildRequires: autoconf >= 2.54 |
825ac997 | 17 | BuildRequires: automake >= 1:1.11 |
d32622c7 | 18 | BuildRequires: gettext-tools >= 0.15 |
df7df029 | 19 | BuildRequires: glib2-devel >= 1:2.14.0 |
825ac997 JB |
20 | BuildRequires: imlib2-devel |
21 | BuildRequires: librsvg-devel >= 2 | |
1578159e | 22 | BuildRequires: libtool |
f71942d2 | 23 | BuildRequires: libxml2-devel >= 1:2.6.31 |
825ac997 | 24 | BuildRequires: pango-devel >= 1:1.18.3 |
1578159e | 25 | BuildRequires: pkgconfig |
108682cf | 26 | BuildRequires: rpm-pythonprov |
26090768 | 27 | BuildRequires: rpmbuild(macros) >= 1.197 |
825ac997 JB |
28 | BuildRequires: sed >= 4.0 |
29 | BuildRequires: startup-notification-devel >= 0.8 | |
30 | BuildRequires: xorg-lib-libICE-devel | |
f9c42f38 | 31 | BuildRequires: xorg-lib-libSM-devel |
825ac997 JB |
32 | BuildRequires: xorg-lib-libX11-devel |
33 | BuildRequires: xorg-lib-libXau-devel | |
df7df029 | 34 | BuildRequires: xorg-lib-libXcursor-devel |
825ac997 | 35 | BuildRequires: xorg-lib-libXext-devel |
f9c42f38 | 36 | BuildRequires: xorg-lib-libXinerama-devel |
37 | BuildRequires: xorg-lib-libXrandr-devel | |
38 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
39 | Requires: %{name}-theme-base = %{epoch}:%{version}-%{release} | |
3f8bdb2a | 40 | Requires: dbus-x11 |
f71942d2 | 41 | Suggests: obconf |
2330d832 | 42 | Provides: gnome-wm |
825ac997 JB |
43 | Obsoletes: openbox-themes-Allegro < 1:3.3.1 |
44 | Obsoletes: openbox-themes-Artwiz < 1:3.3.1 | |
45 | Obsoletes: openbox-themes-Blah41 < 1:3.3.1 | |
46 | Obsoletes: openbox-themes-Om4Ob < 1:3.3.1 | |
a19e626f | 47 | Conflicts: filesystem < 3.0-20 |
1578159e | 48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
7f32fe2f | 49 | |
a19e626f | 50 | %define _wmpropsdir /usr/share/gnome/wm-properties |
7f32fe2f | 51 | |
52 | %description | |
df7df029 | 53 | Openbox is a completely new window manager, and is not based upon any |
7386a7de | 54 | previous window manager code-base. Its primary goals are standards |
55 | support/compliance, and intelligent window management. | |
03b89679 | 56 | |
9e94a7f3 | 57 | %description -l pl.UTF-8 |
df7df029 | 58 | Openbox jest całkowicie nowym zarządcą okien i nie bazuje już na |
1f773a19 MB |
59 | kodzie wcześniejszych wersji. Jego głównymi celami są wsparcie i |
60 | zgodność ze standardami oraz inteligentne zarządzanie oknami. | |
7f32fe2f | 61 | |
f7d53847 | 62 | %package libs |
df7df029 MB |
63 | Summary: Openbox libraries |
64 | Summary(pl.UTF-8): Biblioteki Openboksa | |
f7d53847 | 65 | Group: Libraries |
825ac997 JB |
66 | Requires: glib2 >= 1:2.14.0 |
67 | Requires: libxml2 >= 1:2.6.31 | |
68 | Requires: pango >= 1:1.18.3 | |
f7d53847 JB |
69 | |
70 | %description libs | |
df7df029 | 71 | Openbox libraries. |
f7d53847 | 72 | |
9e94a7f3 | 73 | %description libs -l pl.UTF-8 |
df7df029 | 74 | Biblioteki Openboksa. |
f7d53847 | 75 | |
4edee9bf | 76 | %package devel |
df7df029 MB |
77 | Summary: Header files for Openbox |
78 | Summary(pl.UTF-8): Pliki nagłówkowe Openboksa | |
7c9f1708 | 79 | Group: Development/Libraries |
f9c42f38 | 80 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
1f773a19 | 81 | Requires: glib2-devel >= 1:2.14.0 |
825ac997 JB |
82 | Requires: imlib2-devel |
83 | Requires: librsvg-devel >= 2 | |
1f773a19 | 84 | Requires: libxml2-devel >= 1:2.6.31 |
825ac997 JB |
85 | Requires: pango-devel >= 1:1.18.3 |
86 | Requires: xorg-lib-libICE-devel | |
1f773a19 | 87 | Requires: xorg-lib-libSM-devel |
825ac997 | 88 | Requires: xorg-lib-libX11-devel |
7c9f1708 | 89 | |
4edee9bf | 90 | %description devel |
df7df029 | 91 | Development header files for writing applications based on Openbox. |
7c9f1708 | 92 | |
9e94a7f3 | 93 | %description devel -l pl.UTF-8 |
df7df029 | 94 | Pliki nagłówkowe do tworzenia oprogramowania opartego o Openboksa. |
7c9f1708 | 95 | |
d6e82541 | 96 | %package static |
df7df029 MB |
97 | Summary: Static Openbox libraries |
98 | Summary(pl.UTF-8): Statyczne biblioteki Openboksa | |
d6e82541 | 99 | Group: Development/Libraries |
af9cb758 | 100 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
d6e82541 | 101 | |
102 | %description static | |
df7df029 | 103 | Static Openbox libraries. |
d6e82541 | 104 | |
9e94a7f3 | 105 | %description static -l pl.UTF-8 |
df7df029 | 106 | Statyczne biblioteki Openboksa. |
d6e82541 | 107 | |
df7df029 MB |
108 | %package themes-Artwiz-boxed |
109 | Summary: Artwiz-boxed theme for Openbox | |
110 | Summary(pl.UTF-8): Motyw Artwiz-boxed dla Openboksa | |
80b610a3 | 111 | Group: Themes |
af9cb758 | 112 | Requires: %{name} = %{epoch}:%{version}-%{release} |
df7df029 | 113 | Provides: openbox-theme-base = %{epoch}:%{version}-%{release} |
d6e82541 | 114 | |
df7df029 MB |
115 | %description themes-Artwiz-boxed |
116 | Artwiz-boxed theme for Openbox. | |
80b610a3 | 117 | |
df7df029 MB |
118 | %description themes-Artwiz-boxed -l pl.UTF-8 |
119 | Motyw Artwiz-boxed dla Openboksa. | |
d6e82541 | 120 | |
df7df029 MB |
121 | %package themes-bear |
122 | Summary: Bear theme for Openbox | |
123 | Summary(pl.UTF-8): Motyw Bear dla Openboksa | |
80b610a3 | 124 | Group: Themes |
af9cb758 | 125 | Requires: %{name} = %{epoch}:%{version}-%{release} |
df7df029 | 126 | Provides: openbox-theme-base = %{epoch}:%{version}-%{release} |
825ac997 | 127 | Obsoletes: openbox-themes-TheBear < 1:3.3.1 |
d6e82541 | 128 | |
df7df029 MB |
129 | %description themes-bear |
130 | Bear theme for Openbox. | |
80b610a3 | 131 | |
df7df029 MB |
132 | %description themes-bear -l pl.UTF-8 |
133 | Motyw Bear dla Openboksa. | |
d6e82541 | 134 | |
df7df029 MB |
135 | %package themes-Clearlooks-Olive |
136 | Summary: Clearlooks-Olive theme for Openbox | |
137 | Summary(pl.UTF-8): Motyw Clearlooks-Olive dla Openboksa | |
80b610a3 | 138 | Group: Themes |
af9cb758 | 139 | Requires: %{name} = %{epoch}:%{version}-%{release} |
df7df029 | 140 | Provides: openbox-theme-base = %{epoch}:%{version}-%{release} |
d6e82541 | 141 | |
df7df029 MB |
142 | %description themes-Clearlooks-Olive |
143 | Clearlooks-Olive theme for Openbox. | |
80b610a3 | 144 | |
df7df029 MB |
145 | %description themes-Clearlooks-Olive -l pl.UTF-8 |
146 | Motyw Clearlooks-Olive dla Openboksa. | |
d6e82541 | 147 | |
df7df029 MB |
148 | %package themes-Clearlooks |
149 | Summary: Clearlooks theme for Openbox | |
150 | Summary(pl.UTF-8): Motyw Clearlooks dla Openboksa | |
80b610a3 | 151 | Group: Themes |
af9cb758 | 152 | Requires: %{name} = %{epoch}:%{version}-%{release} |
df7df029 | 153 | Provides: openbox-theme-base = %{epoch}:%{version}-%{release} |
d6e82541 | 154 | |
df7df029 MB |
155 | %description themes-Clearlooks |
156 | Clearlooks theme for Openbox. | |
80b610a3 | 157 | |
df7df029 MB |
158 | %description themes-Clearlooks -l pl.UTF-8 |
159 | Motyw Clearlooks dla Openboksa. | |
d6e82541 | 160 | |
df7df029 MB |
161 | %package themes-Mikachu |
162 | Summary: Mikachu theme for Openbox | |
163 | Summary(pl.UTF-8): Motyw Mikachu dla Openboksa | |
80b610a3 | 164 | Group: Themes |
af9cb758 | 165 | Requires: %{name} = %{epoch}:%{version}-%{release} |
166 | Provides: openbox-theme-base = %{epoch}:%{version}-%{release} | |
d6e82541 | 167 | |
df7df029 MB |
168 | %description themes-Mikachu |
169 | Mikachu theme for Openbox. | |
80b610a3 | 170 | |
df7df029 MB |
171 | %description themes-Mikachu -l pl.UTF-8 |
172 | Motyw Mikachu dla Openboksa. | |
173 | ||
174 | %package themes-Natura | |
175 | Summary: Natura theme for Openbox | |
176 | Summary(pl.UTF-8): Motyw Natura dla Openboksa | |
177 | Group: Themes | |
178 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
179 | Provides: openbox-theme-base = %{epoch}:%{version}-%{release} | |
180 | ||
181 | %description themes-Natura | |
182 | Natura theme for Openbox. | |
183 | ||
184 | %description themes-Natura -l pl.UTF-8 | |
185 | Motyw Natura dla Openboksa. | |
186 | ||
187 | %package themes-Onyx-Citrus | |
188 | Summary: Onyx-Citrus theme for Openbox | |
189 | Summary(pl.UTF-8): Motyw Onyx-Citrus dla Openboksa | |
190 | Group: Themes | |
191 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
192 | Provides: openbox-theme-base = %{epoch}:%{version}-%{release} | |
193 | ||
194 | %description themes-Onyx-Citrus | |
195 | Onyx-Citrus theme for Openbox. | |
196 | ||
197 | %description themes-Onyx-Citrus -l pl.UTF-8 | |
198 | Motyw Onyx-Citrus dla Openboksa. | |
199 | ||
200 | %package themes-Onyx | |
201 | Summary: Onyx theme for Openbox | |
202 | Summary(pl.UTF-8): Motyw Onyx dla Openboksa | |
203 | Group: Themes | |
204 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
205 | Provides: openbox-theme-base = %{epoch}:%{version}-%{release} | |
206 | ||
207 | %description themes-Onyx | |
208 | Onyx theme for Openbox. | |
209 | ||
210 | %description themes-Onyx -l pl.UTF-8 | |
211 | Motyw Onyx dla Openboksa. | |
212 | ||
213 | %package themes-Orang | |
214 | Summary: Orang theme for Openbox | |
215 | Summary(pl.UTF-8): Motyw Orang dla Openboksa | |
216 | Group: Themes | |
217 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
218 | Provides: openbox-theme-base = %{epoch}:%{version}-%{release} | |
219 | ||
220 | %description themes-Orang | |
221 | Orang theme for Openbox. | |
222 | ||
223 | %description themes-Orang -l pl.UTF-8 | |
224 | Motyw Orang dla Openboksa. | |
225 | ||
226 | %package themes-Syscrash | |
227 | Summary: Syscrash theme for Openbox | |
228 | Summary(pl.UTF-8): Motyw Syscrash dla Openboksa | |
229 | Group: Themes | |
230 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
231 | Provides: openbox-theme-base = %{epoch}:%{version}-%{release} | |
232 | ||
233 | %description themes-Syscrash | |
234 | Syscrash theme for Openbox. | |
235 | ||
236 | %description themes-Syscrash -l pl.UTF-8 | |
237 | Motyw Syscrash dla Openboksa. | |
d6e82541 | 238 | |
7f32fe2f | 239 | %prep |
f9c42f38 | 240 | %setup -q |
825ac997 JB |
241 | |
242 | %{__sed} -i -e '1s,/usr/bin/env python$,%{__python},' data/autostart/openbox-xdg-autostart | |
7f32fe2f | 243 | |
244 | %build | |
7386a7de | 245 | %{__libtoolize} |
246 | %{__aclocal} -I m4 | |
7f32fe2f | 247 | %{__autoconf} |
248 | %{__automake} | |
825ac997 JB |
249 | %configure \ |
250 | --disable-silent-rules | |
251 | %{__make} | |
7f32fe2f | 252 | |
253 | %install | |
254 | rm -rf $RPM_BUILD_ROOT | |
4edee9bf | 255 | |
7386a7de | 256 | %{__make} install \ |
59ff23be | 257 | DESTDIR=$RPM_BUILD_ROOT \ |
df7df029 | 258 | gnomewmfilesdir=%{_wmpropsdir} |
59ff23be | 259 | |
a87ff9f0 | 260 | %{!?with_gnome2:%{__rm} $RPM_BUILD_ROOT%{_wmpropsdir}/openbox.desktop} |
8e512474 JR |
261 | |
262 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc/openbox | |
c8ecbe64 | 263 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/libob*.la |
8e512474 | 264 | |
825ac997 JB |
265 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{no,nb} |
266 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{gl_ES,gl} | |
25e68aed | 267 | |
268 | %find_lang %{name} --all-name | |
f7801277 | 269 | |
5beae7d1 JB |
270 | %clean |
271 | rm -rf $RPM_BUILD_ROOT | |
272 | ||
f9c42f38 | 273 | %post libs -p /sbin/ldconfig |
274 | %postun libs -p /sbin/ldconfig | |
7386a7de | 275 | |
25e68aed | 276 | %files -f %{name}.lang |
7f32fe2f | 277 | %defattr(644,root,root,755) |
df7df029 MB |
278 | %doc AUTHORS CHANGELOG COMPLIANCE README |
279 | %doc data/{menu.xsd,rc.xsd,xbm/*} doc/rc-mouse-focus.xml | |
280 | %attr(755,root,root) %{_bindir}/gnome-panel-control | |
281 | %attr(755,root,root) %{_bindir}/openbox | |
282 | %attr(755,root,root) %{_bindir}/openbox-gnome-session | |
283 | %attr(755,root,root) %{_bindir}/openbox-kde-session | |
284 | %attr(755,root,root) %{_bindir}/openbox-session | |
f71942d2 | 285 | %attr(755,root,root) %{_bindir}/gdm-control |
804a6af7 | 286 | %attr(755,root,root) %{_bindir}/obxprop |
825ac997 JB |
287 | # requires gnome-session - subpackage? |
288 | #%{_datadir}/gnome-session/sessions/openbox-gnome.session | |
289 | #%{_datadir}/gnome-session/sessions/openbox-gnome-fallback.session | |
df7df029 MB |
290 | %{_datadir}/xsessions/openbox-gnome.desktop |
291 | %{_datadir}/xsessions/openbox-kde.desktop | |
965dbf9b | 292 | %{_datadir}/xsessions/openbox.desktop |
dd73a222 | 293 | %{_mandir}/man1/obxprop.1* |
df7df029 MB |
294 | %{_mandir}/man1/openbox-gnome-session.1* |
295 | %{_mandir}/man1/openbox-kde-session.1* | |
296 | %{_mandir}/man1/openbox-session.1* | |
297 | %{_mandir}/man1/openbox.1* | |
d6e82541 | 298 | %dir %{_sysconfdir}/xdg/openbox |
825ac997 JB |
299 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/openbox/autostart |
300 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/openbox/environment | |
301 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/openbox/menu.xml | |
302 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/openbox/rc.xml | |
a87ff9f0 | 303 | %{?with_gnome2:%{_wmpropsdir}/openbox.desktop} |
f71942d2 | 304 | %{_desktopdir}/openbox.desktop |
df7df029 | 305 | %{_pixmapsdir}/openbox.png |
e1cdeadb BZ |
306 | %attr(755,root,root) %{_libdir}/openbox-autostart |
307 | %attr(755,root,root) %{_libdir}/openbox-xdg-autostart | |
7c9f1708 | 308 | |
f9c42f38 | 309 | %files libs |
310 | %defattr(644,root,root,755) | |
df7df029 | 311 | %attr(755,root,root) %{_libdir}/libobrender.so.*.*.* |
825ac997 | 312 | %attr(755,root,root) %ghost %{_libdir}/libobrender.so.32 |
e1cdeadb | 313 | %attr(755,root,root) %{_libdir}/libobt.so.*.*.* |
825ac997 | 314 | %attr(755,root,root) %ghost %{_libdir}/libobt.so.2 |
f9c42f38 | 315 | |
7c9f1708 | 316 | %files devel |
317 | %defattr(644,root,root,755) | |
df7df029 | 318 | %attr(755,root,root) %{_libdir}/libobrender.so |
e1cdeadb | 319 | %attr(755,root,root) %{_libdir}/libobt.so |
2e1205c8 | 320 | %{_includedir}/openbox |
e1cdeadb BZ |
321 | %{_pkgconfigdir}/obrender-3.5.pc |
322 | %{_pkgconfigdir}/obt-3.5.pc | |
d6e82541 | 323 | |
324 | %files static | |
325 | %defattr(644,root,root,755) | |
e1cdeadb | 326 | %{_libdir}/libobt.a |
df7df029 MB |
327 | %{_libdir}/libobrender.a |
328 | ||
329 | %files themes-Artwiz-boxed | |
330 | %defattr(644,root,root,755) | |
331 | %{_datadir}/themes/Artwiz-boxed | |
b93e6d88 | 332 | |
333 | %files themes-bear | |
d6e82541 | 334 | %defattr(644,root,root,755) |
df7df029 MB |
335 | %{_datadir}/themes/Bear2 |
336 | ||
337 | %files themes-Clearlooks-Olive | |
338 | %defattr(644,root,root,755) | |
339 | %{_datadir}/themes/Clearlooks-Olive | |
340 | ||
341 | %files themes-Clearlooks | |
342 | %defattr(644,root,root,755) | |
343 | %{_datadir}/themes/Clearlooks | |
825ac997 | 344 | %{_datadir}/themes/Clearlooks-3.4 |
df7df029 MB |
345 | |
346 | %files themes-Mikachu | |
347 | %defattr(644,root,root,755) | |
348 | %{_datadir}/themes/Mikachu | |
349 | ||
350 | %files themes-Natura | |
351 | %defattr(644,root,root,755) | |
352 | %{_datadir}/themes/Natura | |
353 | ||
354 | %files themes-Onyx-Citrus | |
355 | %defattr(644,root,root,755) | |
356 | %{_datadir}/themes/Onyx-Citrus | |
357 | ||
358 | %files themes-Onyx | |
359 | %defattr(644,root,root,755) | |
360 | %{_datadir}/themes/Onyx | |
361 | ||
362 | %files themes-Orang | |
363 | %defattr(644,root,root,755) | |
364 | %{_datadir}/themes/Orang | |
365 | ||
366 | %files themes-Syscrash | |
367 | %defattr(644,root,root,755) | |
368 | %{_datadir}/themes/Syscrash |