%define PRIO 15
Name: scrotwm
Version: 0.9.23
Release: alt1
Summary: Tiling window manager for X
License: ISC
Group: Graphical desktop/Other
Url: http://scrotwm.org/
Source: http://scrotwm.org/snapshot/%name-%version.tgz
Packager: Dmitry Derjavin
Source1: scrotwm.wmsession
%description
Scrotwm is a small dynamic tiling window manager for X11.
It tries to stay out of the way so that valuable screen real estate
can be used for much more important stuff. It has sane defaults
and does not require one to learn a language to do any configuration.
It was written by hackers for hackers and it strives to be small,
compact and fast.
%prep
%setup -q
%build
%make_build -C linux PREFIX=%_prefix LIBDIR=%_libdir
%install
%makeinstall_std -C linux PREFIX=%_prefix LIBDIR=%_libdir
# to be fixed:
for i in $(ls -1 %buildroot%_man1dir/%name\_??.1 | cut -f 2 -d _ | cut -f 1 -d .); do
mkdir -p %buildroot%_mandir/$i/man1
mv %buildroot%_man1dir/%name\_$i.1 %buildroot%_mandir/$i/man1/%name\.1
done
#
iconv -f utf-8 -t koi8-r %buildroot%_mandir/ru/man1/%name\.1 > manpage.txt
%__cat manpage.txt > %buildroot%_mandir/ru/man1/%name\.1
%__rm -f manpage.txt
install -pD -m 644 %SOURCE1 %buildroot%_x11sysconfdir/wmsession.d/%PRIO%name
%files
%_bindir/*
%_libdir/*
%_mandir/*
%config %_x11sysconfdir/wmsession.d/%PRIO%name
#%doc README
%changelog
* Fri Apr 30 2010 Dmitry Derjavin 0.9.23-alt1
- Initial ALTLinux build.