ALT repositories
Last updated at Sat, 06 Jun 2020 00:53:11 +0000 | SRPMs: 11456
en ru
SRPMs in branches
hide window
  • 1.5.0-alt0.r4474.1
Group :: Graphical desktop/Sawfish
Source RPM: sawfish
Raw spec file

# vim: set ft=spec: -*- rpm-spec -*-

%def_disable debug

%define platform %(%_datadir/automake/config.sub %_target_platform | sed -e 's,-%_vendor,,')
%define rep_archlibdir %(pkg-config --variable=repcommonexecdir librep)
%define PRIO 05

Name: sawfish
Version: 1.6.3
Release: alt2

Summary: An extensible window manager for the X Window System
Group: Graphical desktop/Sawfish
License: GPLv2

Provides: %_x11sysconfdir/sawfish/site-init.d
Provides: %_datadir/sawfish/site-lisp
Provides: %_datadir/sawfish/sounds
Provides: %_datadir/sawfish/themes

Source: %name-%version.tar
Patch: %name-%version-%release.patch

# These are not shell scripts, but shell-wrapped compiled rep scripts.

%add_findreq_skiplist %_bindir/sawfish-client
%add_findreq_skiplist %_bindir/sawfish-themer
%add_findreq_skiplist %_bindir/sawfish-config
%add_findreq_skiplist %_libdir/sawfish/%version/%platform/sawfish-about
%add_findreq_skiplist %_libdir/sawfish/%version/%platform/sawfish-menu
%add_findreq_skiplist %_datadir/sawfish/%version/lisp/*

Requires: %{get_dep rep-gtk}

# Automatically added by buildreq on Mon Apr 27 2009

BuildRequires: libSM-devel libXext-devel libXinerama-devel libXrandr-devel libgtk+2-devel librep-devel

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.

%package gnome
Summary: GNOME integration package
Group: Graphical desktop/GNOME
BuildArch: noarch
PreReq: %name = %version-%release
PreReq: gnome-filesystem
Requires: gnome-session
Provides: gnome-wm

%description gnome
Sawfish GNOME integration package.

%package themer
Summary: GUI for creating sawfish window manager themes
Group: Graphical desktop/Sawfish
Requires: rep-gtk-libglade
Requires: %name = %version-%release

%description themer
The sawfish-themer package contains an optional theme builder for the
sawfish window manager. sawfish-themer allows static window themes to
be created and edited in a graphical environment.

%package devel
Summary: Development files for sawfish
Group: Development/Other
Requires: %name = %version-%release, rpm-build-%name = %version-%release

%description devel
Header files for sawfish development.

%package -n rpm-build-%name
Summary: RPM macros for sawfish-related packages
Group: Development/Other
BuildArch: noarch
Conflicts: %name < %version-%release
Conflicts: %name > %version-%release

%description -n rpm-build-%name
RPM macros for sawfish-related packages.

%patch -p1
#cp -pfv %_datadir/automake/config.{guess,sub} .

sed -ie 's,^subversion=.*$,subversion="-%release",'

%if_enabled debug
%add_optflags -DDEBUG=1
%configure \
--with-xinerama \
--with-pango \
--with-gdk-pixbuf \
--with-nine-mousebuttons \

# Fix platform name

sed -ie 's,^sawfishhosttype=.*$,sawfishhosttype=%platform,g' sawfish.pc
%make_build \

%makeinstall_std \

mkdir -p %buildroot{%_datadir/sawfish/site-lisp,%_sysconfdir/menu-methods,%_x11sysconfdir/{wmsession.d,sawfish/site-init.d},%_pixmapsdir}

install -p -m644 sawfish-48.xpm %buildroot%_pixmapsdir/sawfish.xpm

install -p -m755 menu-method %buildroot%_sysconfdir/menu-methods/sawfish

install -p -m644 altlinux/site-init.jl %buildroot%_datadir/sawfish/site-lisp/
install -p -m644 altlinux/defaults.jl %buildroot%_x11sysconfdir/sawfish/site-init.d/00defaults.jl
install -p -m644 altlinux/menu.jl %buildroot%_x11sysconfdir/sawfish/site-init.d/00menu.jl

mkdir -p %buildroot%_rpmmacrosdir
cat <<EOF >%buildroot%_rpmmacrosdir/sawfish
%%sawfish_version %version
%%sawfish_version_release %version-%release

%%sawfish_dir %_datadir/sawfish

%%sawfish_sitelispdir %_datadir/sawfish/site-lisp
%%sawfish_sitethemedir %_datadir/sawfish/themes
%%sawfish_sitesoundsdir %_datadir/sawfish/sounds

cat <<EOF > %buildroot%_x11sysconfdir/wmsession.d/%PRIO%name
DESC=Sawfish Window Manager
exec %_bindir/sawfish

mkdir -p %buildroot%_rpmlibdir
cat <<EOF >%buildroot%_rpmlibdir/sawfish-files.req.list
# sawfish dirlist for %_rpmlibdir/files.req

%_x11sysconfdir/sawfish/site-init.d sawfish
%_datadir/sawfish/site-lisp sawfish
%_datadir/sawfish/sounds sawfish
%_datadir/sawfish/themes sawfish

%find_lang %name

%files -f %name.lang
%config %_x11sysconfdir/wmsession.d/%PRIO%name
%dir %_x11sysconfdir/sawfish
%dir %_x11sysconfdir/sawfish/site-init.d
%config %_x11sysconfdir/sawfish/site-init.d/00*
%config %_sysconfdir/menu-methods/sawfish
%dir %_datadir/sawfish
%dir %_datadir/sawfish/%version
%dir %_libdir/sawfish
%dir %_libdir/sawfish/%version
%dir %_libdir/sawfish/%version/%platform
%dir %_datadir/sawfish/site-lisp
%dir %_datadir/sawfish/themes
%dir %_datadir/sawfish/sounds

%files gnome

%if 0
%files themer

%files devel

%files -n rpm-build-%name

* Sun May 23 2010 Alexey I. Froloff <raorn at> 1.6.3-alt2
- Native dockapps support

* Sat May 22 2010 Alexey I. Froloff <raorn at> 1.6.3-alt1
- [1.6.3]

* Tue Feb 16 2010 Alexey I. Froloff <raorn at> 1.6.2-alt1
- [1.6.2]

* Sun Feb 14 2010 Alexey I. Froloff <raorn at> 1.6.1-alt1
- [1.6.1]
- devel subpackage

* Wed Nov 25 2009 Alexey I. Froloff <raorn at> 1.5.3-alt1
- [1.5.3]

* Fri May 01 2009 Alexey I. Froloff <raorn at> 1.5.0-alt0.r4474.1
- SVN revision 4474 (trunk)
- Packaged couple of README's

* Sat Apr 25 2009 Alexey I. Froloff <raorn at>
- SVN revision 4456 (branches/sawfish-1.3)
+ Dropped GNOME widget support (removed form rep-gtk)
- Use menu-messages catalog for menu translations
- sawfish.desktop moved to -gnome subpackage
- Translate option descriptions in sawfish-ui

* Sat Dec 27 2008 Sir Raorn <raorn at> 1.3.5-alt2
- Rebuilt with new librep
- Sanitized platform name
- Fixed client connection (closes: #18361)
- Dropped invalid el translation from .desktop files (noted by repocop)
- Dropped %%sawfish_execdir macro since 3rd-party sawfish extensions
can not be created
- Use files.req for 3rd-party script dependencies

* Fri Dec 26 2008 Sir Raorn <raorn at> 1.3.5-alt1
- [1.3.5]

* Sun Dec 07 2008 Sir Raorn <raorn at> 1.3.4-alt3
- Updated build dependencies
- Removed obsolete update_*/clean_* calls from post-scripts

* Wed Nov 12 2008 Sir Raorn <raorn at> 1.3.4-alt2
- Provide gnome-wm (closes: #15948)
- GNOME instegration updated for recent gnome-session changes

* Sun Sep 21 2008 Sir Raorn <raorn at> 1.3.4-alt1
- [1.3.4]
+ Removed obsolete GNOME capplet and configuration menu entries
+ New themes:
o Elberg-tabbed
o get-S-tabbed
o mxflat

* Sat May 31 2008 Sir Raorn <raorn at> 1.3.3-alt1
- Built for Sisyphus

The Geyser project is based on code from Prometheus2.0, which had been made available under the MIT License.