File sawfish.spec of Package sawfish
# spec file for package sawfish (version 1.3.1)
#
# Copyright (c) 2007 JP Rosevear <jpr@novell.com>
# Copyright (c) 2007 Jan Nieuwenhuizen <jnieuwenhuizen@novell.com>
# Copyright (c) 20000 John Harper <john@dcs.warwick.ac.uk>
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# please send bugfixes or comments to gnome-maintainers@suse.de
#
# norootforbuild
# Version is not allow to have a '-' so use macros to expand everything correctly
%define nominalversion 1.3.1
%define datestamp 20070727
BuildRequires: control-center2-devel gmp-devel librep-devel rep-gtk-libglade texinfo
Name: sawfish
Summary: An extensible window manager for the X Window System.
Version: %{nominalversion}svn%{datestamp}
Release: 1
Requires: librep >= 0.16, rep-gtk >= 0.16
License: GPL
Group: User Interface/Desktops
Source: http://download.sourceforge.net/sawfish/sawfish-%{nominalversion}-%{datestamp}.tar.bz2
URL: http://sawmill.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: /sbin/install-info
Obsoletes: sawmill sawmill-gnome sawfish-gnome
%description
Sawfish is an extensible window manager which uses a Lisp-based
scripting language. All window decorations are configurable and the
basic idea is to have as much user-interface policy as possible
controlled through the Lisp language. Configuration can be
accomplished by writing Lisp code in a personal .sawfishrc file, or
using a GTK+ interface. Sawfish is mostly GNOME compliant
%prep
%setup -n %{name}-%{nominalversion}-%{datestamp}
%build
LC_ALL=""
LINGUAS=""
LANG=""
export LC_ALL LINGUAS LANG
%configure
%__make host_type=%{_target_platform}
%install
mkdir -p $RPM_BUILD_ROOT%{_datadir}/gnome/wm-properties
mkdir -p $RPM_BUILD_ROOT%{_datadir}/control-center
mkdir -p $RPM_BUILD_ROOT%{_datadir}/gnome/apps/Settings
mkdir -p $RPM_BUILD_ROOT%{_bindir}
%makeinstall \
GNOMEDIR=%{_prefix} \
host_type=%{_target_platform} \
infodir=%{_infodir}
gzip -9nf $RPM_BUILD_ROOT%{_infodir}/sawfish*
%post
/sbin/install-info %{_infodir}/sawfish.info.gz %{_infodir}/dir
%preun
if [ "$1" = 0 ]; then
/sbin/install-info --delete %{_infodir}/sawfish.info.gz %{_infodir}/dir
fi
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README NEWS FAQ THANKS BUGS TODO
%doc po/sawfish.pot lisp/sawfish/ui/WIDGETS-LIST lisp/sawfish/ui/WISHLIST
%{_bindir}/sawfish
%{_bindir}/sawfish-client
%{_bindir}/sawfish-ui
%{_datadir}/sawfish/%{nominalversion}
%{_datadir}/locale
#%{_datadir}/control-center/capplets
%{_datadir}/gnome/wm-properties/Sawfish.desktop
%{_datadir}/pixmaps/sawfish*.png
%{_libexecdir}/sawfish/%{nominalversion}/%{_target_platform}
%{_libexecdir}/rep/%{_target_platform}/sawfish
%{_infodir}/sawfish*
%changelog