The package rpms/river.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/river.git/commit/?id=b8955068b0cb....
Change:
+ExclusiveArch: %{zig_arches}
Thanks.
Full change:
============
commit d4adea44e9a88382652d8091d2d829f86eb83c4c
Author: Aleksei Bavshin <alebastr(a)fedoraproject.org>
Date: Mon Sep 26 00:07:43 2022 -0700
Inline definition of zig_arches
This supposed to fix 'BuildError: No matching arches were found', which
happens because zig-rpm-macros is not present in the srpm buildroot.
diff --git a/river.spec b/river.spec
index ca8f88d..0e93085 100644
--- a/river.spec
+++ b/river.spec
@@ -2,6 +2,12 @@
# ziglang/zig#3047
%undefine _missing_build_ids_terminate_build
+# FIXME: zig-rpm-macros is not in koji srpm buildroot, and zig_arches has to be
+# defined at this stage for valid ExclusiveArch
+%if 0%{!?zig_arches:1}
+%global zig_arches x86_64 aarch64 riscv64 %{mips64}
+%endif
+
Name: river
Version: 0.1.3
Release: 1%{?dist}
commit b8955068b0cb4067ba8066d4a46616eb67e7bc63
Author: Aleksei Bavshin <alebastr(a)fedoraproject.org>
Date: Sun Sep 25 22:12:13 2022 -0700
Initial import (#2051062)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b066ab1
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.src.rpm
+*.tar.gz
+*.tar.gz.sig
+results_*/
diff --git a/gpgkey-86DED400DDFD7A11.gpg b/gpgkey-86DED400DDFD7A11.gpg
new file mode 100644
index 0000000..f1eeaa3
--- /dev/null
+++ b/gpgkey-86DED400DDFD7A11.gpg
@@ -0,0 +1,50 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+
+mQENBF2y4Z4BCACZJ/Gg0yoKDzfR40bIyrtGn37ykFFfsS3jlxdqiiBwm1mTicyV
+7Ww+PfiAYvLadFKUeltlXv4U5X+xbihUek+sAbSwCdGtpO67B2U+GOxoNd8Th0ba
+b4IomnMVV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
+fQgV5twNNNPaUm94Eb467QEBxS0nejWB44NyOQy8ptyByQBmLe5fI0Unqw08CEAA
+WvXDxzhC/UFgxkLtzKhUag1zUpLLOkh5Vi8w8v0L/axchumYuoRZWsFGprSNa9yE
+dMA2DCshOLik58zWcPP4WIIlJO0CIAXu2r7GbxQBcx/f/U2El/VTo2/S/9ofk7G2
+9k+1HLuR2FiPlTDkfacmcKOiUXNHA5XJ3zhgJIg9iWZZKnpzOBsJr0wearYsZSGu
+Fl8AEQEAAYkBNgQYAQgAIBYhBF+9+E3SJ42yuK2KUobe1ADd/XoRBQJd+WHOAhsg
+AAoJEIbe1ADd/XoRc6wH/0fFGQ8Sr6Jsprvg7VkEr+NEHmAlw6rZ6wpg2KYWMxHc
+uq3E5ndMyDDRMbeDg8YjNkcslnMG6kT+lQfRNR49yBVpS5kY3hYEj0aigTqXTqJt
+INoRw+DqNtGH/mYNBT0HJftKQ/+H7PeJW7K1htpjRKqknJF8hrbErM4ibiJIpiNb
+rlb/7Wh4i/L3nPJmWKXC2r6L2CErq9/Z7cYcaKHcl/tDDSmQclnlABqnmF9olVcm
+2SWFwRR8yksI//fmmKG4ulx+7e0C9uK69tGdO3nXrsRwoDzvbWYeybKMOrJFscak
+NtvWiDjgFBojIBQRRIRficpyLnS0yQDh3hJSV3k8WH0=
+=wZyR
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/river.desktop b/river.desktop
new file mode 100644
index 0000000..16e7fe2
--- /dev/null
+++ b/river.desktop
@@ -0,0 +1,6 @@
+[Desktop Entry]
+Name=River
+Comment=A dynamic tiling wayland compositor
+DesktopNames=river
+Exec=river
+Type=Application
diff --git a/river.spec b/river.spec
new file mode 100644
index 0000000..ca8f88d
--- /dev/null
+++ b/river.spec
@@ -0,0 +1,131 @@
+# zig neither sets build-id nor allows to override the linker flags
+# ziglang/zig#3047
+%undefine _missing_build_ids_terminate_build
+
+Name: river
+Version: 0.1.3
+Release: 1%{?dist}
+Summary: Dynamic tiling Wayland compositor
+
+# river: GPL-3.0-only
+# protocol/river-control-unstable-v1.xml: ISC
+# protocol/river-layout-v3.xml: ISC
+# protocol/river-status-unstable-v1.xml: ISC
+# protocol/wlr-layer-shell-unstable-v1.xml: HPND-sell-variant
+# protocol/wlr-output-power-management-unstable-v1.xml: MIT
+License: GPL-3.0-only and HPND-sell-variant and ISC and MIT
+URL:
https://github.com/riverwm/river
+Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz
+Source1: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz.sig
+# Isaac Freund <mail(a)isaacfreund.com>
+Source2:
https://isaacfreund.com/public_key.txt#/gpgkey-86DED400DDFD7A11.gpg
+Source3: %{name}.desktop
+
+ExclusiveArch: %{zig_arches}
+
+BuildRequires: gcc
+BuildRequires: gnupg2
+BuildRequires: scdoc
+BuildRequires: zig >= 0.9
+BuildRequires: zig-rpm-macros
+
+BuildRequires: pkgconfig(libevdev)
+BuildRequires: pkgconfig(libinput)
+BuildRequires: pkgconfig(pixman-1)
+BuildRequires: pkgconfig(wayland-protocols)
+BuildRequires: pkgconfig(wayland-server)
+BuildRequires: (pkgconfig(wlroots) >= 0.15.0 with pkgconfig(wlroots) < 0.16)
+BuildRequires: pkgconfig(xkbcommon)
+
+# As of now, zig does not provide a package manager or any other official way
+# to consume a library code other than referencing it directly by file path.
+# There are some community-maintained tools, but this project does not use
+# any of those.
+#
+# In theory we can unbundle the libs by patching paths in build.zig, but given
+# that there's no standard location for system packages and the fact that all
+# of the libs below are git snapshots from the same upstream, it's not worth
+# the effort.
+Provides: bundled(zig-pixman)
+Provides: bundled(zig-wayland)
+Provides: bundled(zig-wlroots)
+Provides: bundled(zig-xkbcommon)
+
+# Lack of graphical drivers may hurt the common use case
+Recommends: mesa-dri-drivers
+# Logind needs polkit to create a graphical session
+Recommends: polkit
+# Compatibility layer for X11 applications
+Recommends: xorg-x11-server-Xwayland
+
+%description
+river is a dynamic tiling wayland compositor that takes inspiration
+from dwm and bspwm.
+
+Design goals:
+ * Simplicity and minimalism, river should not overstep the bounds
+ of a window manager.
+ * Window management based on a stack of views and tags.
+ * Dynamic layouts generated by external, user-written executables.
+ (A default rivertile layout generator is provided.)
+ * Scriptable configuration and control through a custom wayland
+ protocol and separate riverctl binary implementing it.
+
+%package protocols-devel
+Summary: Protocol files for the river wayland compositor
+License: ISC
+
+%description protocols-devel
+%{summary}.
+
+
+%prep
+%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}'
--data='%{SOURCE0}'
+%autosetup
+
+
+%build
+%zig_build \
+ -Dxwayland
+
+
+%install
+%zig_install \
+ -Dxwayland
+install -D -m755 -pv example/init %{buildroot}%{_datadir}/%{name}/init.example
+install -D -m644 -pv %{SOURCE3} %{buildroot}%{_datadir}/wayland-sessions/%{name}.desktop
+
+
+%check
+%zig_test
+
+
+%files
+%license LICENSE
+%doc README.md
+%{_bindir}/river
+%{_bindir}/riverctl
+%{_bindir}/rivertile
+%{_mandir}/man1/river.1*
+%{_mandir}/man1/riverctl.1*
+%{_mandir}/man1/rivertile.1*
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/init.example
+%{_datadir}/wayland-sessions/%{name}.desktop
+# shell completions
+%{_datadir}/bash-completion/completions/riverctl
+%dir %{_datadir}/fish
+%dir %{_datadir}/fish/vendor_completions.d
+%{_datadir}/fish/vendor_completions.d/riverctl.fish
+%dir %{_datadir}/zsh
+%dir %{_datadir}/zsh/site-functions
+%{_datadir}/zsh/site-functions/_riverctl
+
+%files protocols-devel
+%{_datadir}/pkgconfig/river-protocols.pc
+%dir %{_datadir}/river-protocols
+%{_datadir}/river-protocols/*.xml
+
+%changelog
+* Sun Sep 25 2022 Aleksei Bavshin <alebastr(a)fedoraproject.org> - 0.1.3-1
+- Initial import (#2051062)
diff --git a/sources b/sources
new file mode 100644
index 0000000..b58a386
--- /dev/null
+++ b/sources
@@ -0,0 +1,2 @@
+SHA512 (river-0.1.3.tar.gz) =
8dd8ad8b17fb1d9d65e413aaaa456fda89f8bedd580db247c3ffa8235a67712394182b3498a9c6eb3707cfc571c398bb5086cf09810e4a9438d26ea19f41f5a9
+SHA512 (river-0.1.3.tar.gz.sig) =
e113d7d1848a97e1c97cca9f673573fa1015ea21bba945b01d9610a72f629d02dd0138a971c524621066b43e17f0e30a496c89f28e43a18448109917ebfde5f1