2012-04-18 18:45:54 +02:00
|
|
|
#
|
2017-09-11 09:45:00 +02:00
|
|
|
# spec file for package herbstluftwm
|
2012-04-18 18:45:54 +02:00
|
|
|
#
|
2021-01-04 10:52:42 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2012-04-18 18:45:54 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-04-14 12:32:20 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-04-18 18:45:54 +02:00
|
|
|
#
|
2017-09-11 09:45:00 +02:00
|
|
|
|
2012-04-18 18:45:54 +02:00
|
|
|
|
|
|
|
Name: herbstluftwm
|
2021-01-04 10:52:42 +01:00
|
|
|
Version: 0.9.1
|
2012-04-18 18:45:54 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A manual tiling window manager
|
2017-09-11 09:45:00 +02:00
|
|
|
License: BSD-2-Clause
|
2012-04-18 18:45:54 +02:00
|
|
|
Group: System/GUI/Other
|
2020-04-14 12:32:20 +02:00
|
|
|
URL: https://herbstluftwm.org
|
2018-01-10 14:06:55 +01:00
|
|
|
Source0: https://herbstluftwm.org/tarballs/%{name}-%{version}.tar.gz
|
|
|
|
Source1: https://herbstluftwm.org/tarballs/%{name}-%{version}.tar.gz.sig
|
|
|
|
Source2: %{name}.desktop
|
2012-04-18 18:45:54 +02:00
|
|
|
BuildRequires: asciidoc
|
2020-04-14 12:32:20 +02:00
|
|
|
BuildRequires: cmake >= 3.1
|
2017-09-11 09:45:00 +02:00
|
|
|
BuildRequires: gcc-c++ >= 4.9
|
|
|
|
BuildRequires: glib2-devel
|
2020-04-14 12:32:20 +02:00
|
|
|
BuildRequires: libXrandr-devel
|
2012-04-18 18:45:54 +02:00
|
|
|
BuildRequires: libxslt-devel
|
2017-09-11 09:45:00 +02:00
|
|
|
BuildRequires: ncurses-utils
|
2018-01-10 14:06:55 +01:00
|
|
|
BuildRequires: pkgconfig
|
2017-12-06 10:25:01 +01:00
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
BuildRequires: pkgconfig(xinerama)
|
2012-04-18 18:45:54 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
herbstluftwm is a manual tiling window manager for X11 using Xlib and Glib.
|
|
|
|
|
2018-01-10 14:06:55 +01:00
|
|
|
%package bash-completion
|
2018-01-10 15:58:19 +01:00
|
|
|
Summary: Bash completion for %{name}
|
|
|
|
Group: System/Shells
|
2018-01-10 14:06:55 +01:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: bash-completion
|
2020-04-14 12:32:20 +02:00
|
|
|
Supplements: (%{name} and bash)
|
2018-01-10 14:06:55 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description bash-completion
|
|
|
|
Bash completion for herbstclient
|
|
|
|
|
2019-04-30 17:21:56 +02:00
|
|
|
%package fish-completion
|
|
|
|
Summary: Fish completion for %{name}
|
|
|
|
Group: System/Shells
|
|
|
|
Requires: %{name} = %{version}
|
2020-04-14 12:32:20 +02:00
|
|
|
Supplements: (%{name} and fish)
|
2019-04-30 17:21:56 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description fish-completion
|
|
|
|
Fish completion for herbstclient
|
|
|
|
|
2018-01-10 14:06:55 +01:00
|
|
|
%package zsh-completion
|
2018-01-10 15:58:19 +01:00
|
|
|
Summary: Zsh completion for %{name}
|
|
|
|
Group: System/Shells
|
2018-01-10 14:06:55 +01:00
|
|
|
Requires: %{name} = %{version}
|
2020-04-14 12:32:20 +02:00
|
|
|
Supplements: (%{name} and zsh)
|
2018-01-10 14:06:55 +01:00
|
|
|
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.
|
|
|
|
|
2017-09-11 09:45:00 +02:00
|
|
|
%prep
|
2012-04-18 18:45:54 +02:00
|
|
|
%setup -q
|
2018-01-10 14:06:55 +01:00
|
|
|
# fix errors about improper shebangs due to /usr/bin/env
|
2019-06-17 09:15:42 +02:00
|
|
|
find . -type f -exec sed -i "s/#!\/usr\/bin\/env bash/#!\/usr\/bin\/bash/" {} +
|
2012-04-18 18:45:54 +02:00
|
|
|
|
|
|
|
%build
|
2018-01-10 14:06:55 +01:00
|
|
|
export CPPFLAGS="%{optflags}"
|
|
|
|
export CFLAGS="%{optflags}"
|
2020-04-14 12:32:20 +02:00
|
|
|
%cmake
|
|
|
|
%make_build
|
2012-04-18 18:45:54 +02:00
|
|
|
|
|
|
|
%install
|
2020-04-14 12:32:20 +02:00
|
|
|
%cmake_install
|
2018-01-10 14:06:55 +01:00
|
|
|
|
|
|
|
install -D -m0644 %{SOURCE2} %{buildroot}%{_datadir}/xsessions/%{name}.desktop
|
2012-04-18 18:45:54 +02:00
|
|
|
|
2018-01-10 14:06:55 +01:00
|
|
|
# We use the normal doc convention for this instead.
|
|
|
|
# INSTALL is not shipped.
|
|
|
|
rm -f %{buildroot}%{_datadir}/doc/%{name}/{INSTALL,NEWS,LICENSE,BUGS}
|
2012-04-18 18:45:54 +02:00
|
|
|
|
|
|
|
%files
|
2020-04-14 12:32:20 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc BUGS NEWS
|
2017-09-11 09:45:00 +02:00
|
|
|
%dir %{_datadir}/doc/%{name}/
|
2018-01-10 14:06:55 +01:00
|
|
|
%{_datadir}/doc/%{name}/herbstclient.html
|
|
|
|
%{_datadir}/doc/%{name}/%{name}-tutorial.html
|
|
|
|
%{_datadir}/doc/%{name}/%{name}.html
|
2017-09-11 09:45:00 +02:00
|
|
|
%dir %{_sysconfdir}/xdg/%{name}
|
2018-01-10 14:06:55 +01:00
|
|
|
%{_sysconfdir}/xdg/%{name}/autostart
|
|
|
|
%{_sysconfdir}/xdg/%{name}/panel.sh
|
|
|
|
%{_sysconfdir}/xdg/%{name}/restartpanels.sh
|
2020-04-14 12:32:20 +02:00
|
|
|
%{_sysconfdir}/xdg/%{name}/dmenu_run_hlwm
|
2018-01-10 14:06:55 +01:00
|
|
|
%{_bindir}/herbstclient
|
|
|
|
%{_bindir}/%{name}
|
2020-04-14 12:32:20 +02:00
|
|
|
%{_mandir}/man1/herbstclient.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
|
|
|
%{_mandir}/man7/%{name}-tutorial.7%{?ext_man}
|
2018-01-10 14:06:55 +01:00
|
|
|
%{_datadir}/xsessions/%{name}.desktop
|
2020-11-01 22:30:39 +01:00
|
|
|
%{_datadir}/doc/herbstluftwm/hlwm-doc.json
|
2018-01-10 14:06:55 +01:00
|
|
|
|
|
|
|
%files examples
|
|
|
|
%dir %{_datadir}/doc/%{name}/examples
|
2017-09-11 09:45:00 +02:00
|
|
|
%{_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
|
2019-04-30 17:21:56 +02:00
|
|
|
%{_datadir}/doc/%{name}/examples/float-maximize.sh
|
2017-09-11 09:45:00 +02:00
|
|
|
%{_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
|
2020-11-01 22:30:39 +01:00
|
|
|
%{_datadir}/doc/herbstluftwm/examples/perclient_kb_layout.sh
|
2018-01-10 14:06:55 +01:00
|
|
|
|
|
|
|
%files zsh-completion
|
2020-04-14 12:32:20 +02:00
|
|
|
%{_datadir}/zsh/site-functions/_herbstclient
|
2018-01-10 14:06:55 +01:00
|
|
|
|
|
|
|
%files bash-completion
|
2020-04-21 08:29:34 +02:00
|
|
|
%{_datadir}/bash-completion/completions/herbstclient
|
2012-04-18 18:45:54 +02:00
|
|
|
|
2019-04-30 17:21:56 +02:00
|
|
|
%files fish-completion
|
|
|
|
%dir %{_datadir}/fish
|
|
|
|
%dir %{_datadir}/fish/vendor_completions.d
|
|
|
|
%{_datadir}/fish/vendor_completions.d/herbstclient.fish
|
|
|
|
|
2012-04-18 18:45:54 +02:00
|
|
|
%changelog
|