Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37837540
en ru br
ALT Linux repos
S:3.4.2-alt1
5.0: 1.2.36-alt2.1
4.1: 1.2.35-alt2.1
4.0: 1.2.32-alt2.1
3.0: 1.2.23-alt1
+backports:1.2.30-alt1.M30.1

Group :: Graphical desktop/Icewm
RPM: icewm

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# -*- mode: rpm-spec; coding: utf-8 -*-
%def_with alsa
%def_with menu

Name: icewm
Version: 1.2.35
Release: alt2.1

Summary: X11 Window Manager
Group: Graphical desktop/Icewm
License: LGPLv2
Url: http://www.icewm.org/
Packager: Evgenii Terechkov <evg at altlinux.ru>

Source: http://download.sourceforge.net/%name/%name-%version.tar.gz
#Source2: themes.tar.bz2
Source3: %name.menu
Source4: %name.menu-method
Source5: %name-16.png
Source6: %name-32.png
Source7: %name-48.png
Source8: start%name
Source9: %name-toolbar
Source10: %name-winoptions
Source11: IceWM.xpm
Source12: %name.wmsession
Source13: %name.alternatives
Source14: README.pager
Source15: README.ALT
Source16: %name.desktop
Source17: restart

Patch0: %name-1.2.0-altconf.patch
Patch3: %name.env-var-in-menu-prog-line.patch
Patch8: %name-1.0.4-cpp-include.patch
Patch9: %name-1.0.4-fonts.patch
Patch10: %name-1.2.28-defconf.patch
Patch12: %name-1.2.0pre1-libsupc++.patch
Patch15: %name-lock-icons.patch
Patch17: %name-alt-hist.patch
Patch18: %name-1.2.14-misc.patch
Patch19: %name-1.2.13-readline-fix.patch
Patch20: %name-1.2.23-reboot.patch
Patch21: %name-1.2.35-aworkspaces-1.6.patch
Patch22: %name-1.2.27-restart_script.patch
Patch23: %name-1.2.30-logouticon.patch
Patch24: %name-amailbox.patch
%if_with alsa
Patch25: %name-1.2.23-alsa.patch
%endif
Patch26: %name-1.2.28-task_bar_length.patch

Patch27: %name-multiByte.patch
Patch28: %name-LANG.menu.patch

Patch30: %name-1.2.28-themes.patch
Patch31: %name-1.2.27-themable_taskWidth_taskButtons_atrayPix_1.2.27.patch

Patch32: %name-1.2.29-icewmtray.patch

Patch36: %name-1.2.30-config-env.patch

Patch37: %name-1.2.30-cpu-stat.patch
Patch38: %name-1.2.30-snapkeys.patch
Patch39: %name-1.2.30-sendkeyevent.patch
Patch40: %name-1.2.30-bool.patch
Patch41: %name-1.2.30-quickswitchtotray.patch
Patch42: %name-1.2.30-strict-aliasing.patch
Patch44: %{name}_taskbar.patch

Patch49: instant_resize_keys.patch
Patch50: more_keys_in_size_move_mode.patch

Patch51: icewm-1.2.32-fdoicon.patch

Patch52: taskbar-title-as-button-name-option.diff

PreReq: alternatives >= 0.2.0
PreReq: %name-light = %version-%release

# Automatically added by buildreq on Wed Nov 08 2006

BuildRequires: gcc-c++ imake imlib-devel libncurses-devel libreadline-devel libSM-devel libsndfile-devel libXft-devel libXinerama-devel libXrandr-devel mkfontdir xorg-cf-files

BuildPreReq: desktop-file-utils

%if_with alsa
BuildPreReq: libsndfile-devel libalsa-devel
%endif

%description
Window Manager for X Window System. Can emulate the look of Windows'95, OS/2
Warp 3,4, Motif or the Java Metal GUI. Tries to take the best features of the
above systems. Features multiple workspaces, opaque move/resize, task bar,
window list, mailbox status, digital clock. Fast and small.

Recommends: iftop, mutt
%package light
Summary: A light version of Icewm
Group: Graphical desktop/Icewm
Requires: design-graphics design-%name >= 1.0-alt3
PreReq: alternatives >= 0.2.0

%description light
Window Manager for X Window System. Can emulate the look of Windows'95, OS/2
Warp 3,4, Motif or the Java Metal GUI. Tries to take the best features of the
above systems. Features multiple workspaces, opaque move/resize, task bar,
window list, mailbox status, digital clock. Fast and small.

Recommends: iftop, mutt
%prep
%setup -q

%patch0 -p0
%patch3 -p0
%patch8 -p0
%patch9 -p0
%patch10 -p0
%patch12 -p0
%patch15 -p0
%patch17 -p0
%patch18 -p0
%patch19 -p0
%patch20 -p0
%patch21 -p0
%patch22 -p0
%patch23 -p0
%patch24 -p0
%if_with alsa
%patch25 -p0
%endif
%patch26 -p0

%patch27 -p0
%patch28 -p0

%patch30 -p0
%patch31 -p0

%patch32 -p0

%patch36 -p0

%patch37 -p0
%patch38 -p0
%patch39 -p0
%patch40 -p0
%patch41 -p0
%patch42 -p0
%patch44 -p1

%patch49 -p1
%patch50 -p1

%patch51 -p1 -b .orig

%patch52 -p1 -b .orig

%add_optflags %optflags_nocpp

%build
pushd po
rm -f ru.mo
msgfmt ru.po -o ru.mo
popd
%set_automake_version 1.9
./autogen.sh
%configure \
--sysconfdir=%_sysconfdir/X11 \
--without-debug \
--without-gnome-menus \
--with-imlib=%_bindir \
--with-cfgdir=%_sysconfdir/X11/%name \
--with-libdir=%_datadir/X11/%name \
--enable-i18n \
--without-readline \
--disable-winmenu \
--disable-xinerama \
--enable-corefonts \
--disable-shaped-decorations \
--disable-xfreetype \
--disable-antialiasing
%make_build
mv src/%name src/%name-light

make distclean

%configure \
--sysconfdir=%_sysconfdir/X11 \
--with-imlib=%_bindir \
--without-debug \
--with-libdir=%_datadir/X11/%name \
--enable-nls \
--enable-i18n \
--without-gnome-menus \
--enable-shaped-decorations \
--enable-gradients \
--enable-movesize-fx \
--enable-antialiasing \
--enable-xfreetype \
--enable-guievents \
--with-cfgdir=%_sysconfdir/X11/%name \
--enable-movesize-fx \
--with-icesound=oss \
--enable-wm-session \
--enable-xinerama \
--with-readline

touch src/Makefile
%make_build
%if_with alsa
rm src/icesound src/icesound.o
%make_build -C src icesound DEBUG="-DENABLE_ALSA" AUDIO_LIBS="-lasound -lsndfile"
%endif
cp -p src/%name src/%name-full

%install
%make_install \
BINDIR=%buildroot%_bindir \
       LIBDIR=%buildroot%_datadir/X11/%name \
       ETCDIR=%buildroot%_sysconfdir/X11/%name \
       DOCDIR=%buildroot%_docdir \
LOCDIR=%buildroot%_datadir/locale \
install

rm -f %buildroot%_bindir/%name
install src/%name-light %buildroot%_bindir/
install src/%name-full %buildroot%_bindir/

#mkdir -p %buildroot%_libdir/X11/%name


%if_with menu
mkdir -p %buildroot%_menudir
install -m 644 %SOURCE3 %buildroot%_menudir/%name
%endif
mkdir -p %buildroot%_sysconfdir/menu-methods
install -m 755 %SOURCE4 %buildroot%_sysconfdir/menu-methods/%name

install -pD -m644 %SOURCE5 %buildroot%_miconsdir/%name.png
install -pD -m644 %SOURCE6 %buildroot%_niconsdir/%name.png
install -pD -m644 %SOURCE7 %buildroot%_liconsdir/%name.png
install -p -m644 %SOURCE11 %buildroot%_iconsdir/
install -pD -m644 %SOURCE12 %buildroot%_sysconfdir/X11/wmsession.d/04IceWM
install -pD -m644 %SOURCE13 %buildroot%_altdir/%name
install -m 644 %SOURCE14 doc/README.pager
install -m 644 %SOURCE15 doc/README.ALT

mkdir -p %buildroot%_sysconfdir/X11/%name

mv %buildroot%_datadir/X11/%name/{menu,preferences,keys} %buildroot%_sysconfdir/X11/%name/

install -m 755 %SOURCE8 %buildroot%_bindir/start%name
install -m 644 %SOURCE9 %buildroot%_sysconfdir/X11/%name/toolbar
install -m 644 %SOURCE10 %buildroot%_sysconfdir/X11/%name/winoptions
install -m 755 %SOURCE17 %buildroot%_sysconfdir/X11/%name/restart

%if_without menu
desktop-file-install --vendor alt --dir %buildroot%_desktopdir %SOURCE16
%endif

%find_lang  %name

%post light
%register_alternatives %name -- %name
%update_menus
%update_wms

%triggerpostun light -- %name < 1.0.9-alt15
%register_alternatives %name -- %name

%preun light
%unregister_alternatives %name

%postun light
%clean_menus
%clean_wms

%post
%update_alternatives

%preun
%remove_alternatives %_bindir/%name-full


%files
%_bindir/%name-full
%_bindir/icesound
%_bindir/icesh
%_bindir/icehelp
%_bindir/%{name}hint
%_datadir/X11/%name/icons/*
%exclude %_datadir/X11/%name/icons/app*
%exclude %_datadir/X11/%name/icons/xterm*

%doc README CHANGES TODO BUGS AUTHORS %name.lsm  doc/*.html doc/%name.sgml doc/README*

%files light -f %name.lang
%config(noreplace) %_sysconfdir/menu-methods/*
%_sysconfdir/X11/wmsession.d/*
%_altdir/%name
%_bindir/%name-light
%_bindir/%name-session
%_bindir/start%name
%_bindir/%{name}tray
%_bindir/%{name}bg
%dir %_datadir/X11/%name
%_datadir/X11/%name/mailbox
%dir %_sysconfdir/X11/%name
%ghost %config(noreplace) %_sysconfdir/X11/%name/menu
%config(noreplace) %_sysconfdir/X11/%name/preferences
%config(noreplace) %_sysconfdir/X11/%name/restart
%config(noreplace) %_sysconfdir/X11/%name/toolbar
%config(noreplace) %_sysconfdir/X11/%name/keys
%config(noreplace) %_sysconfdir/X11/%name/winoptions
%_datadir/X11/%name/taskbar
%_datadir/X11/%name/ledclock
%dir %_datadir/X11/%name/icons
%dir %_datadir/X11/%name/themes
%_datadir/X11/%name/icons/app*
%_datadir/X11/%name/icons/xterm*
%if_with menu
%_menudir/*
%else
%_desktopdir/*
%endif
%_niconsdir/*.*
%_miconsdir/*
%_liconsdir/*
%_iconsdir/*.*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin