# -*- mode: rpm-spec; coding: utf-8 -*-
%define realname icewm
# Choose markdown or asciidoc to generate manual html
%def_with markdown
Name: icewm
Version: 3.4.7
Release: alt1
Epoch:3
Summary: X11 Window Manager
Group: Graphical desktop/Icewm
License: LGPLv2
Url: https://ice-wm.org
Packager: Dmitriy Khanzhin <jinn@altlinux.org>
%define _icewmdocdir %_datadir/doc/%realname-%version
Provides: %realname-githubmod = %version-%release
Provides: %realname-light = %version-%release
Requires: design-%realname >= 1.0-alt12
Obsoletes: %realname-githubmod < %version-%release
Obsoletes: %realname-light < %version-%release
Source0: %realname-%version.tar
Source2: %realname.menu-method
Source3: %realname-16.png
Source4: %realname-32.png
Source5: %realname-48.png
Source6: start%realname
Source7: IceWM.xpm
Source8: %realname.wmsession
Source9: README.ALT
Source11: restart
Source12: icewm-old-changelog.bz2
Patch0: %realname-%version-%release.patch
BuildRequires(pre): rpm-macros-cmake
# Automatically added by buildreq on Thu Nov 30 2023
BuildRequires: cmake gcc-c++ imlib2-devel libSM-devel libXcomposite-devel
BuildRequires: libXdamage-devel libXft-devel libXinerama-devel libXpm-devel
BuildRequires: libXrandr-devel libalsa-devel libao-devel libfribidi-devel
BuildRequires: librsvg-devel libsndfile-devel
BuildRequires: perl-Pod-Usage /usr/bin/pod2html
%if_with markdown
BuildRequires: discount
%else
BuildRequires: asciidoctor
%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.
This release is based on alternative source, based on a community fork
maintained on Github https://github.com/bbidulock/icewm
Recommends: iftop, mutt
%package themes
Summary: Extra themes for IceWM
Group: Graphical desktop/Icewm
BuildArch: noarch
Requires: design-%realname >= 1.0-alt12
Conflicts: design-%realname-themes <= 1.0-alt5
%description themes
Extra themes that included to IceWM distribution
%prep
%setup
%patch0 -p1
%build
%cmake -DPREFIX=%_prefix \
-DCFGDIR=%_sysconfdir/X11/%realname \
-DLIBDIR=%_x11x11dir/%realname \
-DDOCDIR=%_icewmdocdir \
-DCONFIG_IMLIB2=on \
-DCONFIG_LIBRSVG=on \
-DCONFIG_GUIEVENTS=on \
-DICESOUND="AO,ALSA,OSS" \
-DENABLE_LTO=on \
-DXTERMCMD=xvt \
-DCONFIG_DEFAULT_THEME="AltClearlooks/default.theme" \
-DCONFIG_DEFAULT_BACKGROUND="/usr/share/design/current/backgrounds/default.png" \
-DICEHELPIDX=%_icewmdocdir/ru/icewm.html \
-DTRANSLANG=ru
%cmake_build
%install
# This step seems to be necessary for some reason. Executables have to be
# relinked before installation into buildroot; cmake --install alone does not
# invoke the re-link step.
DESTDIR=%buildroot %cmake_build -t install
%cmake_install
mkdir -p %buildroot%_sysconfdir/menu-methods
install -m 755 %SOURCE2 %buildroot%_sysconfdir/menu-methods/%realname
install -pD -m644 %SOURCE3 %buildroot%_miconsdir/%realname.png
install -pD -m644 %SOURCE4 %buildroot%_niconsdir/%realname.png
install -pD -m644 %SOURCE5 %buildroot%_liconsdir/%realname.png
install -pD -m644 %SOURCE7 %buildroot%_pixmapsdir/IceWM.xpm
install -pD -m644 %SOURCE8 %buildroot%_sysconfdir/X11/wmsession.d/04IceWM
install -m644 %SOURCE9 README.ALT
install -m644 %SOURCE12 %buildroot%_icewmdocdir/icewm-old-changelog.bz2
install -m644 AUTHORS %buildroot%_icewmdocdir/AUTHORS
install -m644 NEWS %buildroot%_icewmdocdir/NEWS
install -m644 README.md %buildroot%_icewmdocdir/README.md
mkdir -p %buildroot%_sysconfdir/X11/%realname
install -m 755 %SOURCE6 %buildroot%_bindir/start%realname
install -m 755 %SOURCE11 %buildroot%_sysconfdir/X11/%realname/restart
%find_lang %realname
# remove unpackaged files
rm -f %buildroot/%_bindir/%realname-set-gnomewm
rm -f %buildroot/%_datadir/xsessions/%realname.desktop
%files -f %realname.lang
%dir %_sysconfdir/X11/%realname
%config(noreplace) %_sysconfdir/X11/%realname/restart
%config(noreplace) %_sysconfdir/menu-methods/*
%_sysconfdir/X11/wmsession.d/*
%_bindir/*
%dir %_x11x11dir/%realname
%_x11x11dir/%realname/*
%exclude %_x11x11dir/%realname/themes/*
%_niconsdir/*
%_miconsdir/*
%_liconsdir/*
%_pixmapsdir/*
%_man1dir/*
%_man5dir/*
%_mandir/ru/*
%_datadir/xsessions/*.desktop
%dir %_icewmdocdir
%_icewmdocdir/*
%files themes
%_x11x11dir/%realname/themes/*
%changelog
* Wed Apr 03 2024 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.4.7-alt1
- 3.4.7
* Sat Mar 09 2024 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.4.6-alt1
- 3.4.6
* Wed Feb 07 2024 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.4.5-alt2
- added gpicview into toolbar
* Wed Jan 03 2024 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.4.5-alt1
- 3.4.5
- BR: removed duplicate
* Fri Dec 01 2023 Igor Vlasenko <viy@altlinux.org> 3:3.4.4-alt3
- NMU: fixed build with perl 5.38 - added BR: /usr/bin/pod2html
* Thu Nov 30 2023 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.4.4-alt2
- BR: replaced perl-devel by perl-Pod-Html
* Sun Nov 05 2023 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.4.4-alt1
- 3.4.4
* Sat Oct 07 2023 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.4.3-alt1
- 3.4.3
* Fri Sep 15 2023 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.4.2-alt1
- 3.4.2
* Sun Jul 23 2023 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.4.1-alt1
- 3.4.1
* Tue Jun 06 2023 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.4.0-alt1
- 3.4.0
* Thu May 18 2023 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.3.5-alt1
- 3.3.5
* Mon May 08 2023 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.3.4-alt1
- 3.3.4
- removed unneeded workarounds
* Sun Apr 16 2023 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.3.3-alt1
- 3.3.3
- fixed many errors and typos in russian translations and
they synchronized with version 3.3.3
* Mon Mar 20 2023 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.3.2-alt1
- 3.3.2
* Thu Feb 23 2023 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.3.1-alt2
- added all remaining translations
- fixed repocop warning what docdir is not owned
* Tue Jan 24 2023 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.3.1-alt1
- 3.3.1
- added translation of icewm-preferences(5)
* Sun Dec 25 2022 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.3.0-alt1
- 3.3.0
* Wed Dec 07 2022 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.2.3-alt1
- 3.2.3
* Tue Nov 15 2022 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.2.2-alt1
- 3.2.2
* Thu Nov 10 2022 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.2.1-alt1
- 3.2.1
* Fri Nov 04 2022 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.2.0-alt1
- 3.2.0
* Sat Oct 29 2022 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.1.0-alt2
- started packaging russian translations of IceWM documentation
* Thu Oct 27 2022 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.1.0-alt1
- 3.1.0
- added a choise of markdown or asciidoc to generate manual html
- added libao support for icesound
- redesigned the documentation packaging
* Thu Oct 06 2022 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.0.1-alt1
- 3.0.1
* Tue Oct 04 2022 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.0.0-alt2
- added Yandex Browser support into toolbar
* Tue Oct 04 2022 Dmitriy Khanzhin <jinn@altlinux.org> 3:3.0.0-alt1
- 3.0.0
* Wed Aug 03 2022 Dmitriy Khanzhin <jinn@altlinux.org> 3:2.9.9-alt1
- 2.9.9
- added default background
* Thu May 05 2022 Dmitriy Khanzhin <jinn@altlinux.org> 3:2.9.7-alt1
- 2.9.7
* Wed Apr 13 2022 Ilya Kurdyukov <ilyakurdyukov@altlinux.org> 3:2.9.6-alt1.1
- fixed build for Elbrus
* Sat Apr 09 2022 Dmitriy Khanzhin <jinn@altlinux.org> 3:2.9.6-alt1
- 2.9.6
- theme AltClearlooks specified as default theme
- built with libfribidi support
- themes that included to distribution are moved to separate package
* Tue Nov 30 2021 Dmitriy Khanzhin <jinn@altlinux.org> 3:2.9.0-alt1
- 2.9.0
* Tue Oct 12 2021 Dmitriy Khanzhin <jinn@altlinux.org> 3:2.8.0-alt1
- 2.8.0
* Mon Aug 09 2021 Dmitriy Khanzhin <jinn@altlinux.org> 3:2.7.0-alt1
- 2.7.0
* Tue Jul 20 2021 Dmitriy Khanzhin <jinn@altlinux.org> 3:2.6.0-alt1
- 2.6.0
- fixed build with CMake 3.20, thanks to lav@
* Sun Jun 27 2021 Dmitriy Khanzhin <jinn@altlinux.org> 3:2.5.0-alt1
- 2.5.0
- buildreq
- fixed build in upstream and installed html documentation (ALT #35451)
* Thu May 13 2021 Arseny Maslennikov <arseny@altlinux.org> 3:2.3.4-alt1.1
- NMU: spec: adapted to new cmake macros.
* Fri May 07 2021 Dmitriy Khanzhin <jinn@altlinux.org> 3:2.3.4-alt1
- 2.3.4
* Sun May 02 2021 Dmitriy Khanzhin <jinn@altlinux.org> 3:2.3.3-alt1
- 2.3.3
* Sun Apr 04 2021 Dmitriy Khanzhin <jinn@altlinux.org> 3:2.3.1-alt1
- 2.3.1
* Sat Apr 03 2021 Dmitriy Khanzhin <jinn@altlinux.org> 3:2.3.0-alt1
- 2.3.0
* Thu Mar 25 2021 Dmitriy Khanzhin <jinn@altlinux.org> 3:2.2.1-alt1
- 2.2.1
- fixed build with LTO
* Wed Feb 10 2021 Dmitriy Khanzhin <jinn@altlinux.org> 3:2.1.2-alt1
- 2.1.2
* Fri Jan 29 2021 Dmitriy Khanzhin <jinn@altlinux.org> 3:2.1.1-alt1
- 2.1.1
* Thu Jan 07 2021 Dmitriy Khanzhin <jinn@altlinux.org> 3:2.0.1-alt1
- 2.0.1
* Fri Dec 18 2020 Dmitriy Khanzhin <jinn@altlinux.org> 3:2.0.0-alt1
- 2.0.0
- built with imlib2 as libgdk_pixbuf_xlib is deprecated
* Thu Nov 12 2020 Dmitriy Khanzhin <jinn@altlinux.org> 3:1.9.2-alt1
- 1.9.2
* Mon Nov 09 2020 Dmitriy Khanzhin <jinn@altlinux.org> 3:1.9.1-alt1
- 1.9.1
* Sat Oct 31 2020 Dmitriy Khanzhin <jinn@altlinux.org> 3:1.9.0-alt1
- 1.9.0
* Sat Sep 19 2020 Dmitriy Khanzhin <jinn@altlinux.org> 3:1.8.3-alt2
- fixed build on armh, thanks to sbolshakov@
* Sat Sep 19 2020 Dmitriy Khanzhin <jinn@altlinux.org> 3:1.8.3-alt1
- 1.8.3
* Sat Sep 12 2020 Dmitriy Khanzhin <jinn@altlinux.org> 3:1.8.2-alt1
- 1.8.2
* Sun Sep 06 2020 Dmitriy Khanzhin <jinn@altlinux.org> 3:1.8.1-alt1
- 1.8.1
* Sat Jul 18 2020 Dmitriy Khanzhin <jinn@altlinux.org> 3:1.7.0-alt1
- 1.7.0
* Fri Jun 05 2020 Dmitriy Khanzhin <jinn@altlinux.org> 3:1.6.6-alt1
- 1.6.6
* Fri Mar 20 2020 Dmitriy Khanzhin <jinn@altlinux.org> 3:1.6.5-alt1
- 1.6.5
* Mon Jan 27 2020 Dmitriy Khanzhin <jinn@altlinux.org> 3:1.6.4.0.2.397480d-alt1
- 1.6.4
- built with enabled LTO
* Wed Dec 25 2019 Dmitriy Khanzhin <jinn@altlinux.org> 3:1.6.3-alt1
- 1.6.3
* Thu Oct 03 2019 Dmitriy Khanzhin <jinn@altlinux.org> 3:1.6.2-alt1
- 1.6.2
- asciidoc replaced to asciidoctor
- buildreq
* Thu Aug 29 2019 Dmitriy Khanzhin <jinn@altlinux.org> 3:1.6.1-alt1
- 1.6.1 (ALT #37127)
- buildreq
* Thu Jan 03 2019 Dmitriy Khanzhin <jinn@altlinux.org> 3:1.4.2-alt4.git569bbe7
- git snapshot 569bbe7
* Tue Oct 02 2018 Dmitriy Khanzhin <jinn@altlinux.org> 3:1.4.2-alt3.git0ac7580
- git snapshot 0ac7580
- built with libgdk-pixbuf-xlib and librsvg support
* Sat Sep 15 2018 Dmitriy Khanzhin <jinn@altlinux.org> 3:1.4.2-alt2.git47ff050
- git snapshot 47ff050
- changed package name back to icewm
- added Epoch
- altconf: src/bindkey.h: key bindings back to default settings
- changed Url
- build without esound
- buildreq
- fixed documentation
* Sun Jul 30 2017 Dmitriy Khanzhin <jinn@altlinux.org> 1.4.2-alt1
- 1.4.2 release
- builreq
* Sat Mar 25 2017 Dmitriy Khanzhin <jinn@altlinux.org> 1.3.12.195-alt2.git3cd87d6
- git snapshot 3cd87d6
* Thu Mar 09 2017 Dmitriy Khanzhin <jinn@altlinux.org> 1.3.12.195-alt1.gitf199d1b
- git snapshot f199d1b
* Sun Mar 05 2017 Dmitriy Khanzhin <jinn@altlinux.org> 1.3.12.56-alt5.gitedf8c50
- fixed icons search path
- added icons
* Mon Jan 16 2017 Dmitriy Khanzhin <jinn@altlinux.org> 1.3.12.56-alt4.gitedf8c50
- git snapshot edf8c50
- fixed documentation place
- adapted logouticon patch, thx to YYY at altlinux forum
* Tue Dec 13 2016 Dmitriy Khanzhin <jinn@altlinux.org> 1.3.12.56-alt3.gitcbb3423
- packaged desktop file for xsession
* Sun Nov 13 2016 Dmitriy Khanzhin <jinn@altlinux.org> 1.3.12.56-alt2.gitcbb3423
- don't install debian-menu file, also desktop file
- packaged theme "Default"
* Tue Oct 04 2016 Dmitriy Khanzhin <jinn@altlinux.org> 1.3.12.56-alt1.gitcbb3423
- git snapshot cbb3423 (ALT #32034, fixed in upstream)
- added support chromium and palemoon in toolbar (ALT #32504)
* Sun Mar 20 2016 Dmitriy Khanzhin <jinn@altlinux.org> 1.3.12-alt2.gitb60d6d4
- git snapshot b60d6d4
* Sun Dec 20 2015 Dmitriy Khanzhin <jinn@altlinux.org> 1.3.12-alt1
- 1.3.12 release
* Mon Oct 05 2015 Dmitriy Khanzhin <jinn@altlinux.org> 1.3.11-alt2
- added Obsoletes
- added README.ALT
- fixed Url
* Tue Sep 22 2015 Dmitriy Khanzhin <jinn@altlinux.org> 1.3.11-alt1
- 1.3.11 release
* Sun Jul 05 2015 Dmitriy Khanzhin <jinn@altlinux.org> 1.3.10-alt1
- 1.3.10 release
- updated reboot/shutdown commands for use with systemd and sysvinit
- extended strong control of startup sequence in icewm-session
* Mon May 04 2015 Dmitriy Khanzhin <jinn@altlinux.org> 1.3.9-alt4.git960629d
- added forgotten requires to design-icewm
* Thu Apr 30 2015 Dmitriy Khanzhin <jinn@altlinux.org> 1.3.9-alt3.git960629d
- git snapshot 960629d
- old changelog cut off to separate file
- added conflict to icewm-light
* Tue Apr 14 2015 Dmitriy Khanzhin <jinn@altlinux.org> 1.3.9-alt2.gite97394f
- added support fd.o-style icons
* Tue Apr 14 2015 Dmitriy Khanzhin <jinn@altlinux.org> 1.3.9-alt1.gite97394f
- initial build for altlinux