2023-01-31 14:46:23 +01:00
|
|
|
#
|
|
|
|
# spec file for package river
|
|
|
|
#
|
2023-02-08 09:34:32 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2023-01-31 14:46:23 +01: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: river
|
2023-09-17 12:19:38 +02:00
|
|
|
Version: 0.2.4+g960
|
2023-01-31 14:46:23 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: A dynamic tiling Wayland compositor
|
|
|
|
License: GPL-3.0-only
|
|
|
|
URL: https://github.com/riverwm/river
|
2023-03-05 05:51:54 +01:00
|
|
|
Source: river-%{version}.tar.zst
|
2023-01-31 14:46:23 +01:00
|
|
|
Source1: river-run.sh
|
|
|
|
BuildRequires: libevdev-devel
|
|
|
|
BuildRequires: libpixman-1-0-devel
|
|
|
|
BuildRequires: pkgconfig
|
2023-02-08 09:34:32 +01:00
|
|
|
BuildRequires: scdoc >= 1.9.2
|
|
|
|
BuildRequires: zig
|
|
|
|
BuildRequires: zig-rpm-macros
|
2023-03-05 05:51:54 +01:00
|
|
|
BuildRequires: zstd
|
2023-01-31 14:46:23 +01:00
|
|
|
BuildRequires: pkgconfig(cairo)
|
|
|
|
BuildRequires: pkgconfig(dbus-1) >= 1.10
|
|
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
|
|
|
BuildRequires: pkgconfig(json-c) >= 0.12.1
|
|
|
|
BuildRequires: pkgconfig(libcap)
|
|
|
|
BuildRequires: pkgconfig(libinput) >= 1.6.0
|
|
|
|
BuildRequires: pkgconfig(libpcre)
|
|
|
|
BuildRequires: pkgconfig(pango)
|
|
|
|
BuildRequires: pkgconfig(pangocairo)
|
|
|
|
BuildRequires: pkgconfig(wayland-client)
|
|
|
|
BuildRequires: pkgconfig(wayland-cursor)
|
|
|
|
BuildRequires: pkgconfig(wayland-egl)
|
|
|
|
BuildRequires: pkgconfig(wayland-protocols) >= 1.24
|
|
|
|
BuildRequires: pkgconfig(wayland-server) >= 1.20.0
|
|
|
|
BuildRequires: pkgconfig(wlroots) >= 0.15.0
|
|
|
|
BuildRequires: pkgconfig(xkbcommon)
|
|
|
|
Recommends: xorg-x11-server-wayland
|
|
|
|
# To make Qt apps work somewhat okay on Wayland and auto use it
|
|
|
|
# Otherwise, it will try to run under XWayland
|
|
|
|
Recommends: libqt5-qtwayland
|
|
|
|
Recommends: libqt5-qtwayland-32bit
|
|
|
|
Requires: river-riverctl
|
|
|
|
Requires: river-rivertile
|
2023-08-16 15:45:49 +02:00
|
|
|
Recommends: river-contrib
|
2023-04-16 11:26:49 +02:00
|
|
|
Suggests: xdg-desktop-portal-wlr
|
2023-01-31 14:46:23 +01:00
|
|
|
|
2023-02-02 12:36:21 +01:00
|
|
|
ExclusiveArch: x86_64 aarch64 riscv64 %{mips64}
|
2023-02-02 12:31:23 +01:00
|
|
|
|
2023-01-31 14:46:23 +01:00
|
|
|
%description
|
|
|
|
River is a dynamic tiling Wayland compositor with flexible runtime configuration.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{name}-%{version}
|
|
|
|
|
|
|
|
%package riverctl
|
|
|
|
Summary: Command-line interface for controlling river
|
|
|
|
Group: System/GUI/Other
|
|
|
|
Requires: %{name}
|
|
|
|
|
|
|
|
%description riverctl
|
|
|
|
A command-line utility used to control and configure river over the Wayland protocol.
|
|
|
|
|
|
|
|
%package rivertile
|
|
|
|
Summary: Tiled layout generator for river
|
|
|
|
Group: System/GUI/Other
|
|
|
|
Requires: %{name}
|
|
|
|
|
|
|
|
%description rivertile
|
|
|
|
A layout generator for river. It provides a simple tiled layout with split main/secondary stacks.
|
|
|
|
The initial state may be configured with various options passed on startup. Some values may additionally be modified while rivertile is running with the help of riverctl.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
2023-02-08 09:34:32 +01:00
|
|
|
Group: Development/Libraries/Other
|
2023-01-31 14:46:23 +01:00
|
|
|
Requires: %{name}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Modules for interacting or modifying the River Wayland compositor.
|
|
|
|
|
|
|
|
%package fish-completion
|
|
|
|
Summary: Fish Completion for %{name}
|
|
|
|
Group: System/Shells
|
|
|
|
Supplements: (%{name} and fish)
|
|
|
|
Requires: fish
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description fish-completion
|
|
|
|
Fish command-line completion support for %{name}.
|
|
|
|
|
|
|
|
%package zsh-completion
|
|
|
|
Summary: Zsh Completion for %{name}
|
|
|
|
Group: System/Shells
|
|
|
|
Supplements: (%{name} and zsh)
|
|
|
|
Requires: zsh
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description zsh-completion
|
|
|
|
Zsh command-line completion support for %{name}.
|
|
|
|
|
|
|
|
%package bash-completion
|
|
|
|
Summary: Bash Completion for %{name}
|
|
|
|
Group: System/Shells
|
|
|
|
Supplements: (%{name} and bash-completion)
|
|
|
|
Requires: bash-completion
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description bash-completion
|
|
|
|
Bash command-line completion support for %{name}.
|
|
|
|
|
2023-08-16 15:45:49 +02:00
|
|
|
%package contrib
|
|
|
|
Summary: Helper files for making river easy to use
|
|
|
|
Supplements: (%{name} and river)
|
|
|
|
Requires: river
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description contrib
|
|
|
|
This package contains files that make river easier to use such as
|
|
|
|
listing it to a Display Manager such as GDM with a desktop file or
|
|
|
|
setting up sane environmental variables before running river in
|
|
|
|
`river.sh`. These files are not part of the river project.
|
|
|
|
|
2023-01-31 14:46:23 +01:00
|
|
|
%build
|
|
|
|
%zig_build -Dpie -Dxwayland
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/wayland-sessions
|
2023-08-16 15:45:49 +02:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/river
|
2023-01-31 14:46:23 +01:00
|
|
|
%zig_install -Dpie -Dxwayland
|
|
|
|
|
|
|
|
# Installing the desktop file for easy login manager access
|
|
|
|
sed -i 's|Exec=river|Exec=river-run.sh|' contrib/river.desktop
|
|
|
|
install -D -m 0644 contrib/river.desktop %{buildroot}%{_datadir}/wayland-sessions
|
2023-08-16 15:45:49 +02:00
|
|
|
cp -rv contrib %{buildroot}%{_datadir}/river/contrib
|
2023-08-16 15:51:58 +02:00
|
|
|
cp -v %{SOURCE1} %{buildroot}%{_datadir}/river/contrib/
|
2023-01-31 14:46:23 +01:00
|
|
|
|
|
|
|
# Install convenient script to run river
|
2023-08-16 15:45:49 +02:00
|
|
|
install -Dm 0755 %{SOURCE1} %{buildroot}%{_bindir}
|
2023-01-31 14:46:23 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md CONTRIBUTING.md example
|
|
|
|
%{_bindir}/river
|
|
|
|
%{_bindir}/river-run.sh
|
|
|
|
%dir %{_datadir}/wayland-sessions
|
|
|
|
%{_datadir}/wayland-sessions/river.desktop
|
2023-04-06 14:44:31 +02:00
|
|
|
%{_mandir}/man1/river.1%{?ext_man}
|
2023-01-31 14:46:23 +01:00
|
|
|
|
|
|
|
%files riverctl
|
|
|
|
%{_bindir}/riverctl
|
2023-04-06 14:44:31 +02:00
|
|
|
%{_mandir}/man1/riverctl.1%{?ext_man}
|
2023-01-31 14:46:23 +01:00
|
|
|
|
|
|
|
%files rivertile
|
|
|
|
%{_bindir}/rivertile
|
2023-04-06 14:44:31 +02:00
|
|
|
%{_mandir}/man1/rivertile.1%{?ext_man}
|
2023-01-31 14:46:23 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_datadir}/pkgconfig/river-protocols.pc
|
|
|
|
%dir %{_datadir}/river-protocols
|
|
|
|
%{_datadir}/river-protocols/river-layout-v3.xml
|
|
|
|
|
|
|
|
%files bash-completion
|
|
|
|
%dir %{_datadir}/bash-completion
|
|
|
|
%dir %{_datadir}/bash-completion/completions
|
|
|
|
%{_datadir}/bash-completion/completions/riverctl
|
|
|
|
|
|
|
|
%files fish-completion
|
|
|
|
%dir %{_datadir}/fish
|
|
|
|
%dir %{_datadir}/fish/vendor_completions.d
|
|
|
|
%{_datadir}/fish/vendor_completions.d/riverctl.fish
|
|
|
|
|
|
|
|
%files zsh-completion
|
|
|
|
%dir %{_datadir}/zsh
|
|
|
|
%dir %{_datadir}/zsh/site-functions
|
|
|
|
%{_datadir}/zsh/site-functions/_riverctl
|
|
|
|
|
2023-08-16 15:45:49 +02:00
|
|
|
%files contrib
|
|
|
|
%dir %{_datadir}/river
|
|
|
|
%dir %{_datadir}/river/contrib
|
|
|
|
%{_datadir}/river/contrib/*
|
|
|
|
|
2023-01-31 14:46:23 +01:00
|
|
|
%changelog
|