3 %bcond_with gnome2 # build with support for GNOME2 wm-properties
5 Summary: An X window manager resembling the Plan 9 (8-1/2) interface
6 Summary(pl.UTF-8): Zarządca okien emulujący interfejs Plan 9 (8-1/2)
10 License: distributable
11 Group: X11/Window Managers
12 Source0: http://www.plig.org/xwinman/archive/9wm/pre-%{name}-%{version}.shar.gz
13 # Source0-md5: 2785a33d4f42ecc19234029db03d7e00
14 Source1: %{name}.desktop
15 Source2: %{name}-xsession.desktop
16 BuildRequires: xorg-cf-files
17 BuildRequires: xorg-lib-libXext-devel
18 BuildRequires: xorg-util-imake
19 Conflicts: filesystem < 3.0-20
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _wmpropsdir /usr/share/gnome/wm-properties
23 %define _xsessdir /usr/share/xsessions
26 9wm emulates the Plan 9 window manager 8-1/2. 9wm is designed to be
27 small and fast. The interface is easy to use, icon-less and
30 %description -l pl.UTF-8
31 9wm emuluje zarządcę okien 8-1/2 z Plan 9. 9wm został zaprojektowany
32 tak, aby był mały i szybki. Interfejs jest łatwy w użyciu i pozbawiony
43 CDEBUGFLAGS="%{rpmcflags}"
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_wmpropsdir},%{_xsessdir}}
48 install -d $RPM_BUILD_ROOT%{_bindir}
49 install -d $RPM_BUILD_ROOT%{_mandir}/man1
51 install 9wm $RPM_BUILD_ROOT%{_bindir}
52 install 9wm.man $RPM_BUILD_ROOT%{_mandir}/man1/9wm.1x
54 i%{?with_gnome2:nstall %{SOURCE1} $RPM_BUILD_ROOT%{_wmpropsdir}}
55 install %{SOURCE2} $RPM_BUILD_ROOT%{_xsessdir}/%{name}.desktop
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
63 %attr(755,root,root) %{_bindir}/9wm
64 %{_mandir}/man1/9wm.1x*
65 %{?with_gnome2:%{_wmpropsdir}/%{name}.desktop}
66 %{_xsessdir}/%{name}.desktop