Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 0b56354c1dde93b69ce0ce0513c60eae > files > 5

wmx-6pl1-3mdk.src.rpm

%define name wmx
%define version 6pl1
%define release %mkrel 3

Summary: A minimal window manager
Name: %{name}
Version: %{version}
Release: %{release}
License: BSD-like
Url: http://www.all-day-breakfast.com/wmx/
Group: Graphical desktop/Other
Source0: %{name}-%{version}.tar.bz2
Patch1: wmx-syntax-fix.patch.bz2
Patch2: wmx-my-config.patch.bz2
Patch3: wmx-64bitptr.patch.bz2
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}
Requires: rxvt
BuildRequires: XFree86-devel

%description
wmx is another window manager for X. It provides a unusual style of
window decoration and only minimal functionality--no icons, no toolbars,
no docks. wmx is barely configurable except by editing the source and
recompiling the code.

%prep
%setup -q
%patch1 -p0
%patch2 -p0
%patch3 -p0

%build
%configure
%make

%install
rm -fr %buildroot
install -d %buildroot%_bindir
install -d %buildroot/%_sysconfdir/X11/wmsession.d/
install -m 755 wmx %buildroot%_bindir/wmx

cat << EOF > %buildroot/%_sysconfdir/X11/wmsession.d/25wmx
NAME=wmx
EXEC=/usr/bin/wmx
DESC=Minimal windows manager without configuration
SCRIPT:
exec /usr/bin/wmx
EOF
cat <<XCLIENTS > Xclients
#!/bin/sh
# This is an example of ~/.Xclients file to start wmx

xdaliclock -transparent -fg black -builtin1 -24 -noseconds -geometry -5-5 -xrm "*overrideRedirect: True" &
exec wmx
XCLIENTS

%clean
rm -fr %buildroot

%files
%defattr(-,root,root,0755)
%doc README* UPDATES Xclients Config.h
%{_bindir}/wmx
%config(noreplace) %{_sysconfdir}/X11/wmsession.d/25wmx

%changelog
* Mon Jan 16 2006 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 6pl1-3mdk
- Fix build on x86_64 (patch 3)

* Fri Jul 01 2005 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 6pl1-2mdk
- Rebuild

* Tue Jun 08 2004 Rafael Garcia-Suarez <rgarciasuarez@mandrakesoft.com> 6pl1-1mdk
- New version: 6 patch level 1

* Sun Jun 06 2004 Michael Scherer <misc@mandrake.org> 6-3mdk 
- rebuild for new gcc

* Wed Jun 02 2004 Michael Scherer <misc@mandrake.org> 6-2mdk
- add wmsession.d files
- add BuildRequires
- strip is done automatically
- add Config.h to %%doc
 
* Thu May 27 2004 Rafael Garcia-Suarez <rgarciasuarez@mandrakesoft.com> 6-1mdk
- Initial package
- Use rxvt by default
- Don't use ugly pixmaps
- Reduce workspace flip delay