[packages/niri] new

atler atler at pld-linux.org
Fri Feb 28 20:14:26 CET 2025


commit d9409822441947abaf08f287029944c588e4460c
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Feb 28 19:57:53 2025 +0100

    new

 niri.spec | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 98 insertions(+)
---
diff --git a/niri.spec b/niri.spec
new file mode 100644
index 0000000..ebfdf20
--- /dev/null
+++ b/niri.spec
@@ -0,0 +1,98 @@
+Summary:	A scrollable-tiling Wayland compositor
+Name:		niri
+Version:	25.02
+Release:	1
+License:	GPL v3
+Group:		Applications
+Source0:	https://github.com/YaLTeR/niri/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	7557b861a3db42b24e5a064d72670dd3
+Source1:	%{name}-crates-%{version}.tar.xz
+# Source1-md5:	b329cdc38325178884be9e97f4a8d212
+URL:		https://github.com/YaLTeR/niri
+BuildRequires:	Mesa-libgbm-devel
+BuildRequires:	cairo-devel
+BuildRequires:	cargo
+BuildRequires:	libdisplay-info-devel >= 0.2
+BuildRequires:	libinput-devel >= 1.21.0
+BuildRequires:	libseat-devel
+BuildRequires:	pango-devel
+BuildRequires:	pipewire-devel >= 0.3.33
+BuildRequires:	pixman-devel
+BuildRequires:	pkgconfig
+BuildRequires:	rpmbuild(macros) >= 2.004
+BuildRequires:	rust >= 1.80.1
+BuildRequires:	tar >= 1:1.22
+BuildRequires:	udev-devel
+BuildRequires:	xorg-lib-libxkbcommon-devel
+BuildRequires:	xz
+Requires:	libinput >= 1.21.0
+Requires:	pipewire-libs >= 0.3.33
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+niri is a scrollable-tiling Wayland compositor. Windows are arranged
+in columns on an infinite strip going to the right. Opening a new
+window never causes existing windows to resize.
+
+Every monitor has its own separate window strip. Windows can never
+"overflow" onto an adjacent monitor.
+
+Workspaces are dynamic and arranged vertically. Every monitor has an
+independent set of workspaces, and there's always one empty workspace
+present all the way down.
+
+%prep
+%setup -q -a1
+
+%{__mv} %{name}-%{version}/* .
+
+export CARGO_HOME="$(pwd)/.cargo"
+
+mkdir -p "$CARGO_HOME"
+cat >.cargo/config.toml <<EOF
+[source.crates-io]
+registry = 'https://github.com/rust-lang/crates.io-index'
+replace-with = 'vendored-sources'
+
+[source."git+https://github.com/Smithay/smithay.git"]
+git = "https://github.com/Smithay/smithay.git"
+replace-with = "vendored-sources"
+
+[source."git+https://gitlab.freedesktop.org/pipewire/pipewire-rs.git"]
+git = "https://gitlab.freedesktop.org/pipewire/pipewire-rs.git"
+replace-with = "vendored-sources"
+
+[source.vendored-sources]
+directory = '$PWD/vendor'
+EOF
+
+%build
+export CARGO_HOME="$(pwd)/.cargo"
+
+%cargo_build --frozen
+
+%install
+rm -rf $RPM_BUILD_ROOT
+export CARGO_HOME="$(pwd)/.cargo"
+
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/wayland-sessions,%{_datadir}/xdg-desktop-portal,%{systemduserunitdir}}
+
+%cargo_install --frozen --root $RPM_BUILD_ROOT%{_prefix} --path $PWD
+
+cp -p resources/niri.desktop $RPM_BUILD_ROOT%{_datadir}/wayland-sessions
+cp -p resources/niri-portals.conf $RPM_BUILD_ROOT%{_datadir}/xdg-desktop-portal
+cp -p resources/niri-session $RPM_BUILD_ROOT%{_bindir}
+cp -p resources/{niri.service,niri-shutdown.target} $RPM_BUILD_ROOT%{systemduserunitdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md resources/default-config.kdl
+%attr(755,root,root) %{_bindir}/niri
+%attr(755,root,root) %{_bindir}/niri-session
+%{_datadir}/wayland-sessions/niri.desktop
+%{_datadir}/xdg-desktop-portal/niri-portals.conf
+%{systemduserunitdir}/niri.service
+%{systemduserunitdir}/niri-shutdown.target
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/niri.git/commitdiff/d9409822441947abaf08f287029944c588e4460c



More information about the pld-cvs-commit mailing list