icewm/icewm.spec

324 lines
11 KiB
RPMSpec
Raw Normal View History

#
# spec file for package icewm
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global lites icewm icewmhint icewmbg icesh icewm-session
Name: icewm
Version: 3.4.5
Release: 0
Summary: Window Manager with a Taskbar
License: LGPL-2.1-or-later
Group: System/GUI/Other
URL: https://ice-wm.org/
Accepting request 752661 from home:z1trus:branches:X11:windowmanagers - Update to 1.6.3 * Much improved 32-bit icon drawing * Add --trace=conf,icon option for path logging * Several portability fixes for FreeBSD * Update taskbar geometry on screen resize * Support PNG format for theme image files * Improved support for depcrecated linux.xpm * Highlight current workspace on startup * Fix for themable cursors * Fix for cmake build * Fix for rpm build * Updated man pages * Updated translations - Changes from 1.5.4 * Configurable X11 terminal to avoid dependency on xterm * Fix support for themable cursors for gdk-pixbuf * Fix Xft font corruption in 32-bit alpha mode * Fix frame depth for 32-bit apps in 24-bit mode * Enable tilde and $HOME expansion for icon paths * Restore old behavior of ColorQuickSwitchActive for vertical switching * IceSh addWorkspace, prop commands plus -Prop, -Role options * IceSh fix getWorkspace for sticky windows, fix getOpacity, improve sync * Expand installation prefix in default configuration files and manpages * Fix typos in documentation and update Spanish translation * Better icewm-session manpage * Compile on GCC 9.2 without warning * Improve CMake compilation * IceWM splash image * Silence icehelp * Allow a taskbarbg.xpm or taskbarbg.png with transparency for a translucent taskbar * Don't use composite on systray when using 24-bit RGB visuals for issue #374 * Update translations * Use lzip instead of xz * Add support for 32-bit RGBA visuals if Alpha is enabled. * Colors can have a [100] opacity prefix, where 100 is a percentage from 1 to 100. * Colors can also be specified in "rgba:" form. * Alpha channels in icons are preserved and drawn if Alpha is enabled. * Support showing a splash image on startup. * Icesh has new commands sizeto, pid, systray, xembed, motif, symbols. * Icesh supports filtering on and modifying gravity properties. * New winoption "startClose" to immediately close unwanted windows. * Several improvements to CMake builds. * _NET_SYSTEM_TRAY_ORIENTATION and _NET_SYSTEM_TRAY_VISUAL are now supported. * Nearly unlimited number of workspaces. * New option TaskBarWorkspacesLimit to limit number of workspaces shown on taskbar. * Workspace names can be edited on taskbar. * Change default WorkspaceStatusTime to 700 milliseconds. * Optimizations of resource usage on startup of icewm. * Restore TaskBarFullscreenAutoShow for issue #361. * Don't focus frame under mouse for ClickToFocus in issues #355 and #358. * Only update if WM_NORMAL_HINTS has really changed for Xephyr in #353. * Only update if WIN_HINTS has really changed. * Fix icesh -last filter. Fix icesh toggleState for #354. * Add another xrandr setup where second screen is primary. * Remove support for EsounD. * Add many new icesh features. * Support opacity in icesh, icewmhint, winoptions. * Set window type on all icewm windows. * Set WM_CLASS on all icewm windows. * Updated translations. * More support for clang C++11. OBS-URL: https://build.opensuse.org/request/show/752661 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/icewm?expand=0&rev=101
2019-12-02 07:43:49 +00:00
Source0: https://github.com/ice-wm/%{name}/releases/download/%{version}/%{name}-%{version}.tar.lz
# PATCH-FEATURE-SUSE icewm-susemenu.patch tyang@suse.com -- Add xdg-menu for SLED icewm
Patch1: icewm-susemenu.patch
# PATCH-FIX-OPENSUSE icewm-desktop-nodisplay.patch qkzhu@suse.com -- Set NoDisplay for icewm.desktop
Patch2: icewm-desktop-nodisplay.patch
Patch99: icewm-preferences.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gettext-runtime >= 0.20.0
BuildRequires: libtool
Accepting request 752661 from home:z1trus:branches:X11:windowmanagers - Update to 1.6.3 * Much improved 32-bit icon drawing * Add --trace=conf,icon option for path logging * Several portability fixes for FreeBSD * Update taskbar geometry on screen resize * Support PNG format for theme image files * Improved support for depcrecated linux.xpm * Highlight current workspace on startup * Fix for themable cursors * Fix for cmake build * Fix for rpm build * Updated man pages * Updated translations - Changes from 1.5.4 * Configurable X11 terminal to avoid dependency on xterm * Fix support for themable cursors for gdk-pixbuf * Fix Xft font corruption in 32-bit alpha mode * Fix frame depth for 32-bit apps in 24-bit mode * Enable tilde and $HOME expansion for icon paths * Restore old behavior of ColorQuickSwitchActive for vertical switching * IceSh addWorkspace, prop commands plus -Prop, -Role options * IceSh fix getWorkspace for sticky windows, fix getOpacity, improve sync * Expand installation prefix in default configuration files and manpages * Fix typos in documentation and update Spanish translation * Better icewm-session manpage * Compile on GCC 9.2 without warning * Improve CMake compilation * IceWM splash image * Silence icehelp * Allow a taskbarbg.xpm or taskbarbg.png with transparency for a translucent taskbar * Don't use composite on systray when using 24-bit RGB visuals for issue #374 * Update translations * Use lzip instead of xz * Add support for 32-bit RGBA visuals if Alpha is enabled. * Colors can have a [100] opacity prefix, where 100 is a percentage from 1 to 100. * Colors can also be specified in "rgba:" form. * Alpha channels in icons are preserved and drawn if Alpha is enabled. * Support showing a splash image on startup. * Icesh has new commands sizeto, pid, systray, xembed, motif, symbols. * Icesh supports filtering on and modifying gravity properties. * New winoption "startClose" to immediately close unwanted windows. * Several improvements to CMake builds. * _NET_SYSTEM_TRAY_ORIENTATION and _NET_SYSTEM_TRAY_VISUAL are now supported. * Nearly unlimited number of workspaces. * New option TaskBarWorkspacesLimit to limit number of workspaces shown on taskbar. * Workspace names can be edited on taskbar. * Change default WorkspaceStatusTime to 700 milliseconds. * Optimizations of resource usage on startup of icewm. * Restore TaskBarFullscreenAutoShow for issue #361. * Don't focus frame under mouse for ClickToFocus in issues #355 and #358. * Only update if WM_NORMAL_HINTS has really changed for Xephyr in #353. * Only update if WIN_HINTS has really changed. * Fix icesh -last filter. Fix icesh toggleState for #354. * Add another xrandr setup where second screen is primary. * Remove support for EsounD. * Add many new icesh features. * Support opacity in icesh, icewmhint, winoptions. * Set window type on all icewm windows. * Set WM_CLASS on all icewm windows. * Updated translations. * More support for clang C++11. OBS-URL: https://build.opensuse.org/request/show/752661 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/icewm?expand=0&rev=101
2019-12-02 07:43:49 +00:00
BuildRequires: lzip
BuildRequires: pkgconfig
BuildRequires: update-alternatives
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(fribidi)
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(ice)
Accepting request 857752 from home:glaubitz:branches:X11:windowmanagers - Update to 2.0.0 * Remove support for the old and obsolete _WIN_PROTOCOL properties. * Add support for the Imlib2 image rendering engine as an alternative for the gdk-pixbuf-xlib rendering engine. The Imlib2 image rendering engine is now the default, but this can be set at configure time. * Center the window list window if it got offscreen. * Fix horizontal scrolling in icehelp. * Use _NET_WM_STATE_HIDDEN instead of IconicState for minimize in icesh. * Icewm now supports ICCCM icon_pixmap and icon_window. * Don't unroll rolled up windows on left button press for issue #525. * Fix for drawing title pixmaps when they are gradients for issue #523. * Remove unwanted separator in taskbar for empty toolbar for issue #524. support BR_Portuguese language in 2 desktop files for issue #522. * Add support for WM_HINTS icon_window in MiniIcons. * Check if WM_HINTS update actually changes anything. * Don't attempt to draw Unicode in non-UTF-8 environment for issue #519 * Icewm now supports the icon_pixmaps from WM_HINTS to correctly show the icon for NEdit, xmgrace, xv, timidity and fontforge. * Don't resize when trying to move when dragging at y=0 for issue #520. * Report errors if enabled packages are missing for issue #516. * Instead of render.h include Xrender.h for dependency checking for issue #516. * Fix the positioning of the window list title for non-standard SmallIconSize settings for issue #514. - from version 1.9.2 * Fix for correctly restoring xterm from fullscreen in issue #28. * Prevent inadvertent growing of windows in issue #512. - from version 1.9.1 * Fix for NEdit, which delays setting WM_NORMAL_HINTS, to fix issue #510. * Fix for changing layers when ABOVE or BELOW bit is set. * Use a minimum delay of 10 ms for auto taskbar delays for issue #508. OBS-URL: https://build.opensuse.org/request/show/857752 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/icewm?expand=0&rev=111
2020-12-29 09:06:57 +00:00
BuildRequires: pkgconfig(imlib2)
BuildRequires: pkgconfig(sm)
BuildRequires: pkgconfig(sndfile)
BuildRequires: pkgconfig(x11)
Accepting request 752661 from home:z1trus:branches:X11:windowmanagers - Update to 1.6.3 * Much improved 32-bit icon drawing * Add --trace=conf,icon option for path logging * Several portability fixes for FreeBSD * Update taskbar geometry on screen resize * Support PNG format for theme image files * Improved support for depcrecated linux.xpm * Highlight current workspace on startup * Fix for themable cursors * Fix for cmake build * Fix for rpm build * Updated man pages * Updated translations - Changes from 1.5.4 * Configurable X11 terminal to avoid dependency on xterm * Fix support for themable cursors for gdk-pixbuf * Fix Xft font corruption in 32-bit alpha mode * Fix frame depth for 32-bit apps in 24-bit mode * Enable tilde and $HOME expansion for icon paths * Restore old behavior of ColorQuickSwitchActive for vertical switching * IceSh addWorkspace, prop commands plus -Prop, -Role options * IceSh fix getWorkspace for sticky windows, fix getOpacity, improve sync * Expand installation prefix in default configuration files and manpages * Fix typos in documentation and update Spanish translation * Better icewm-session manpage * Compile on GCC 9.2 without warning * Improve CMake compilation * IceWM splash image * Silence icehelp * Allow a taskbarbg.xpm or taskbarbg.png with transparency for a translucent taskbar * Don't use composite on systray when using 24-bit RGB visuals for issue #374 * Update translations * Use lzip instead of xz * Add support for 32-bit RGBA visuals if Alpha is enabled. * Colors can have a [100] opacity prefix, where 100 is a percentage from 1 to 100. * Colors can also be specified in "rgba:" form. * Alpha channels in icons are preserved and drawn if Alpha is enabled. * Support showing a splash image on startup. * Icesh has new commands sizeto, pid, systray, xembed, motif, symbols. * Icesh supports filtering on and modifying gravity properties. * New winoption "startClose" to immediately close unwanted windows. * Several improvements to CMake builds. * _NET_SYSTEM_TRAY_ORIENTATION and _NET_SYSTEM_TRAY_VISUAL are now supported. * Nearly unlimited number of workspaces. * New option TaskBarWorkspacesLimit to limit number of workspaces shown on taskbar. * Workspace names can be edited on taskbar. * Change default WorkspaceStatusTime to 700 milliseconds. * Optimizations of resource usage on startup of icewm. * Restore TaskBarFullscreenAutoShow for issue #361. * Don't focus frame under mouse for ClickToFocus in issues #355 and #358. * Only update if WM_NORMAL_HINTS has really changed for Xephyr in #353. * Only update if WIN_HINTS has really changed. * Fix icesh -last filter. Fix icesh toggleState for #354. * Add another xrandr setup where second screen is primary. * Remove support for EsounD. * Add many new icesh features. * Support opacity in icesh, icewmhint, winoptions. * Set window type on all icewm windows. * Set WM_CLASS on all icewm windows. * Updated translations. * More support for clang C++11. OBS-URL: https://build.opensuse.org/request/show/752661 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/icewm?expand=0&rev=101
2019-12-02 07:43:49 +00:00
BuildRequires: pkgconfig(xcomposite)
BuildRequires: pkgconfig(xdamage)
BuildRequires: pkgconfig(xext)
Accepting request 752661 from home:z1trus:branches:X11:windowmanagers - Update to 1.6.3 * Much improved 32-bit icon drawing * Add --trace=conf,icon option for path logging * Several portability fixes for FreeBSD * Update taskbar geometry on screen resize * Support PNG format for theme image files * Improved support for depcrecated linux.xpm * Highlight current workspace on startup * Fix for themable cursors * Fix for cmake build * Fix for rpm build * Updated man pages * Updated translations - Changes from 1.5.4 * Configurable X11 terminal to avoid dependency on xterm * Fix support for themable cursors for gdk-pixbuf * Fix Xft font corruption in 32-bit alpha mode * Fix frame depth for 32-bit apps in 24-bit mode * Enable tilde and $HOME expansion for icon paths * Restore old behavior of ColorQuickSwitchActive for vertical switching * IceSh addWorkspace, prop commands plus -Prop, -Role options * IceSh fix getWorkspace for sticky windows, fix getOpacity, improve sync * Expand installation prefix in default configuration files and manpages * Fix typos in documentation and update Spanish translation * Better icewm-session manpage * Compile on GCC 9.2 without warning * Improve CMake compilation * IceWM splash image * Silence icehelp * Allow a taskbarbg.xpm or taskbarbg.png with transparency for a translucent taskbar * Don't use composite on systray when using 24-bit RGB visuals for issue #374 * Update translations * Use lzip instead of xz * Add support for 32-bit RGBA visuals if Alpha is enabled. * Colors can have a [100] opacity prefix, where 100 is a percentage from 1 to 100. * Colors can also be specified in "rgba:" form. * Alpha channels in icons are preserved and drawn if Alpha is enabled. * Support showing a splash image on startup. * Icesh has new commands sizeto, pid, systray, xembed, motif, symbols. * Icesh supports filtering on and modifying gravity properties. * New winoption "startClose" to immediately close unwanted windows. * Several improvements to CMake builds. * _NET_SYSTEM_TRAY_ORIENTATION and _NET_SYSTEM_TRAY_VISUAL are now supported. * Nearly unlimited number of workspaces. * New option TaskBarWorkspacesLimit to limit number of workspaces shown on taskbar. * Workspace names can be edited on taskbar. * Change default WorkspaceStatusTime to 700 milliseconds. * Optimizations of resource usage on startup of icewm. * Restore TaskBarFullscreenAutoShow for issue #361. * Don't focus frame under mouse for ClickToFocus in issues #355 and #358. * Only update if WM_NORMAL_HINTS has really changed for Xephyr in #353. * Only update if WIN_HINTS has really changed. * Fix icesh -last filter. Fix icesh toggleState for #354. * Add another xrandr setup where second screen is primary. * Remove support for EsounD. * Add many new icesh features. * Support opacity in icesh, icewmhint, winoptions. * Set window type on all icewm windows. * Set WM_CLASS on all icewm windows. * Updated translations. * More support for clang C++11. OBS-URL: https://build.opensuse.org/request/show/752661 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/icewm?expand=0&rev=101
2019-12-02 07:43:49 +00:00
BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(xft)
BuildRequires: pkgconfig(xinerama)
Accepting request 752661 from home:z1trus:branches:X11:windowmanagers - Update to 1.6.3 * Much improved 32-bit icon drawing * Add --trace=conf,icon option for path logging * Several portability fixes for FreeBSD * Update taskbar geometry on screen resize * Support PNG format for theme image files * Improved support for depcrecated linux.xpm * Highlight current workspace on startup * Fix for themable cursors * Fix for cmake build * Fix for rpm build * Updated man pages * Updated translations - Changes from 1.5.4 * Configurable X11 terminal to avoid dependency on xterm * Fix support for themable cursors for gdk-pixbuf * Fix Xft font corruption in 32-bit alpha mode * Fix frame depth for 32-bit apps in 24-bit mode * Enable tilde and $HOME expansion for icon paths * Restore old behavior of ColorQuickSwitchActive for vertical switching * IceSh addWorkspace, prop commands plus -Prop, -Role options * IceSh fix getWorkspace for sticky windows, fix getOpacity, improve sync * Expand installation prefix in default configuration files and manpages * Fix typos in documentation and update Spanish translation * Better icewm-session manpage * Compile on GCC 9.2 without warning * Improve CMake compilation * IceWM splash image * Silence icehelp * Allow a taskbarbg.xpm or taskbarbg.png with transparency for a translucent taskbar * Don't use composite on systray when using 24-bit RGB visuals for issue #374 * Update translations * Use lzip instead of xz * Add support for 32-bit RGBA visuals if Alpha is enabled. * Colors can have a [100] opacity prefix, where 100 is a percentage from 1 to 100. * Colors can also be specified in "rgba:" form. * Alpha channels in icons are preserved and drawn if Alpha is enabled. * Support showing a splash image on startup. * Icesh has new commands sizeto, pid, systray, xembed, motif, symbols. * Icesh supports filtering on and modifying gravity properties. * New winoption "startClose" to immediately close unwanted windows. * Several improvements to CMake builds. * _NET_SYSTEM_TRAY_ORIENTATION and _NET_SYSTEM_TRAY_VISUAL are now supported. * Nearly unlimited number of workspaces. * New option TaskBarWorkspacesLimit to limit number of workspaces shown on taskbar. * Workspace names can be edited on taskbar. * Change default WorkspaceStatusTime to 700 milliseconds. * Optimizations of resource usage on startup of icewm. * Restore TaskBarFullscreenAutoShow for issue #361. * Don't focus frame under mouse for ClickToFocus in issues #355 and #358. * Only update if WM_NORMAL_HINTS has really changed for Xephyr in #353. * Only update if WIN_HINTS has really changed. * Fix icesh -last filter. Fix icesh toggleState for #354. * Add another xrandr setup where second screen is primary. * Remove support for EsounD. * Add many new icesh features. * Support opacity in icesh, icewmhint, winoptions. * Set window type on all icewm windows. * Set WM_CLASS on all icewm windows. * Updated translations. * More support for clang C++11. OBS-URL: https://build.opensuse.org/request/show/752661 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/icewm?expand=0&rev=101
2019-12-02 07:43:49 +00:00
BuildRequires: pkgconfig(xpm)
BuildRequires: pkgconfig(xrandr)
Requires: alsa-utils
Requires: desktop-data
Requires: icewm-bin
Requires: imlib2-loaders
Requires: xdg-menu
Requires(post): update-alternatives
Requires(postun):update-alternatives
# If you have the choice, prefer the big one.
Recommends: icewm-default
Recommends: icewm-lang = %{version}
Recommends: xclock
# For locking you need xscreensaver
Recommends: xscreensaver
Provides: icewm-gnome = %{version}
Obsoletes: icewm-gnome < %{version}
Provides: windowmanager
# Needed for documentation.
%if 0%{?suse_version} <= 1320
BuildRequires: asciidoc
%else
BuildRequires: rubygem(asciidoctor)
%endif
%if !0%{?sle_version}
Requires: icewm-configuration-files
%else
Requires: icewm-theme-branding
%endif
%if 0%{?sle_version}
Recommends: polkit-gnome
%endif
%if 0%{?suse_version} > 1315
Requires: xterm-bin
%else
Requires: xterm
%endif
%description
A window manager for the X Window System that can emulate the look
of Windows '95, OS/2 Warp 3, OS/2 Warp 4, and Motif and tries to
take the best features from those systems. IceWM features multiple
workspaces, opaque move and resize, a taskbar, a window list,
mailbox status, and a digital clock. It is fast and small.
%package config-upstream
Summary: Window Manager with a Taskbar -- Default configuration
Group: System/GUI/Other
Conflicts: icewm-theme-branding
Provides: icewm-configuration-files = %{version}
BuildArch: noarch
%description config-upstream
A window manager for the X Window System that can emulate the look
of Windows '95, OS/2 Warp 3, OS/2 Warp 4, and Motif and tries to
take the best features from those systems. IceWM features multiple
workspaces, opaque move and resize, a taskbar, a window list,
mailbox status, and a digital clock. It is fast and small.
Configuration files from upstream provider without suse branding
%package default
Summary: Window Manager with a Taskbar -- Default Version
Group: System/GUI/Other
Requires: adwaita-icon-theme
Requires: icewm
Requires: update-alternatives
Recommends: icewm-lang
Provides: icewm-bin
%description default
A window manager for the X Window System that can emulate the look
of Windows '95, OS/2 Warp 3, OS/2 Warp 4, and Motif and tries to
take the best features from those systems. IceWM features multiple
workspaces, opaque move and resize, a taskbar, a window list,
mailbox status, and a digital clock. It is fast and small.
%package lite
Summary: Window Manager with a Taskbar -- Lite Version
Group: System/GUI/Other
Requires: icewm
Requires: update-alternatives
Recommends: icewm-lang
Provides: icewm-bin
%description lite
A window manager for the X Window System that can emulate the look
of Windows '95, OS/2 Warp 3, OS/2 Warp 4, and Motif and tries to
take the best features from those systems. IceWM features multiple
workspaces, opaque move and resize, a taskbar, a window list,
mailbox status, and a digital clock. It is fast and small.
%lang_package
%prep
%setup -q
%patch -P 1 -p1
%patch -P 2 -p1
%build
autoreconf -fi
# Build the Lite version
%configure \
--disable-silent-rules \
--with-cfgdir=%{_sysconfdir}/icewm \
--enable-i18n \
--disable-nls \
--without-icesound \
--disable-menus-fdo \
--disable-fribidi
%make_build
# Grab the lite content.
mkdir lite
for file in %{lites}; do
mv -f src/$file lite/$file-lite
done
%make_build clean
# Configure for full deployment.
%configure \
--docdir=%{_docdir}/%{name} \
--disable-silent-rules \
--with-cfgdir=%{_sysconfdir}/icewm \
--with-icesound=alsa \
--enable-i18n \
--enable-nls \
--enable-corefonts \
--enable-menus-fdo \
--enable-i18n
%make_build
%if !0%{?sle_version}
# Patch generated lib/preferences file.
patch -p1 -i %{PATCH99}
# And use proper branding
wallpaper="openSUSEdefault"
sed -i \
-e "s:BRANDING_PICTURE:%{_datadir}/wallpapers/$wallpaper/contents/images/1920x1080.png:" \
src/preferences
%endif
%install
%make_install
# First just remove GNOME WM setter as we don't have GNOME 2 anyway.
rm -f %{buildroot}%{_bindir}/icewm-set-{gnomewm,matewm}
mkdir -p %{buildroot}%{_sysconfdir}/icewm/
for cfgfile in keys menu preferences toolbar winoptions programs; do
mv -f %{buildroot}%{_datadir}/icewm/$cfgfile \
%{buildroot}%{_sysconfdir}/icewm/
done
# move preferences to prefoverride to take preference over themes
mv %{buildroot}/%{_sysconfdir}/icewm/preferences \
%{buildroot}/%{_sysconfdir}/icewm/prefoverride
%find_lang icewm
ln -sf icewm.html %{buildroot}/%{_docdir}/icewm/index.html
mkdir -p %{buildroot}%{_sysconfdir}/alternatives/
for file in %{lites}; do
mv -f lite/$file-lite %{buildroot}%{_bindir}
mv -f %{buildroot}%{_bindir}/$file %{buildroot}%{_bindir}/$file-default
# Dummy.
touch %{buildroot}%{_sysconfdir}/alternatives/$file
ln -s %{_sysconfdir}/alternatives/$file %{buildroot}%{_bindir}/$file
done
%suse_update_desktop_file %{buildroot}%{_datadir}/xsessions/icewm-session.desktop
mv -f %{buildroot}%{_datadir}/xsessions/icewm-session.desktop %{buildroot}%{_datadir}/xsessions/icewm.desktop
ln -s icewm.desktop %{buildroot}%{_datadir}/xsessions/icewm-session.desktop
touch %{buildroot}%{_sysconfdir}/alternatives/default-xsession.desktop
ln -s %{_sysconfdir}/alternatives/default-xsession.desktop %{buildroot}%{_datadir}/xsessions/default.desktop
# Link duplicate theme icons to save some space.
%fdupes %{buildroot}%{_datadir}/icewm/themes/
%post
%{_sbindir}/update-alternatives --install %{_datadir}/xsessions/default.desktop \
default-xsession.desktop %{_datadir}/xsessions/icewm-session.desktop 15
%postun
[ -f %{_datadir}/xsessions/icewm-session.desktop ] || %{_sbindir}/update-alternatives \
--remove default-xsession.desktop %{_datadir}/xsessions/icewm-session.desktop
%post lite
%{_sbindir}/update-alternatives \
--install %{_bindir}/icewm icewm %{_bindir}/icewm-lite 0 \
--slave %{_bindir}/icewmhint icewmhint %{_bindir}/icewmhint-lite \
--slave %{_bindir}/icewmbg icewmbg %{_bindir}/icewmbg-lite \
--slave %{_bindir}/icesh icesh %{_bindir}/icesh-lite \
--slave %{_bindir}/icewm-session icewm-session %{_bindir}/icewm-session-lite
%postun lite
if [ $1 -eq 0 ] ; then
%{_sbindir}/update-alternatives --remove icewm %{_bindir}/icewm-lite
fi
%post default
%{_sbindir}/update-alternatives \
--install %{_bindir}/icewm icewm %{_bindir}/icewm-default 100 \
--slave %{_bindir}/icewmhint icewmhint %{_bindir}/icewmhint-default \
--slave %{_bindir}/icewmbg icewmbg %{_bindir}/icewmbg-default \
--slave %{_bindir}/icesh icesh %{_bindir}/icesh-default \
--slave %{_bindir}/icewm-session icewm-session %{_bindir}/icewm-session-default
%postun default
if [ $1 -eq 0 ] ; then
%{_sbindir}/update-alternatives --remove icewm %{_bindir}/icewm-default
fi
%files
%doc %{_docdir}/icewm
%ghost %{_sysconfdir}/alternatives/default-xsession.desktop
%{_datadir}/icewm/
%{_datadir}/xsessions/icewm-session.desktop
%{_datadir}/xsessions/icewm.desktop
%{_datadir}/xsessions/default.desktop
Accepting request 857752 from home:glaubitz:branches:X11:windowmanagers - Update to 2.0.0 * Remove support for the old and obsolete _WIN_PROTOCOL properties. * Add support for the Imlib2 image rendering engine as an alternative for the gdk-pixbuf-xlib rendering engine. The Imlib2 image rendering engine is now the default, but this can be set at configure time. * Center the window list window if it got offscreen. * Fix horizontal scrolling in icehelp. * Use _NET_WM_STATE_HIDDEN instead of IconicState for minimize in icesh. * Icewm now supports ICCCM icon_pixmap and icon_window. * Don't unroll rolled up windows on left button press for issue #525. * Fix for drawing title pixmaps when they are gradients for issue #523. * Remove unwanted separator in taskbar for empty toolbar for issue #524. support BR_Portuguese language in 2 desktop files for issue #522. * Add support for WM_HINTS icon_window in MiniIcons. * Check if WM_HINTS update actually changes anything. * Don't attempt to draw Unicode in non-UTF-8 environment for issue #519 * Icewm now supports the icon_pixmaps from WM_HINTS to correctly show the icon for NEdit, xmgrace, xv, timidity and fontforge. * Don't resize when trying to move when dragging at y=0 for issue #520. * Report errors if enabled packages are missing for issue #516. * Instead of render.h include Xrender.h for dependency checking for issue #516. * Fix the positioning of the window list title for non-standard SmallIconSize settings for issue #514. - from version 1.9.2 * Fix for correctly restoring xterm from fullscreen in issue #28. * Prevent inadvertent growing of windows in issue #512. - from version 1.9.1 * Fix for NEdit, which delays setting WM_NORMAL_HINTS, to fix issue #510. * Fix for changing layers when ABOVE or BELOW bit is set. * Use a minimum delay of 10 ms for auto taskbar delays for issue #508. OBS-URL: https://build.opensuse.org/request/show/857752 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/icewm?expand=0&rev=111
2020-12-29 09:06:57 +00:00
%{_mandir}/man1/*
%{_mandir}/man5/*
%files config-upstream
%dir %{_sysconfdir}/icewm/
%config %{_sysconfdir}/icewm/*
%files lang -f icewm.lang
%files default
%ghost %{_sysconfdir}/alternatives/icewm
%ghost %{_sysconfdir}/alternatives/icewmhint
%ghost %{_sysconfdir}/alternatives/icewmbg
%ghost %{_sysconfdir}/alternatives/icesh
%ghost %{_sysconfdir}/alternatives/icewm-session
%{_bindir}/icewm-default
%{_bindir}/icewmhint-default
%{_bindir}/icewmbg-default
%{_bindir}/icehelp
%{_bindir}/icesh-default
%{_bindir}/icewm-session-default
%{_bindir}/icesound
%{_bindir}/icewm
%{_bindir}/icewmhint
%{_bindir}/icewmbg
%{_bindir}/icesh
%{_bindir}/icewm-session
%{_bindir}/icewm-menu-fdo
%{_bindir}/icewm-menu-xrandr
%files lite
%ghost %{_sysconfdir}/alternatives/icewm
%ghost %{_sysconfdir}/alternatives/icewmhint
%ghost %{_sysconfdir}/alternatives/icewmbg
%ghost %{_sysconfdir}/alternatives/icesh
%ghost %{_sysconfdir}/alternatives/icewm-session
%{_bindir}/icewm-lite
%{_bindir}/icewmhint-lite
%{_bindir}/icewmbg-lite
%{_bindir}/icesh-lite
%{_bindir}/icewm-session-lite
%{_bindir}/icewm
%{_bindir}/icewmhint
%{_bindir}/icewmbg
%{_bindir}/icesh
%{_bindir}/icewm-session
%changelog