Name: 9wm
Summary: Emulation of the Plan 9 window manager 8 1/2
Version: 1.2
Release: 2%{?dist}
License: MIT
Group: User Interface/Desktops
Source0: http://unauthorised.org/dhog/9wm/pre-9wm-%{version}.tar.gz
Source1: 9wm.desktop
# Patch from Debian, minor cleanups
Patch0: 9wm_1.2-9.diff
URL: http://unauthorised.org/dhog/9wm.html
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: imake, libXext-devel, libX11-devel, desktop-file-utils
# It needs this to open a terminal.
Requires: xterm
%description
9wm is an X window manager which attempts to emulate the Plan 9 window
manager 8-1/2 as far as possible within the constraints imposed by X.
It provides a simple yet comfortable user interface, without garish
decorations or title-bars. Or icons. And it's click-to-type.
%prep
%setup -q -n pre-9wm-%{version}
%patch0 -p1 -b .cleanups
%build
xmkmf
make %{?_smp_mflags} CDEBUGFLAGS="$RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install install.man
desktop-file-install \
--dir=${RPM_BUILD_ROOT}%{_datadir}/xsessions/ \
%{SOURCE1}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README
%{_bindir}/9wm
%{_datadir}/xsessions/9wm.desktop
%{_mandir}/man1/9wm.*
%changelog
* Thu Oct 8 2009 Tom "spot" Callaway <tcallawa@redhat.com> 1.2-2
- fix defattr invocation
* Tue Oct 6 2009 Tom "spot" Callaway <tcallawa@redhat.com> 1.2-1
- Initial package for Fedora