Accepting request 1062219 from home:uncomfyhalomacro:branches:X11:Wayland

I want to maintain river in X11:Wayland

OBS-URL: https://build.opensuse.org/request/show/1062219
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/river?expand=0&rev=1
This commit is contained in:
Jan Engelhardt 2023-01-31 13:46:23 +00:00 committed by Git OBS Bridge
commit 500a01abd9
10 changed files with 251 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

18
_service Normal file
View File

@ -0,0 +1,18 @@
<services>
<service name="obs_scm" mode="disabled">
<param name="scm">git</param>
<param name="url">https://github.com/riverwm/river.git</param>
<param name="revision">5274383c72aef8c9ecd73d4a82469a3cee29c83d</param>
<param name="versionformat">@PARENT_TAG@+g@TAG_OFFSET@</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="versionrewrite-replacement">\1</param>
<param name="changesgenerate">enable</param>
<param name="changesauthor">socvirnyl.estela@gmail.com</param>
</service>
<service name="tar" mode="disabled"/>
<service name="recompress" mode="disabled">
<param name="compression">xz</param>
<param name="file">*.tar</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/riverwm/river.git</param>
<param name="changesrevision">5274383c72aef8c9ecd73d4a82469a3cee29c83d</param></service></servicedata>

3
river-0.2.0+g24.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3c71ff14fa599212d1bc377efee032dc519b85b2a2d0bacd6edc5a267627ede9
size 1759756

3
river-0.2.0+g24.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1ab6739518aac7ac743d1a80ce0a1a6768b96374b942847c954cc5341469302a
size 202572

16
river-run.sh Normal file
View File

@ -0,0 +1,16 @@
#!/bin/sh
export MOZ_ENABLE_WAYLAND=1
# Let the windows decide to use Wayland
# export QT_QPA_PLATFORM=wayland
export CLUTTER_BACKEND=wayland
export ECORE_EVAS_ENGINE=wayland
export ELM_ENGINE=wayland
export SDL_VIDEODRIVER=wayland
export _JAVA_AWT_WM_NONREPARENTING=1
export NO_AT_BRIDGE=1
export XDG_SESSION_TYPE=wayland
export XDG_SESSION_DESKTOP=river
export XDG_CURRENT_DESKTOP=river
systemd-cat --identifier=river /usr/bin/river -log-level debug $@

4
river.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Tue Jan 31 12:01:45 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Initial spec for river version 0.2.0+g24

4
river.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: river
version: 0.2.0+g24
mtime: 1675118904
commit: 5274383c72aef8c9ecd73d4a82469a3cee29c83d

175
river.spec Normal file
View File

@ -0,0 +1,175 @@
#
# spec file for package river
#
# Copyright (c) 2022 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: river
Version: 0.2.0+g24
Release: 0
Summary: A dynamic tiling Wayland compositor
License: GPL-3.0-only
URL: https://github.com/riverwm/river
Source: river-%{version}.tar.xz
Source1: river-run.sh
BuildRequires: libevdev-devel
BuildRequires: libpixman-1-0-devel
BuildRequires: meson >= 0.60.0
BuildRequires: pam-devel
BuildRequires: pkgconfig
BuildRequires: python3-i3ipc
BuildRequires: scdoc >= 1.9.2
BuildRequires: zig
BuildRequires: zig-rpm-macros
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
Requires: xdg-desktop-portal-wlr
%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}
Group: Development/Libraries
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}.
%build
%zig_build -Dpie -Dxwayland
%install
mkdir -p %{buildroot}%{_datadir}/wayland-sessions
%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
# Install convenient script to run river
install -D -m 0755 %{SOURCE1} %{buildroot}%{_bindir}
%files
%license LICENSE
%doc README.md CONTRIBUTING.md example
%{_bindir}/river
%{_bindir}/river-run.sh
%dir %{_datadir}/wayland-sessions
%{_datadir}/wayland-sessions/river.desktop
%{_mandir}/man1/river.1.gz
%files riverctl
%{_bindir}/riverctl
%{_mandir}/man1/riverctl.1.gz
%files rivertile
%{_bindir}/rivertile
%{_mandir}/man1/rivertile.1.gz
%files devel
%dir %{_datadir}/pkgconfig
%{_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
%changelog