3 %bcond_with gnome2 # build with support for GNOME2 wm-properties
5 Summary: Small and fast window manger for the X Window
6 Summary(pl.UTF-8): Mały i szybki zarządca okien dla X Window
12 Group: X11/Window Managers
13 Source0: http://openbox.org/dist/openbox/%{name}-%{version}.tar.xz
14 # Source0-md5: 46bf5f1edda0eda0d9e824b585988be9
15 URL: http://openbox.org/
16 BuildRequires: autoconf >= 2.54
17 BuildRequires: automake >= 1:1.11
18 BuildRequires: gettext-tools >= 0.15
19 BuildRequires: glib2-devel >= 1:2.14.0
20 BuildRequires: imlib2-devel
21 BuildRequires: librsvg-devel >= 2
22 BuildRequires: libtool
23 BuildRequires: libxml2-devel >= 1:2.6.31
24 BuildRequires: pango-devel >= 1:1.18.3
25 BuildRequires: pkgconfig
26 BuildRequires: rpm-pythonprov
27 BuildRequires: rpmbuild(macros) >= 1.197
28 BuildRequires: sed >= 4.0
29 BuildRequires: startup-notification-devel >= 0.8
30 BuildRequires: xorg-lib-libICE-devel
31 BuildRequires: xorg-lib-libSM-devel
32 BuildRequires: xorg-lib-libX11-devel
33 BuildRequires: xorg-lib-libXau-devel
34 BuildRequires: xorg-lib-libXcursor-devel
35 BuildRequires: xorg-lib-libXext-devel
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}
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
47 Conflicts: filesystem < 3.0-20
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 %define _wmpropsdir /usr/share/gnome/wm-properties
53 Openbox is a completely new window manager, and is not based upon any
54 previous window manager code-base. Its primary goals are standards
55 support/compliance, and intelligent window management.
57 %description -l pl.UTF-8
58 Openbox jest całkowicie nowym zarządcą okien i nie bazuje już na
59 kodzie wcześniejszych wersji. Jego głównymi celami są wsparcie i
60 zgodność ze standardami oraz inteligentne zarządzanie oknami.
63 Summary: Openbox libraries
64 Summary(pl.UTF-8): Biblioteki Openboksa
66 Requires: glib2 >= 1:2.14.0
67 Requires: libxml2 >= 1:2.6.31
68 Requires: pango >= 1:1.18.3
73 %description libs -l pl.UTF-8
77 Summary: Header files for Openbox
78 Summary(pl.UTF-8): Pliki nagłówkowe Openboksa
79 Group: Development/Libraries
80 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
81 Requires: glib2-devel >= 1:2.14.0
82 Requires: imlib2-devel
83 Requires: librsvg-devel >= 2
84 Requires: libxml2-devel >= 1:2.6.31
85 Requires: pango-devel >= 1:1.18.3
86 Requires: xorg-lib-libICE-devel
87 Requires: xorg-lib-libSM-devel
88 Requires: xorg-lib-libX11-devel
91 Development header files for writing applications based on Openbox.
93 %description devel -l pl.UTF-8
94 Pliki nagłówkowe do tworzenia oprogramowania opartego o Openboksa.
97 Summary: Static Openbox libraries
98 Summary(pl.UTF-8): Statyczne biblioteki Openboksa
99 Group: Development/Libraries
100 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
103 Static Openbox libraries.
105 %description static -l pl.UTF-8
106 Statyczne biblioteki Openboksa.
108 %package themes-Artwiz-boxed
109 Summary: Artwiz-boxed theme for Openbox
110 Summary(pl.UTF-8): Motyw Artwiz-boxed dla Openboksa
112 Requires: %{name} = %{epoch}:%{version}-%{release}
113 Provides: openbox-theme-base = %{epoch}:%{version}-%{release}
115 %description themes-Artwiz-boxed
116 Artwiz-boxed theme for Openbox.
118 %description themes-Artwiz-boxed -l pl.UTF-8
119 Motyw Artwiz-boxed dla Openboksa.
122 Summary: Bear theme for Openbox
123 Summary(pl.UTF-8): Motyw Bear dla Openboksa
125 Requires: %{name} = %{epoch}:%{version}-%{release}
126 Provides: openbox-theme-base = %{epoch}:%{version}-%{release}
127 Obsoletes: openbox-themes-TheBear < 1:3.3.1
129 %description themes-bear
130 Bear theme for Openbox.
132 %description themes-bear -l pl.UTF-8
133 Motyw Bear dla Openboksa.
135 %package themes-Clearlooks-Olive
136 Summary: Clearlooks-Olive theme for Openbox
137 Summary(pl.UTF-8): Motyw Clearlooks-Olive dla Openboksa
139 Requires: %{name} = %{epoch}:%{version}-%{release}
140 Provides: openbox-theme-base = %{epoch}:%{version}-%{release}
142 %description themes-Clearlooks-Olive
143 Clearlooks-Olive theme for Openbox.
145 %description themes-Clearlooks-Olive -l pl.UTF-8
146 Motyw Clearlooks-Olive dla Openboksa.
148 %package themes-Clearlooks
149 Summary: Clearlooks theme for Openbox
150 Summary(pl.UTF-8): Motyw Clearlooks dla Openboksa
152 Requires: %{name} = %{epoch}:%{version}-%{release}
153 Provides: openbox-theme-base = %{epoch}:%{version}-%{release}
155 %description themes-Clearlooks
156 Clearlooks theme for Openbox.
158 %description themes-Clearlooks -l pl.UTF-8
159 Motyw Clearlooks dla Openboksa.
161 %package themes-Mikachu
162 Summary: Mikachu theme for Openbox
163 Summary(pl.UTF-8): Motyw Mikachu dla Openboksa
165 Requires: %{name} = %{epoch}:%{version}-%{release}
166 Provides: openbox-theme-base = %{epoch}:%{version}-%{release}
168 %description themes-Mikachu
169 Mikachu theme for Openbox.
171 %description themes-Mikachu -l pl.UTF-8
172 Motyw Mikachu dla Openboksa.
174 %package themes-Natura
175 Summary: Natura theme for Openbox
176 Summary(pl.UTF-8): Motyw Natura dla Openboksa
178 Requires: %{name} = %{epoch}:%{version}-%{release}
179 Provides: openbox-theme-base = %{epoch}:%{version}-%{release}
181 %description themes-Natura
182 Natura theme for Openbox.
184 %description themes-Natura -l pl.UTF-8
185 Motyw Natura dla Openboksa.
187 %package themes-Onyx-Citrus
188 Summary: Onyx-Citrus theme for Openbox
189 Summary(pl.UTF-8): Motyw Onyx-Citrus dla Openboksa
191 Requires: %{name} = %{epoch}:%{version}-%{release}
192 Provides: openbox-theme-base = %{epoch}:%{version}-%{release}
194 %description themes-Onyx-Citrus
195 Onyx-Citrus theme for Openbox.
197 %description themes-Onyx-Citrus -l pl.UTF-8
198 Motyw Onyx-Citrus dla Openboksa.
201 Summary: Onyx theme for Openbox
202 Summary(pl.UTF-8): Motyw Onyx dla Openboksa
204 Requires: %{name} = %{epoch}:%{version}-%{release}
205 Provides: openbox-theme-base = %{epoch}:%{version}-%{release}
207 %description themes-Onyx
208 Onyx theme for Openbox.
210 %description themes-Onyx -l pl.UTF-8
211 Motyw Onyx dla Openboksa.
213 %package themes-Orang
214 Summary: Orang theme for Openbox
215 Summary(pl.UTF-8): Motyw Orang dla Openboksa
217 Requires: %{name} = %{epoch}:%{version}-%{release}
218 Provides: openbox-theme-base = %{epoch}:%{version}-%{release}
220 %description themes-Orang
221 Orang theme for Openbox.
223 %description themes-Orang -l pl.UTF-8
224 Motyw Orang dla Openboksa.
226 %package themes-Syscrash
227 Summary: Syscrash theme for Openbox
228 Summary(pl.UTF-8): Motyw Syscrash dla Openboksa
230 Requires: %{name} = %{epoch}:%{version}-%{release}
231 Provides: openbox-theme-base = %{epoch}:%{version}-%{release}
233 %description themes-Syscrash
234 Syscrash theme for Openbox.
236 %description themes-Syscrash -l pl.UTF-8
237 Motyw Syscrash dla Openboksa.
242 %{__sed} -i -e '1s,/usr/bin/env python$,%{__python},' data/autostart/openbox-xdg-autostart
250 --disable-silent-rules
254 rm -rf $RPM_BUILD_ROOT
257 DESTDIR=$RPM_BUILD_ROOT \
258 gnomewmfilesdir=%{_wmpropsdir}
260 %{!?with_gnome2:%{__rm} $RPM_BUILD_ROOT%{_wmpropsdir}/openbox.desktop}
262 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc/openbox
263 %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/libob*.la
265 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{no,nb}
266 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{gl_ES,gl}
268 %find_lang %{name} --all-name
271 rm -rf $RPM_BUILD_ROOT
273 %post libs -p /sbin/ldconfig
274 %postun libs -p /sbin/ldconfig
276 %files -f %{name}.lang
277 %defattr(644,root,root,755)
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
285 %attr(755,root,root) %{_bindir}/gdm-control
286 %attr(755,root,root) %{_bindir}/obxprop
287 # requires gnome-session - subpackage?
288 #%{_datadir}/gnome-session/sessions/openbox-gnome.session
289 #%{_datadir}/gnome-session/sessions/openbox-gnome-fallback.session
290 %{_datadir}/xsessions/openbox-gnome.desktop
291 %{_datadir}/xsessions/openbox-kde.desktop
292 %{_datadir}/xsessions/openbox.desktop
293 %{_mandir}/man1/obxprop.1*
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*
298 %dir %{_sysconfdir}/xdg/openbox
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
303 %{?with_gnome2:%{_wmpropsdir}/openbox.desktop}
304 %{_desktopdir}/openbox.desktop
305 %{_pixmapsdir}/openbox.png
306 %attr(755,root,root) %{_libdir}/openbox-autostart
307 %attr(755,root,root) %{_libdir}/openbox-xdg-autostart
310 %defattr(644,root,root,755)
311 %attr(755,root,root) %{_libdir}/libobrender.so.*.*.*
312 %attr(755,root,root) %ghost %{_libdir}/libobrender.so.32
313 %attr(755,root,root) %{_libdir}/libobt.so.*.*.*
314 %attr(755,root,root) %ghost %{_libdir}/libobt.so.2
317 %defattr(644,root,root,755)
318 %attr(755,root,root) %{_libdir}/libobrender.so
319 %attr(755,root,root) %{_libdir}/libobt.so
320 %{_includedir}/openbox
321 %{_pkgconfigdir}/obrender-3.5.pc
322 %{_pkgconfigdir}/obt-3.5.pc
325 %defattr(644,root,root,755)
327 %{_libdir}/libobrender.a
329 %files themes-Artwiz-boxed
330 %defattr(644,root,root,755)
331 %{_datadir}/themes/Artwiz-boxed
334 %defattr(644,root,root,755)
335 %{_datadir}/themes/Bear2
337 %files themes-Clearlooks-Olive
338 %defattr(644,root,root,755)
339 %{_datadir}/themes/Clearlooks-Olive
341 %files themes-Clearlooks
342 %defattr(644,root,root,755)
343 %{_datadir}/themes/Clearlooks
344 %{_datadir}/themes/Clearlooks-3.4
346 %files themes-Mikachu
347 %defattr(644,root,root,755)
348 %{_datadir}/themes/Mikachu
351 %defattr(644,root,root,755)
352 %{_datadir}/themes/Natura
354 %files themes-Onyx-Citrus
355 %defattr(644,root,root,755)
356 %{_datadir}/themes/Onyx-Citrus
359 %defattr(644,root,root,755)
360 %{_datadir}/themes/Onyx
363 %defattr(644,root,root,755)
364 %{_datadir}/themes/Orang
366 %files themes-Syscrash
367 %defattr(644,root,root,755)
368 %{_datadir}/themes/Syscrash