File sawfish.spec of Package sawfish

# spec file for package sawfish (version 1.6.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2007 Jan Nieuwenhuizen <jnieuwenhuizen@novell.com>
# Copyright (c) 2000 John Harper <john@dcs.warwick.ac.uk>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           sawfish
Version:        1.6.1
Release:        1
Summary:        A highly configurable window manager for X11
License:        GPL v2 or later
Url:            http://sawfish.wikia.com/
Group:          System/GUI/Other
Source:         http://download.sourceforge.net/sawfish/%{name}-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  gmp-devel
BuildRequires:  gtk2-devel
BuildRequires:  librep-devel
BuildRequires:  pango-devel
BuildRequires:  rep-gtk-devel
BuildRequires:  update-desktop-files
Requires:       rep-gtk
Recommends:     pulseaudio-utils
PreReq:         %install_info_prereq
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Sawfish is an extensible window manager using an Emacs Lisp-like
scripting language -- all window decorations are configurable, the basic
idea is to have as much user-interface policy as possible controlled
through the Lisp language. This is no layer on top of twm, but a wholly
new architecture.

Despite this extensibility its policy is currently very minimal
compared to most window managers. Its aim is simply to manage windows
in the most flexible and attractive manner possible. As such it does
not implement desktop backgrounds, applications docks, or other things
that may be achieved through separate applications.

%package devel
License:        GPL v2 or later
Summary:        A highly configurable window manager for X11 - Development Files
Group:          Development/Languages/Scheme
Requires:       %{name} = %{version}
Requires:       librep-devel
Requires:       rep-gtk-devel

%description devel
Sawfish is an extensible window manager using an Emacs Lisp-like
scripting language -- all window decorations are configurable, the basic
idea is to have as much user-interface policy as possible controlled
through the Lisp language. This is no layer on top of twm, but a wholly
new architecture.

Despite this extensibility its policy is currently very minimal
compared to most window managers. Its aim is simply to manage windows
in the most flexible and attractive manner possible. As such it does
not implement desktop backgrounds, applications docks, or other things
that may be achieved through separate applications.

%lang_package

%prep
%setup -q

%build
%configure
%__make %{?jobs:-j%jobs}

%install
%makeinstall
# Change sr@Latn to sr@latin
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
# Change no to nb_NO
mv %{buildroot}%{_datadir}/locale/no %{buildroot}%{_datadir}/locale/nb_NO
%find_lang %{name} %{?no_lang_C}
# Name[el] is not valid UTF-8
sed -i "s/Name\[el\].*//" %{buildroot}%{_datadir}/applications/%{name}.desktop
sed -i "s/Name\[el\].*//" %{buildroot}%{_datadir}/xsessions/%{name}.desktop
%suse_update_desktop_file %{name}
%suse_update_desktop_file %{buildroot}%{_datadir}/gnome/wm-properties/%{name}-wm.desktop
%suse_update_desktop_file %{buildroot}%{_datadir}/kde4/apps/ksmserver/windowmanagers/sawfish.desktop
%suse_update_desktop_file %{buildroot}%{_datadir}/xsessions/%{name}.desktop
%fdupes %{buildroot}%{_datadir}/%{name}
%fdupes %{buildroot}%{_libexecdir}/%{name}

%clean
rm -rf %{buildroot}

%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%desktop_database_post

%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%desktop_database_postun

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING FAQ KEYBINDINGS MAINTAINERS NEWS OPTIONS README
%doc lisp/sawfish/cfg/WIDGETS-LIST
%{_bindir}/sawfish
%{_bindir}/sawfish-client
%{_bindir}/sawfish-config
%{_datadir}/%{name}
%dir %{_datadir}/gnome
%dir %{_datadir}/gnome/wm-properties
%dir %{_datadir}/kde4
%dir %{_datadir}/kde4/apps
%dir %{_datadir}/kde4/apps/ksmserver
%dir %{_datadir}/kde4/apps/ksmserver/windowmanagers
%{_datadir}/applications/%{name}.desktop
%{_datadir}/gnome/wm-properties/%{name}-wm.desktop
%{_datadir}/kde4/apps/ksmserver/windowmanagers/sawfish.desktop
%{_datadir}/xsessions/%{name}.desktop
%{_libdir}/%{name}/
%{_libdir}/rep/%{_host}/%{name}/
%doc %{_infodir}/%{name}.*
%doc %{_mandir}/man?/sawfish.*
%doc %{_mandir}/man?/sawfish-client.*
%doc %{_mandir}/man?/sawfish-config.*

%files devel
%defattr(-,root,root)
%{_includedir}/sawfish/
%{_libdir}/pkgconfig/*.pc

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by