Group :: Desktop gráfico/Sawfish
RPM: sawfish
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
# vim: set ft=spec: -*- rpm-spec -*-
%define platform %(%_datadir/automake/config.sub %_target_platform | sed -e 's,-%_vendor,,')
%define rep_archlibdir %(rep-config --execdir)
%define _libexecdir %_usr/libexec
%define PRIO 05
Name: sawfish
Version: 1.3.5.2
Release: alt1
Summary: An extensible window manager for the X Window System
Group: Graphical desktop/Sawfish
License: GPLv2
Url: http://sawfish.wikia.com/
Packager: Sir Raorn <raorn at altlinux.org>
Requires: rep-gtk >= 0.18-alt4
Provides: %_x11sysconfdir/%name/site-init.d
Provides: %_datadir/%name/site-lisp
Provides: %_datadir/%name/sounds
Provides: %_datadir/%name/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-ui
%add_findreq_skiplist %_libexecdir/%name/%version/%platform/sawfish-about
%add_findreq_skiplist %_libexecdir/%name/%version/%platform/sawfish-menu
%add_findreq_skiplist %_datadir/%name/%version/lisp/*
# Automatically added by buildreq on Mon Apr 27 2009
BuildRequires: libSM-devel libXext-devel libXinerama-devel libXrandr-devel libaudiofile-devel libgtk+2-devel librep-devel rep-gtk-devel
%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.
%package gnome
Summary: GNOME integration package
Group: Graphical desktop/GNOME
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 -n rpm-build-%name
Summary: RPM macros for sawfish-related packages
Group: Development/Other
Conflicts: %name < %version-%release
Conflicts: %name > %version-%release
%description -n rpm-build-%name
RPM macros for sawfish-related packages.
%prep
%setup
%patch -p1
cp -pfv %_datadir/automake/config.{guess,sub} .
%build
%autoreconf
%configure \
--with-gdk-pixbuf \
--with-audiofile \
--without-esd
%make_build \
host_type=%platform
%install
%make_install \
host_type=%platform \
DESTDIR=%buildroot \
install
mkdir -p %buildroot{%_datadir/%name/site-lisp,%_sysconfdir/{menu-methods,rpm/macros.d},%_x11sysconfdir/{wmsession.d,%name/site-init.d}}
install -p -m644 sawfish-48.xpm %buildroot%_pixmapsdir/sawfish.xpm
install -p -m755 menu-method %buildroot%_sysconfdir/menu-methods/%name
install -p -m644 altlinux/site-init.jl %buildroot%_datadir/%name/site-lisp/
install -p -m644 altlinux/defaults.jl %buildroot%_x11sysconfdir/%name/site-init.d/00defaults.jl
install -p -m644 altlinux/menu.jl %buildroot%_x11sysconfdir/%name/site-init.d/00menu.jl
install -p -m644 altlinux/gnome-defaults.jl %buildroot%_x11sysconfdir/%name/site-init.d/01gnome.jl
cat <<EOF >%buildroot%_sysconfdir/rpm/macros.d/%name
%%sawfish_version %version
%%sawfish_version_release %version-%release
%%sawfish_dir %_datadir/%name
%%sawfish_sitelispdir %_datadir/%name/site-lisp
%%sawfish_sitethemedir %_datadir/%name/themes
%%sawfish_sitesoundsdir %_datadir/%name/sounds
EOF
cat <<EOF > %buildroot%_x11sysconfdir/wmsession.d/%PRIO%name
NAME=Sawfish
ICON=%_pixmapsdir/sawfish.xpm
DESC=Sawfish Window Manager
EXEC=%_bindir/sawfish
SCRIPT:
exec %_bindir/sawfish
EOF
mkdir -p %buildroot%_rpmlibdir
cat <<EOF >%buildroot%_rpmlibdir/sawfish-files.req.list
# sawfish dirlist for %_rpmlibdir/files.req
%_x11sysconfdir/%name/site-init.d sawfish
%_datadir/%name/site-lisp sawfish
%_datadir/%name/sounds sawfish
%_datadir/%name/themes sawfish
EOF
%find_lang %name
%post
%install_info sawfish.info
%preun
%uninstall_info sawfish.info
%files -f %name.lang
%config %_x11sysconfdir/wmsession.d/%PRIO%name
%dir %_x11sysconfdir/%name
%dir %_x11sysconfdir/%name/site-init.d
%config %_x11sysconfdir/%name/site-init.d/00*
%config %_sysconfdir/menu-methods/%name
%_bindir/sawfish
%_bindir/sawfish-client
%_bindir/sawfish-ui
%rep_archlibdir/*
%dir %_datadir/%name
%dir %_datadir/%name/%version
%dir %_libexecdir/%name
%dir %_libexecdir/%name/%version
%dir %_libexecdir/%name/%version/%platform
%_libexecdir/%name/%version/%platform/*
%dir %_datadir/%name/site-lisp
%_datadir/%name/site-lisp/site-init.jl
%dir %_datadir/%name/themes
%dir %_datadir/%name/sounds
%_datadir/%name/%version/lisp
%_datadir/%name/%version/themes
%_datadir/%name/%version/sounds
%_datadir/%name/%version/monitor.png
%_pixmapsdir/*
%_infodir/sawfish.info*
%files gnome
%config %_x11sysconfdir/%name/site-init.d/01*
%_desktopdir/sawfish.desktop
%if 0
%files themer
%_bindir/sawfish-themer
%_datadir/%name/%version/themer.glade
%endif
%files -n rpm-build-%name
%config %_sysconfdir/rpm/macros.d/%name
%_rpmlibdir/sawfish-files.req.list
%changelog
…
Todas as alterações você pod ver aqui
%define platform %(%_datadir/automake/config.sub %_target_platform | sed -e 's,-%_vendor,,')
%define rep_archlibdir %(rep-config --execdir)
%define _libexecdir %_usr/libexec
%define PRIO 05
Name: sawfish
Version: 1.3.5.2
Release: alt1
Summary: An extensible window manager for the X Window System
Group: Graphical desktop/Sawfish
License: GPLv2
Url: http://sawfish.wikia.com/
Packager: Sir Raorn <raorn at altlinux.org>
Requires: rep-gtk >= 0.18-alt4
Provides: %_x11sysconfdir/%name/site-init.d
Provides: %_datadir/%name/site-lisp
Provides: %_datadir/%name/sounds
Provides: %_datadir/%name/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-ui
%add_findreq_skiplist %_libexecdir/%name/%version/%platform/sawfish-about
%add_findreq_skiplist %_libexecdir/%name/%version/%platform/sawfish-menu
%add_findreq_skiplist %_datadir/%name/%version/lisp/*
# Automatically added by buildreq on Mon Apr 27 2009
BuildRequires: libSM-devel libXext-devel libXinerama-devel libXrandr-devel libaudiofile-devel libgtk+2-devel librep-devel rep-gtk-devel
%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.
%package gnome
Summary: GNOME integration package
Group: Graphical desktop/GNOME
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 -n rpm-build-%name
Summary: RPM macros for sawfish-related packages
Group: Development/Other
Conflicts: %name < %version-%release
Conflicts: %name > %version-%release
%description -n rpm-build-%name
RPM macros for sawfish-related packages.
%prep
%setup
%patch -p1
cp -pfv %_datadir/automake/config.{guess,sub} .
%build
%autoreconf
%configure \
--with-gdk-pixbuf \
--with-audiofile \
--without-esd
%make_build \
host_type=%platform
%install
%make_install \
host_type=%platform \
DESTDIR=%buildroot \
install
mkdir -p %buildroot{%_datadir/%name/site-lisp,%_sysconfdir/{menu-methods,rpm/macros.d},%_x11sysconfdir/{wmsession.d,%name/site-init.d}}
install -p -m644 sawfish-48.xpm %buildroot%_pixmapsdir/sawfish.xpm
install -p -m755 menu-method %buildroot%_sysconfdir/menu-methods/%name
install -p -m644 altlinux/site-init.jl %buildroot%_datadir/%name/site-lisp/
install -p -m644 altlinux/defaults.jl %buildroot%_x11sysconfdir/%name/site-init.d/00defaults.jl
install -p -m644 altlinux/menu.jl %buildroot%_x11sysconfdir/%name/site-init.d/00menu.jl
install -p -m644 altlinux/gnome-defaults.jl %buildroot%_x11sysconfdir/%name/site-init.d/01gnome.jl
cat <<EOF >%buildroot%_sysconfdir/rpm/macros.d/%name
%%sawfish_version %version
%%sawfish_version_release %version-%release
%%sawfish_dir %_datadir/%name
%%sawfish_sitelispdir %_datadir/%name/site-lisp
%%sawfish_sitethemedir %_datadir/%name/themes
%%sawfish_sitesoundsdir %_datadir/%name/sounds
EOF
cat <<EOF > %buildroot%_x11sysconfdir/wmsession.d/%PRIO%name
NAME=Sawfish
ICON=%_pixmapsdir/sawfish.xpm
DESC=Sawfish Window Manager
EXEC=%_bindir/sawfish
SCRIPT:
exec %_bindir/sawfish
EOF
mkdir -p %buildroot%_rpmlibdir
cat <<EOF >%buildroot%_rpmlibdir/sawfish-files.req.list
# sawfish dirlist for %_rpmlibdir/files.req
%_x11sysconfdir/%name/site-init.d sawfish
%_datadir/%name/site-lisp sawfish
%_datadir/%name/sounds sawfish
%_datadir/%name/themes sawfish
EOF
%find_lang %name
%post
%install_info sawfish.info
%preun
%uninstall_info sawfish.info
%files -f %name.lang
%config %_x11sysconfdir/wmsession.d/%PRIO%name
%dir %_x11sysconfdir/%name
%dir %_x11sysconfdir/%name/site-init.d
%config %_x11sysconfdir/%name/site-init.d/00*
%config %_sysconfdir/menu-methods/%name
%_bindir/sawfish
%_bindir/sawfish-client
%_bindir/sawfish-ui
%rep_archlibdir/*
%dir %_datadir/%name
%dir %_datadir/%name/%version
%dir %_libexecdir/%name
%dir %_libexecdir/%name/%version
%dir %_libexecdir/%name/%version/%platform
%_libexecdir/%name/%version/%platform/*
%dir %_datadir/%name/site-lisp
%_datadir/%name/site-lisp/site-init.jl
%dir %_datadir/%name/themes
%dir %_datadir/%name/sounds
%_datadir/%name/%version/lisp
%_datadir/%name/%version/themes
%_datadir/%name/%version/sounds
%_datadir/%name/%version/monitor.png
%_pixmapsdir/*
%_infodir/sawfish.info*
%files gnome
%config %_x11sysconfdir/%name/site-init.d/01*
%_desktopdir/sawfish.desktop
%if 0
%files themer
%_bindir/sawfish-themer
%_datadir/%name/%version/themer.glade
%endif
%files -n rpm-build-%name
%config %_sysconfdir/rpm/macros.d/%name
%_rpmlibdir/sawfish-files.req.list
%changelog
…
Todas as alterações você pod ver aqui