2 # TODO: review/update patches
5 %bcond_with epistrophy # enables using epistorophy key grabber
6 %bcond_with gnome2 # build with support for GNOME2 wm-properties
8 Summary: Very small and fast window manger for the X Window
9 Summary(pl.UTF-8): Mały i szybki zarządca okien dla X Window
10 Summary(de.UTF-8): Blackbox ist ein Windowmanager
15 Group: X11/Window Managers
16 Source0: http://dl.sourceforge.net/blackboxwm/%{name}-%{version}.tar.gz
17 # Source0-md5: 2d173b95ca5e64ef478c6a5d2deee9df
18 Source1: %{name}.desktop
21 Source5: %{name}-README.PLD
22 Source6: %{name}-xsession.desktop
23 Patch0: %{name}-am_fixes.patch
24 Patch1: %{name}-pipe.patch
25 Patch3: %{name}-epistrophy.patch
26 Patch4: %{name}-etc_dir.patch
27 Patch5: %{name}-nls-codesets.patch
28 Patch6: %{name}-assert.patch
29 Patch7: %{name}-lib64.patch
30 Patch8: %{name}-headers.patch
31 URL: http://blackboxwm.sourceforge.net/
32 BuildRequires: autoconf
33 BuildRequires: automake
34 %{?with_epistrophy:Requires: epistrophy}
35 BuildRequires: rpm >= 4.0.2-48
36 BuildRequires: sed >= 4.0
37 BuildRequires: xorg-lib-libX11-devel
38 BuildRequires: xorg-lib-libXft-devel
40 Conflicts: filesystem < 3.0-20
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 %define _sysconfdir /etc/X11/%{name}
44 %define _wmpropsdir /usr/share/gnome/wm-properties
46 %define _gcc_ver %(%{__cc} -dumpversion | cut -b 1)
48 %define __cxx "%{__cc}"
52 Blackbox is a window manager for the X Window environment, which is
53 almost completely compliant with ICCCM specified operation policies.
54 It features nice and fast interface with multiple workspaces and
55 simple menus. Fast built-in graphics code that can render solids,
56 gradients and bevels is used to draw window decorations. Remaining
57 small in size, blackbox preserves memory and CPU.
59 %description -l pl.UTF-8
60 Blackbox jest zarządcą okien dla X Window spełniającym prawie
61 wszystkie zalecenia ICCM. Jego zaletą jest estetyczny i szybki
62 interfejs z wieloma pulpitami i prostym menu. Wbudowano weń także
63 algorytm rysowania dekoracji okien, które mogą być jednokolorowe,
64 gradientowe lub trójwymiarowe. Blackbox oszczędza pamięć i czas CPU.
66 %description -l de.UTF-8
67 Blackbox ist ein Windowmanager für offene Betriebssystem wie z.B.
68 Linux oder freie BSD-Varianten. Er erfreut sich einer großen
69 Fangemeinde, da er sehr ressourcenschonend und voll konfigurierbar
76 %{?with_epistrophy:%patch3 -p1}
80 %if "%{_lib}" == "lib64"
85 %{__sed} -i 's,_XUTIL_H_,_X11&,' lib/Util.hh
97 rm -rf $RPM_BUILD_ROOT
99 $RPM_BUILD_ROOT{%{_wmpropsdir},%{_mandir}/pl/man1,%{_sysconfdir}} \
100 $RPM_BUILD_ROOT%{_datadir}/xsessions
103 DESTDIR=$RPM_BUILD_ROOT
105 %{?with_gnome2:install %{SOURCE1} $RPM_BUILD_ROOT%{_wmpropsdir}}
106 install %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/pl/man1
107 install %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/pl/man1
108 cp %{SOURCE5} README.PLD
109 install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/%{name}.desktop
112 rm -rf $RPM_BUILD_ROOT
115 %defattr(644,root,root,755)
116 %doc AUTHORS README* ChangeLog LICENSE TODO
117 %attr(755,root,root) %{_bindir}/*
119 %dir %{_datadir}/blackbox
120 %{_datadir}/blackbox/styles
121 %{_datadir}/xsessions/%{name}.desktop
122 %{?with_gnome2:%{_wmpropsdir}/blackbox.desktop}
124 %lang(pl) %{_mandir}/pl/man1/*
125 %{_datadir}/blackbox/menu