%define prefix /usr/X11R6 Name: fvwm Version: 1.24r Summary: An X Window System based window manager Release: 25mdk License: GPL Group: Graphical desktop/FVWM based BuildRequires: XFree86-devel xpm-devel XFree86 Requires: fvwm2-icons URL: http://www.fvwm.org/ Source0: sunsite.unc.edu:/pub/Linux/X11/window-managers/%{name}-%{version}.tar.bz2 Source1: %{name}-%{version}-system-menu.fvwmrc.bz2 Source2: fvwm1.menu-method.bz2 Source3: %{name}.icon-48.png Source4: %{name}.icon-32.png Source5: %{name}.icon-16.png Patch0: %{name}-%{version}-fsstnd.patch.bz2 Patch1: %{name}-%{version}-imake.patch.bz2 Patch2: %{name}-%{version}-security.patch.bz2 Patch3: %{name}-%{version}-fvwmman.patch.bz2 Patch4: %{name}-%{version}-menu-100.patch.bz2 Buildroot: %{_tmppath}/%{name}-%{version}-root %description FVWM (the F stands for whatever you want, but the VWM stands for Virtual Window Manager) is a window manager for the X Window System. FVWM was derived from the twm window manager. FVWM is designed to minimize memory consumption, to provide window frames with a 3D look, and to provide a simple virtual desktop. FVWM can be configured to look like Motif. Install the fvwm package if you'd like to use the FVWM window manager. If you install fvwm, you'll also need to install fvwm2-icons. %prep %setup -q %patch0 -p1 -b .fsstnd %patch1 -p1 -b .imake %patch2 -p1 -b .security %patch3 -p1 -b .fvwmman %patch4 -p1 install -m644 %{SOURCE3} %{name}-48.png install -m644 %{SOURCE4} %{name}-32.png install -m644 %{SOURCE5} %{name}-16.png # fix strange perms chmod 644 sample.fvwmrc/* %build export PATH=$PATH:/usr/X11R6/bin xmkmf perl -p -i -e "s|CXXDEBUGFLAGS = .*|CXXDEBUGFLAGS = $RPM_OPT_FLAGS|" Makefile perl -p -i -e "s|CDEBUGFLAGS = .*|CDEBUGFLAGS = $RPM_OPT_FLAGS|" Makefile make Makefiles perl -p -i -e "s|CXXDEBUGFLAGS = .*|CXXDEBUGFLAGS = $RPM_OPT_FLAGS|" */Makefile perl -p -i -e "s|CDEBUGFLAGS = .*|CDEBUGFLAGS = $RPM_OPT_FLAGS|" */Makefile perl -p -i -e "s|CXXDEBUGFLAGS = .*|CXXDEBUGFLAGS = $RPM_OPT_FLAGS|" */*/Makefile perl -p -i -e "s|CDEBUGFLAGS = .*|CDEBUGFLAGS = $RPM_OPT_FLAGS|" */*/Makefile %make %install rm -rf $RPM_BUILD_ROOT make install install.man DESTDIR=$RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/etc/X11/fvwm/ rm -f $RPM_BUILD_ROOT/etc/X11/fvwm/system.fvwmrc mkdir -p $RPM_BUILD_ROOT%_menudir cat << EOF > $RPM_BUILD_ROOT%_menudir/%{name} ?package(fvwm):\ needs=wm\ section=Session/Windowmanagers\ title="Fvwm"\ longtitle="FVWM Windows manager"\ icon="fvwm.png"\ command="startfvwm" EOF mkdir -p $RPM_BUILD_ROOT/etc/X11/fvwm bzcat %{SOURCE1} > $RPM_BUILD_ROOT/etc/X11/fvwm/system.fvwmrc-menu mkdir -p $RPM_BUILD_ROOT/etc/menu-methods/ bzcat %{SOURCE2} > $RPM_BUILD_ROOT/etc/menu-methods/%{name} chmod a+x $RPM_BUILD_ROOT/etc/menu-methods/%{name} # icons install -D -m 644 %{name}-16.png $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png install -D -m 644 %{name}-32.png $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png install -D -m 644 %{name}-48.png $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png mkdir -p $RPM_BUILD_ROOT/etc/X11/wmsession.d/ cat << EOF > $RPM_BUILD_ROOT/etc/X11/wmsession.d/10Fvwm1 NAME=Fvwm1 EXEC=%prefix/bin/startfvwm DESC=A very stable and light window manager SCRIPT: exec %prefix/bin/startfvwm EOF # 1.24r-24mdk: add startfvwm script to set cursor (defaults to wait) # is this the right way to set the cursor? cat > $RPM_BUILD_ROOT%{prefix}/bin/startfvwm << EOF %{_prefix}/X11R6/bin/xsetroot -cursor_name left_ptr exec %{prefix}/bin/fvwm EOF chmod 755 $RPM_BUILD_ROOT%{prefix}/bin/startfvwm %post %update_menus %make_session %postun %clean_menus %make_session %clean rm -fr $RPM_BUILD_ROOT %files %defattr(-,root,root) %config(noreplace) /etc/menu-methods/%{name} %dir /etc/X11/fvwm %config(noreplace) /etc/X11/fvwm/system.fvwmrc-menu %config(noreplace) /etc/X11/wmsession.d/10Fvwm1 %doc sample.fvwmrc/* %_menudir/%{name} %{_iconsdir}/%{name}.png %{_miconsdir}/%{name}.png %{_liconsdir}/%{name}.png %prefix/lib/X11/fvwm %prefix/bin/fvwm %prefix/bin/startfvwm %prefix/man/*/* %changelog * Thu Feb 26 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 1.24r-25mdk - own /etc/X11/fvwm * Mon Dec 29 2003 Marcel Pol <mpol@mandrake.org> 1.24r-24mdk - add startfvwm script to set cursor - unzip icons * Sat Mar 15 2003 Marcel Pol <mpol@gmx.net> 1.24r-23mdk - buildrequires: XFree86 * Mon Mar 11 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.24r-22mdk - resurrected by popular demand - s/Copyright/License/ - used png icons * Mon Jan 07 2002 David BAUDENS <baudens@mandrakesoft.com> 1.24r-21mdk - Rebuild * Mon Nov 13 2000 David BAUDENS <baudens@mandrakesoft.com> 1.24r-20mdk - Build with glibc-2.2 & gcc-2.96 * Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.24r-19mdk - automatically added BuildRequires * Wed Jul 12 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.24r-18mdk - Add support for the new chksession. * Sun May 13 2000 David BAUDENS <baudens@mandrakesoft.com> 1.24r-17mdk - Fix build for i486 * Tue May 2 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.24r-16mdk - moved icons' ratio to 1.0 because some wm won't resize keeping aspect ratio - added a mini icon * Mon May 1 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.24r-15mdk - fixed postun script - added url - added icons - cleaned up specfile - removed version in menu entry * Fri Apr 28 2000 damien <damien@mandrakesoft.com> 1.24r-14mdk - added fndSession call. * Fri Apr 7 2000 DindinX <odin@mandrakesoft.com> 1.24r-13mdk - Still better default configuration - Added support for the 'Menu' key. * Wed Apr 5 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.24r-12mdk - Better default configuration. - Menu can do more than 50 entry. - Add menu support. * Mon Mar 27 2000 DindinX <odin@mandrakesoft.com> 1.24r-11mdk - Spec fixes * Wed Jan 12 2000 Pixel <pixel@mandrakesoft.com> - fix build as non-root (defattr) * Wed Nov 03 1999 Jerome Martin <jerome@mandrakesoft.com> - rebuild for new distribution - minor specfile cleanup * Tue May 11 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com> - Mandrake adaptions * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 17) * Wed Dec 30 1998 Cristian Gafton <gafton@redhat.com> - build for glibc 2.1 * Thu May 07 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr * Fri May 01 1998 Cristian Gafton <gafton@redhat.com> - tagged config files correctly - buildroot * Thu Oct 23 1997 Cristian Gafton <gafton@redhat.com> - fixed it for AnotherLevel (icon paths, etc) * Thu Jul 10 1997 Erik Troan <ewt@redhat.com> - built against glibc * Mon Mar 24 1997 Michael Fulbright <msf@redhat.com> - Fixed system.fvwmrc to point at /usr/X11R6/include/X11/bitmaps and pixmaps. Fvwm wasn't find icons otherwise, which is why they disappeared if someone upgraded from 4.0 to 4.1!