Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > aada75446d1e3525317c829089d8ba51 > files > 15

sawfish-1.3-4mdk.src.rpm

%define libver		0.16.2
%define repver		0.17
%define x11bindir	%{_prefix}/X11R6/bin


Name:		sawfish
Summary:	An extensible window manager for the X Window System
Version:	1.3
Release:	4mdk
Epoch:      	2
License:	GPL
Group:		Graphical desktop/Sawfish
BuildRequires:	gmp-devel gpm-devel ncurses-devel 
BuildRequires:  readline-devel 
BuildRequires:  librep-devel >= %{libver} 
Buildrequires:  texinfo
BuildRequires:  rep-gtk >= %{repver}
BuildRequires:  libgtk+2.0-devel
BuildRequires:  libesound-devel
#BuildRequires:  rep-gtk-gnome >= %{repver}, rep-gtk-libglade >= %{repver}
URL:		http://sawmill.sourceforge.net/

Source:		%{name}-%{version}.tar.bz2
Source1:	HeliX.tar.bz2
Source2:	sawfish-site-init-mdk.jl.bz2
Source3:	http://www.acemake.com/hagbard/archives/sawfish.el.bz2
Source4:	sawfish-menu-method.bz2
Source5:	%{name}.png.bz2
Source6:	%{name}-32.png.bz2
Source8:	%{name}-icons.tar.bz2
Source9:	startsawfish.bz2
Source10:	%{name}-48.png.bz2
Source11:   ws-background.jl.bz2
Source12:	sawfish-menu.jl.bz2
Source13:   sawfish-defaults.jl.bz2
Patch0:		sawfish-0.37.3-xterm.patch.bz2
#gw use the mdk menu under gnome2
Patch1:		sawfish-1.3-gnome2-menu.patch.bz2
# (fc) 1.0.1-4mdk custom-default settings for sawfish (previously as source7)
Patch3:     sawfish-1.0.1-custom-defaults.patch.bz2

Requires:	librep >= %{libver}, rep-gtk >= %{repver}
#, rep-gtk-gnome >= %{repver}
PreReq:		/sbin/install-info
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
Obsoletes:	sawmill, sawmill-gnome, sawfish-gnome
Provides:   sawmill, sawmill-gnome, sawfish-gnome
Provides:	windowmanager
Obsoletes: sawfish-themer
Provides: sawfish-themer


%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 themer
Summary:	A GUI for creating sawfish window manager themes.
Group:		Graphical desktop/Sawfish
Requires:	%{name} = %{version}, rep-gtk-libglade >= %{repver}
Obsoletes:	sawmill-themer
Provides:	sawmill-themer

%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.


%prep
%setup -q
%patch0 -p1 -b .xterm
%patch1 -p1 -b .menu
%patch3 -p1 -b .defaults


%build
%configure2_5x --with-readline --bindir=%{x11bindir} 

# don't use make macro, parallel compilation is broken
make host_type=%{_target_platform}

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_datadir}/gnome/wm-properties
mkdir -p %{buildroot}%{x11bindir}

%makeinstall_std host_type=%{_target_platform}

mkdir -p %{buildroot}%{_datadir}/{emacs,sawfish}/site-lisp/ %{buildroot}%{_sysconfdir}/X11/sawfish/site-init.d
bzcat %{SOURCE2} > %{buildroot}%{_datadir}/sawfish/site-lisp/site-init.jl
bzcat %{SOURCE3} > %{buildroot}%{_datadir}/emacs/site-lisp/sawfish.el
bzcat %{SOURCE11} > %{buildroot}%{_datadir}/sawfish/site-lisp/ws-background.jl
bzcat %{SOURCE12} > %{buildroot}%{_sysconfdir}/X11/sawfish/site-init.d/00menu.jl
bzcat %{SOURCE13} > %{buildroot}%{_sysconfdir}/X11/sawfish/site-init.d/00defaults.jl
touch %{buildroot}%{_sysconfdir}/X11/%{name}/mandrake-menu.jl

mkdir -p %{buildroot}%{_sysconfdir}/X11/%{name}
mkdir -p %{buildroot}%{_datadir}/{pixmaps,sawfish/themes}
install -m644 %{SOURCE1} %{buildroot}%{_datadir}/sawfish/themes/
bzcat %{SOURCE8} | tar xvf - -C %{buildroot}%{_datadir}/pixmaps

mkdir -p %{buildroot}%{_menudir}
mkdir -p %{buildroot}%{_sysconfdir}/menu-methods
cat << EOF > %{buildroot}%{_menudir}/%{name}
?package(%{name}): \
  needs=wm\
  section=Session/Windowmanagers\
  title=Sawfish\
  longtitle="Sawfish WindowManager" \
  icon=sawfish.png\
  command=%{x11bindir}/sawfish
EOF
bzcat %{SOURCE4} > %{buildroot}%{_sysconfdir}/menu-methods/%{name}

# icon
mkdir -p %{buildroot}%{_miconsdir}
mkdir -p %{buildroot}%{_liconsdir}
bzcat %{SOURCE5} > %{buildroot}%{_miconsdir}/%{name}.png
bzcat %{SOURCE6} > %{buildroot}%{_iconsdir}/%{name}.png
bzcat %{SOURCE10} > %{buildroot}%{_liconsdir}/%{name}.png

mkdir -p %{buildroot}%{_sysconfdir}/X11/wmsession.d
cat << EOF > %{buildroot}%{_sysconfdir}/X11/wmsession.d/08Sawfish
NAME=Sawfish
ICON=sawfish.png
DESC=The Sawfish Window Manager
EXEC=%{x11bindir}/startsawfish
SCRIPT:
exec %{x11bindir}/startsawfish
EOF

bzcat %{SOURCE9} > %{buildroot}/%{x11bindir}/start%{name}

%{find_lang} %{name}

%post
#gpw: create the menu file to make rpmlint shut up
touch %{_sysconfdir}/X11/%{name}/mandrake-menu.jl
%update_menus
%_install_info sawfish.info
%make_session
/sbin/ldconfig


%preun
%_remove_install_info sawfish.info

%postun
%clean_menus
%make_session
/sbin/ldconfig


%clean
rm -rf %{buildroot}


%files -f %{name}.lang
%defattr(-,root,root)
%doc BUGS COPYING INSTALL README NEWS FAQ THANKS TODO 
%doc po/sawfish.pot
%doc lisp/sawfish/ui/WIDGETS lisp/sawfish/ui/WISHLIST
%{x11bindir}/sawfish
%{x11bindir}/sawfish-client
%{x11bindir}/sawfish-ui
%attr(755,root,root) %{x11bindir}/startsawfish
%{_libexecdir}/%{name}
%{_libexecdir}/rep/*/%{name}
%{_datadir}/gnome/wm-properties/Sawfish.desktop
%{_datadir}/sawfish
%{_datadir}/emacs/site-lisp/*
%{_datadir}/pixmaps/*
%{_iconsdir}/sawfish.png
%{_liconsdir}/sawfish.png
%{_miconsdir}/sawfish.png
%{_infodir}/sawfish*
%attr(755,root,root) %config(noreplace) %{_sysconfdir}/menu-methods/%{name}
%config(noreplace) %{_sysconfdir}/X11/wmsession.d/*
%{_menudir}/%{name}
%dir %{_sysconfdir}/X11/%{name}
%dir %{_sysconfdir}/X11/%{name}/site-init.d
%config(noreplace) %{_sysconfdir}/X11/%{name}/site-init.d/*
%ghost %{_sysconfdir}/X11/%{name}/mandrake-menu.jl

#%files themer
#%defattr(-,root,root)
#%{x11bindir}/sawfish-themer
#%{_datadir}/sawfish/%{version}/themer.glade


%changelog
* Wed Dec  8 2004 Götz Waschk <waschk@linux-mandrake.com> 1.3-4mdk
- rebuild for libgdbm3

* Sun Jan 25 2004 Götz Waschk <waschk@linux-mandrake.com> 1.3-3mdk
- patch to use the mdk gnome menu

* Wed Mar 26 2003 Götz Waschk <waschk@linux-mandrake.com> 1.3-2mdk
- fix the rpmlint warning about the ghost file
- spec cleanup
- build for i586 instead of i686

* Tue Mar 25 2003 Götz Waschk <waschk@linux-mandrake.com> 1.3-1mdk
- update file list
- drop the merged patches 1 and 4
- new version

* Wed Mar 12 2003 Götz Waschk <waschk@linux-mandrake.com> 1.2-4mdk
- fix buildrequires

* Thu Feb 27 2003 Götz Waschk <waschk@linux-mandrake.com> 1.2-3mdk
- patch to build with gtk+2.2
- new librep

* Mon Nov 18 2002 Levi Ramsey <leviramsey@linux-mandrake.com> 1.2-2mdk
- add patch from Sawfish CVS to fix issues with some fullscreen apps
    (mplayer et al)
- change icons to pngs

* Fri Nov 15 2002 Götz Waschk <waschk@linux-mandrake.com> 1.2-1mdk
- provide sawfish-themer for rpmlint
- fix build with libXft2
- buildrequires libgdk_pixbuf2.0-devel, libXft2-devel, libgtk+2.0-devel
- requires rep-gtk 0.17
- new version

* Fri Aug  9 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.1a-2mdk
- Recompiled against latest librep/rep-gtk

* Mon Jul  1 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.1a-1mdk
- Release 1.1a (which is greater than 2.0 :((

* Mon Jun 24 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 2.0-1mdk
- Release 2.0

* Wed Jun 12 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0.1-9.20020611.1mdk
- new snapshot

* Tue Jun  4 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0.1-9.20020524.1mdk
- new snapshot
- put ws-background back
- Remove patch 4 (merged upstream)

* Fri May  3 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0.1-9.20020502.1mdk
- GNOME 2 cvs snapshot
- Remove patches 1, 2 (merged upstream), 4 (no longer needed)
- Remove source 14 (merged upstream)
- Regenerate patch 0
- Obsoletes sawfish-themer now, it has not been updated to GNOME 2 yet

* Fri May  3 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0.1-8mdk
- Switch back to 1.0.1
- Remove patch 1 & 4 (merged upstream)


* Tue Mar 12 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0-9mdk
- Reverting to 1.0 version, too many things are broken in 1.0.1
- Readd patch 1 & 4

* Wed Feb 27 2002 Pablo Saratxaga <pablo@mandrakesoft.com> 1.0.1-7mdk
- integrated Basque translation

* Wed Feb 20 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0.1-6mdk
- Update patch3: fix default focus to be click focus with autoraise

* Mon Feb 18 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0.1-5mdk
- Patch3 : replace Source7 and disable tooltips, they are more annoying than helpful

* Thu Jan  3 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0.1-4mdk
- Recompiled against latest libcapplet

* Mon Dec 24 2001 Stefan van der Eijk <stefan@eijk.nu> 1.0.1-3mdk
- BuildRequires

* Mon Dec  3 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0.1-2mdk
- Patch 1 (CVS): fix dock in GNOME

* Thu Oct 25 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0.1-1mdk
- Release 1.0.1
- Remove patches 1 & 2 (merged upstream)

* Tue Oct 23 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0-8mdk
- Fix sawfish-themer dependency (thanks to Michael Reinsch)
- Fix rpmlint errors

* Tue Oct 16 2001 Renaud Chaillat <rchaillat@mandrakesoft.com> 1.0-7mdk
- rebuilt with libpng3

* Wed Sep 19 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0-6mdk
- Fix startsawfish to use correct color

* Fri Sep 14 2001 Pablo Saratxaga <pablo@mandrakesoft.com> 1.0-5mdk
- rebuild including latest translations

* Fri Sep 14 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0-4mdk
- Patch2: fixes various bugs

* Fri Aug 10 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0-2mdk
- Disable gdk-pixbuf (seems to be unstable ..)

* Sat Jul 14 2001 Stefan van der Eijk <stefan@eijk.nu> 1.0-2mdk
- BuildRequires:      db1-devel
- Removed BuildRequires:      ORBit-devel
- Removed BuildRequires:      XFree86-devel
- Removed BuildRequires:      audiofile-devel
- Removed BuildRequires:      esound-devel
- Removed BuildRequires:      gdk-pixbuf-xlib
- Removed BuildRequires:      gnome-libs-devel
- Removed BuildRequires:      imlib-devel
- Removed BuildRequires:      libjpeg-devel
- Removed BuildRequires:      libpng-devel
- Removed BuildRequires:      librep
- Removed BuildRequires:      libtiff-devel
- Removed BuildRequires:      libungif-devel
- Removed BuildRequires:      rep-gtk
- Removed BuildRequires:      zlib-devel

* Wed Jul 11 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0-1mdk
- Release 1.0

* Tue Jul  3 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 0.99-1mdk
- Release 0.99
- Regenerate patch 1

* Wed Jun 20 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 0.38-4mdk
- Patch1: fix multibyte for some translation (from GNOME CVS)
- Move config files to /etc/X11/sawfish (sync with Debian)
- Fix menu method (sync with Debian)

* Fri Mar 23 2001 Vincent Danen <vdanen@mandrakesoft.com> 0.38-3mdk
- explicitly require gdk-pixbuf-xlib

* Fri Mar 23 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 0.38-2mdk
- Recompiled against gdk-pixbuf instead of imlib
- Correct shortcuts and default theme settings
- Don't remove rpm build dir at clean stage, it is up to --clean option

* Wed Mar 14 2001 Vincent Danen <vdanen@mandrakesoft.com> 0.38-1mdk
- 0.38
- remove obsolete nill patch

* Wed Mar  7 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 0.37.3-3mdk
- Remove dependency against libgmp.so.2

* Fri Mar  2 2001 Vincent Danen <vdanen@mandrakesoft.com> 0.37.3-2mdk
- change all instances of xterm to xvt for alternatives

* Wed Feb 20 2001 Vincent Danen <vdanen@mandrakesoft.com> 0.37.3-1mdk
- 0.37.3

* Fri Feb 16 2001 Vincent Danen <vdanen@mandrakesoft.com> 0.37.2-1mdk
- 0.37.2

* Sun Jan 21 2001 Vincent Danen <vdanen@mandrakesoft.com> 0.36-1mdk
- 0.36
- added Provides: windowmanager
- update custom-defaults.jl for 0.36 syntax

* Sun Jan 07 2001 Vincent Danen <vdanen@mandrakesoft.com> 0.35-1mdk
- 0.35

* Mon Dec 11 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.34-2mdk
- fix ws-background.jl so background switching works again

* Fri Dec  8 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.34-1mdk
- 0.34

* Mon   Nov 13 2000 Daouda Lo <daouda@mandrakesoft.com> 0.33-2mdk
- sawfish shouldn't be owner of  /usr/share/icons

* Thu Nov 09 2000 Daouda Lo <daouda@mandrakesoft.com> 0.33-1mdk
- release

* Mon Nov  6 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.32-3mdk
- rebuild for new libstdc++
- dependency for librep-0.13.2

* Sat Nov 04 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.32-2mdk
- add longtitle to menu

* Fri Oct 20 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.32-1mdk
- 0.32
- add find_lang macro

* Sun Oct 15 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.31.1-4mdk
- syntax error in ws-backgrounds.jl 'workspace -> 'sawfish.wm.workspace

* Wed Oct 11 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.31.1-3mdk
- fix custom defaults placement (was in wrong dir)
- re-generated custom defaults due to lisp changes
- remove old buildroot during %%build instead of %%install

* Tue Oct 10 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.31.1-2mdk
- fix improper ownership of /usr/share/icons

* Mon Oct 09 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.31.1-1mdk
- 0.31.1

* Sun Oct 08 2000 David BAUDENS <baudens@mandrakesoft.com> 0.30.3-17mdk
- Fix move window with mouse (Linux-Mandrake UI charter compliant)

* Wed Oct  4 2000 Frederic Crozat <fcrozat@mandrakesoft.com> 0.30.3-16mdk
- Update for more backgrounds

* Tue Oct  3 2000 Frederic Crozat <fcrozat@mandrakesoft.com> 0.30.3-15mdk
- Add background change on workspace

* Mon Sep 25 2000 Renaud Chaillat <rchaillat@mandrakesoft.com> 0.30.3-14mdk
- added requirement for rep-gtk-gnome (without it sawfish capplet is 
  broken)

* Fri Sep  8 2000 Frederic Crozat <fcrozat@mandrakesoft.com> 0.30.3-13mdk
- Change font and time for tooltips
- use more macros

* Thu Aug 31 2000 Frederic Crozat <fcrozat@mandrakesoft.com> 0.30.3-12mdk
- Fix wmsession again

* Thu Aug 30 2000 David BAUDENS <baudens@mandrakesoft.com> 0.30.3-11mdk
- Fix wmsession

* Wed Aug 30 2000 Frederic Crozat <fcrozat@mandrakesoft.com> 0.30.3-10mdk
- Change default settings (keybinding, number of desktop)

* Tue Aug 29 2000 Frederic Crozat <fcrozat@mandrakesoft.com> 0.30.3-9mdk
- Move binaries to /usr/X11R6/bin
- Correct menu load when gnome is not started

* Wed Aug 16 2000 David BAUDENS <baudens@mandrakesoft.com> 0.30.3-8mdk
- Fix menu entry

* Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 0.30.3-7mdk
- automatically added BuildRequires

* Sat Aug  5 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.30.3-6mdk
- fix site-init-mdk.jl
- merge with author's specfile
- custom-defaults were causing problems so created entirely new one based
  on 0.30.3 (previous was 0.24?!?)

* Thu Aug  3 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.30.3-5mdk
- force version requirements for librep and rep-gtk

* Thu Aug  3 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.30.3-5mdk
- add some default shortcuts

* Tue Aug  1 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.30.3-4mdk
- 6Sawfish to 6sawfish

* Sun Jul 30 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.30.3-3mdk
- put 6Sawfish back in (ooops)

* Thu Jul 27 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.30.3-2mdk
- remove capplet package since sawfish includes it's own
- remove 6Sawfish from package

* Thu Jul 27 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.30.3-1mdk
- 0.30.3
- add BuildPreReq: texinfo
- please use rep-gtk-0.13a-3mdk and librep-0.12.4-2mdk due to some
  rpm problems in the previous builds

* Wed Jul 19 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.30.2-2mdk
- rebuild for directory changes

* Sat Jul 15 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.30.2-1mdk
- 0.30.2

* Wed Jul 12 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.30-2mdk
- add /etc/X11/wmsession.d/6Sawfish
- more macroization

* Tue Jul 11 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.30-1mdk
- 0.30
- make themer a seperate package again
- merge gnome support into main package (this makes it like author's)

* Mon Jul 10 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.29-1mdk
- 0.29
- macroization
- many other specfile cleanups

* Tue May 23 2000 Vincent Danen <vdanen@linux-mandrake.com> 0.27.2-2mdk
- update BuildPreReq to include rep-gtk and rep-gtk-gnome

* Thu May 11 2000 Vincent Danen <vdanen@linux-mandrake.com> 0.27.2-1mdk
- 0.27.2

* Thu May 11 2000 Vincent Danen <vdanen@linux-mandrake.com> 0.27.1-1mdk
- added BuildPreReq
- change name from Sawmill to Sawfish
- change Group
- replace sawmill.el with sawfish.el
- renamed sawmill-menu-method to sawfish-menu-method and fixed
- renamed icons
- updated desktop menus
- remove nobeep, capplet and foobar patches (code fixed)
- Obsoletes sawmill
- 0.27.1

* Thu May 11 2000 Daouda Lo <daouda@mandrakesoft.com> 0.26-5mdk
- fix the silly window no value bug ! no beep at all !
- sawmill icons in control center finally appear!
- Many cleanups !

* Mon May  1 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.26-4mdk
- added icons to menu entry

* Fri Apr 28 2000 dam's <damien@mandrakesoft.com> 0.26-3mdk
- added fndSession call.

* Wed Apr 19 2000 Lenny Cartier <lenny@mandrakesoft.com> 0.26-2mdk
- re-include sawmill themer in the main package since its light
- fix filelist

* Tue Apr 18 2000 Vincent Danen <vdanen@linux-mandrake.com> 0.26-1mdk 
- fix group
- applied helixcode gnome patches and mandrake optimization
- remove sawmill-themer component (obsoletes it, is included in main sawmill
  package)

* Mon Apr 10 2000 Vincent Danen <vdanen@linux-mandrake.com>
- fix prefix

* Sun Mar 19 2000 Vincent Danen <vdanen@linux-mandrake.com>
- 0.25.2

* Sat Mar 11 2000 Vincent Danen <vdanen@linux-mandrake.com>
- requires new versions of librep and rep-gtk
- included the Sawmill settings in gnome/apps

* Sat Mar 11 2000 Vincent Danen <vdanen@linux-mandrake.com>
- specfile cleanups
- 0.25.1

* Mon Feb 14 2000 Vincent Danen <vdanen@linux-mandrake.com>
- 0.24

* Fri Feb 04 2000 Lenny Cartier <lenny@mandrakesoft.com>
- new in contribs
- used another great srpm provided by Vincent Danen <vdanen@linux-mandrake.com>

* Sun Jan 30 2000 Vincent Danen <vdanen@linux-mandrake.com>
- initial specfile
- bzip sources