herbstluftwm/herbstluftwm.spec
Michael Vetter 99b7b9bbef Accepting request 793442 from home:jubalh:branches:X11:windowmanagers
- Update to 0.8.0:
  * single window floating (every client has an attribute 'floating' which can
    be set at run time and via the rule consequence 'floating=on')
  * monitor detection via xrandr
  * detection of external panels
  * new command: apply_rules
  * new command: export (convenience wrapper around setenv)
  * new client attribute: keys_inactive (negation of keymask)
  * new command: drag (initiates moving/resizing a window by mouse)
  * if tags have been configured through EWMH before herbstluftwm starts (from
    a previous running window manager), then herbstluftwm re-uses these tags
    (start with --no-tag-import to disable this)
  * The build system is now cmake. See the INSTALL file if you need to
    compile herbstluftwm yourself.
  * the 'remove' command now tries to preserve the focus and the client
    arrangement. Intuitively speaking, 'remove' is undoing a frame split.
  * Many boolean style settings were formerly of type int. Now, these are
    boolean settings.
  * The 'toggle' command only works for boolean settings. For the former
    behavior for int-typed settings, use 'cycle_value'.
  * Writing '%%' in the 'sprintf' format string now gives a literate '%', just
    as printf. Formerly it stayed '%%'.
  * The 'keybind' command now accepts all valid key symbols, even if they are
    not present on the current keyboard layout at the time of setup.
  * the rules are also applied to those clients that change their WM_CLASS
    after being shown already.
  * 'detect_monitors' has an additional '--list-all' parameter
  * do not change the focus (for focus_follows_mouse=1) when an unmanaged
    dialog (e.g. a rofi menu or a notification) closes.
  * list_rules now prints regex-based rule conditions with '~' instead of '='

OBS-URL: https://build.opensuse.org/request/show/793442
OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/herbstluftwm?expand=0&rev=15
2020-04-14 10:32:20 +00:00

159 lines
4.8 KiB
RPMSpec

#
# spec file for package herbstluftwm
#
# Copyright (c) 2020 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/
#
Name: herbstluftwm
Version: 0.8.0
Release: 0
Summary: A manual tiling window manager
License: BSD-2-Clause
Group: System/GUI/Other
URL: https://herbstluftwm.org
Source0: https://herbstluftwm.org/tarballs/%{name}-%{version}.tar.gz
Source1: https://herbstluftwm.org/tarballs/%{name}-%{version}.tar.gz.sig
Source2: %{name}.desktop
BuildRequires: asciidoc
BuildRequires: cmake >= 3.1
BuildRequires: gcc-c++ >= 4.9
BuildRequires: glib2-devel
BuildRequires: libXrandr-devel
BuildRequires: libxslt-devel
BuildRequires: ncurses-utils
BuildRequires: pkgconfig
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xinerama)
%description
herbstluftwm is a manual tiling window manager for X11 using Xlib and Glib.
%package bash-completion
Summary: Bash completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Requires: bash-completion
Supplements: (%{name} and bash)
BuildArch: noarch
%description bash-completion
Bash completion for herbstclient
%package fish-completion
Summary: Fish completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Supplements: (%{name} and fish)
BuildArch: noarch
%description fish-completion
Fish completion for herbstclient
%package zsh-completion
Summary: Zsh completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Supplements: (%{name} and zsh)
BuildArch: noarch
%description zsh-completion
ZSH completion for herbstclient
%package examples
Summary: Example scripts for %{name}
Group: System/GUI/Other
Requires: %{name} = %{version}
Requires: bash
BuildArch: noarch
%description examples
Sample bash scripts for herbstluftwm and herbstclient, which give the user
an idea of what is possible.
%prep
%setup -q
# fix errors about improper shebangs due to /usr/bin/env
find . -type f -exec sed -i "s/#!\/usr\/bin\/env bash/#!\/usr\/bin\/bash/" {} +
%build
export CPPFLAGS="%{optflags}"
export CFLAGS="%{optflags}"
%cmake
%make_build
%install
%cmake_install
install -D -m0644 %{SOURCE2} %{buildroot}%{_datadir}/xsessions/%{name}.desktop
# We use the normal doc convention for this instead.
# INSTALL is not shipped.
rm -f %{buildroot}%{_datadir}/doc/%{name}/{INSTALL,NEWS,LICENSE,BUGS}
%files
%license LICENSE
%doc BUGS NEWS
%dir %{_datadir}/doc/%{name}/
%{_datadir}/doc/%{name}/herbstclient.html
%{_datadir}/doc/%{name}/%{name}-tutorial.html
%{_datadir}/doc/%{name}/%{name}.html
%dir %{_sysconfdir}/xdg/%{name}
%{_sysconfdir}/xdg/%{name}/autostart
%{_sysconfdir}/xdg/%{name}/panel.sh
%{_sysconfdir}/xdg/%{name}/restartpanels.sh
%{_sysconfdir}/xdg/%{name}/dmenu_run_hlwm
%{_bindir}/herbstclient
%{_bindir}/%{name}
%{_mandir}/man1/herbstclient.1%{?ext_man}
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_mandir}/man7/%{name}-tutorial.7%{?ext_man}
%{_datadir}/xsessions/%{name}.desktop
%files examples
%dir %{_datadir}/doc/%{name}/examples
%{_datadir}/doc/%{name}/examples/README
%{_datadir}/doc/%{name}/examples/dmenu.sh
%{_datadir}/doc/%{name}/examples/dumpbeautify.sh
%{_datadir}/doc/%{name}/examples/exec_on_tag.sh
%{_datadir}/doc/%{name}/examples/execwith.sh
%{_datadir}/doc/%{name}/examples/float-maximize.sh
%{_datadir}/doc/%{name}/examples/floatmon.sh
%{_datadir}/doc/%{name}/examples/herbstcommander.sh
%{_datadir}/doc/%{name}/examples/keychain.sh
%{_datadir}/doc/%{name}/examples/lasttag.sh
%{_datadir}/doc/%{name}/examples/layout.sh
%{_datadir}/doc/%{name}/examples/loadstate.sh
%{_datadir}/doc/%{name}/examples/maximize.sh
%{_datadir}/doc/%{name}/examples/q3terminal.sh
%{_datadir}/doc/%{name}/examples/savestate.sh
%{_datadir}/doc/%{name}/examples/scratchpad.sh
%{_datadir}/doc/%{name}/examples/toggledualhead.sh
%{_datadir}/doc/%{name}/examples/windowmenu.sh
%{_datadir}/doc/%{name}/examples/wselect.sh
%files zsh-completion
%{_datadir}/zsh/site-functions/_herbstclient
%files bash-completion
%config %{_sysconfdir}/bash_completion.d/herbstclient-completion
%files fish-completion
%dir %{_datadir}/fish
%dir %{_datadir}/fish/vendor_completions.d
%{_datadir}/fish/vendor_completions.d/herbstclient.fish
%changelog