File tinywm.spec of Package tinywm
#
# spec file for package tinywm (Version 1.3)
#
# Copyright (c) 2008 SOAD Project, Russia.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments to the Maintainer: sda00@himki.net
# # norootforbuild
Name: tinywm
Version: 1.3
Release: 0
Summary: Ridiculously tiny window manager
License: Public Domain
Group: System/GUI/Other
URL: http://incise.org/tinywm.html
# Repacked http://incise.org/files/dev/tinywm-%%{version}.tgz
Source: %{name}-%{version}.tar.bz2
Source1: %{name}.desktop
BuildRequires: xorg-x11-libX11-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
TinyWM is a ridiculously tiny window manager implemented in nearly as few lines of C as possible, without being obfuscated or entirely useless. It allows you to move, resize, focus (sloppy), and raise windows -- that's it! TinyWM's main purpose is to serve as a quick example of some window manager programming basics.
Usage:
Focus follows pointer.
Alt+Button1, drag: interactive window move
Alt+Button3, drag: interactive window resize
Alt+F1: raise focused window
%prep
%setup -q
%build
gcc %optflags tinywm.c -o tinywm -lX11
%install
%__install -D -m 755 tinywm %buildroot%{_bindir}/%{name}
%__install -D -m 644 %{SOURCE1} %buildroot%{_datadir}/xsessions/%{name}.dekstop
%clean
%__rm -rf %buildroot
%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_datadir}/xsessions/%{name}.dekstop
%changelog
* Tue Jun 30 2009 was released tinywm 1.3
Packed by sda00@himki.net