From bf68aac327d8e76af1ad87157038bc66562df8c7 Mon Sep 17 00:00:00 2001 From: PangLARS Date: Thu, 21 May 2026 12:41:20 +0800 Subject: [PATCH 1/4] SPECS: Add sway Signed-off-by: PangLARS --- SPECS/sway/sway.spec | 91 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 SPECS/sway/sway.spec diff --git a/SPECS/sway/sway.spec b/SPECS/sway/sway.spec new file mode 100644 index 0000000000..ec548ae3a9 --- /dev/null +++ b/SPECS/sway/sway.spec @@ -0,0 +1,91 @@ +# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) +# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors +# SPDX-FileContributor: panglars +# +# SPDX-License-Identifier: MulanPSL-2.0 + +Name: sway +Version: 1.11 +Release: %autorelease +Summary: i3-compatible Wayland compositor +License: MIT AND CC0-1.0 +URL: https://github.com/swaywm/sway +VCS: git:https://github.com/swaywm/sway.git +#!RemoteAsset: sha256:0e37a55b7c3379230e97e1ad982542b75016a0c7d6676198604e557f9b373dae +Source0: https://github.com/swaywm/sway/releases/download/%{version}/sway-%{version}.tar.gz +BuildSystem: meson + +BuildOption(conf): -Dwerror=false +BuildOption(conf): -Dman-pages=enabled +BuildOption(conf): -Dtray=enabled +BuildOption(conf): -Dsd-bus-provider=libsystemd +BuildOption(conf): -Dgdk-pixbuf=enabled + +BuildRequires: meson >= 1.3 +BuildRequires: pkgconfig(bash-completion) +BuildRequires: pkgconfig(cairo) +BuildRequires: pkgconfig(gdk-pixbuf-2.0) +BuildRequires: pkgconfig(json-c) >= 0.13 +BuildRequires: pkgconfig(libdrm) +BuildRequires: pkgconfig(libevdev) +BuildRequires: pkgconfig(libinput) >= 1.26.0 +BuildRequires: pkgconfig(libpcre2-8) +BuildRequires: pkgconfig(libsystemd) >= 239 +BuildRequires: pkgconfig(libudev) +BuildRequires: pkgconfig(pango) +BuildRequires: pkgconfig(pangocairo) +BuildRequires: pkgconfig(pixman-1) +BuildRequires: pkgconfig(scdoc) >= 1.9.2 +BuildRequires: pkgconfig(wayland-client) +BuildRequires: pkgconfig(wayland-cursor) +BuildRequires: pkgconfig(wayland-protocols) >= 1.24 +BuildRequires: pkgconfig(wayland-scanner) +BuildRequires: pkgconfig(wayland-server) >= 1.21.0 +BuildRequires: pkgconfig(wlroots-0.19) >= 0.19.0 +BuildRequires: pkgconfig(xkbcommon) >= 1.5.0 + +Requires: xkeyboard-config +Recommends: foot +Recommends: pipewire +Recommends: swaybg +Recommends: xdg-desktop-portal-wlr + +%description +Sway is an i3-compatible Wayland compositor. + +%install -a +install -d %{buildroot}%{_sysconfdir}/sway/config.d + +%files +%license LICENSE assets/LICENSE +%doc README.md +%dir %{_sysconfdir}/sway +%dir %{_sysconfdir}/sway/config.d +%config(noreplace) %{_sysconfdir}/sway/config +%{_bindir}/sway +%{_bindir}/swaybar +%{_bindir}/swaymsg +%{_bindir}/swaynag +%{_datadir}/backgrounds/sway/ +%{_datadir}/bash-completion/completions/sway +%{_datadir}/bash-completion/completions/swaybar +%{_datadir}/bash-completion/completions/swaymsg +%{_datadir}/fish/vendor_completions.d/sway.fish +%{_datadir}/fish/vendor_completions.d/swaymsg.fish +%{_datadir}/fish/vendor_completions.d/swaynag.fish +%{_datadir}/wayland-sessions/sway.desktop +%{_datadir}/zsh/site-functions/_sway +%{_datadir}/zsh/site-functions/_swaymsg +%{_mandir}/man1/sway.1* +%{_mandir}/man1/swaymsg.1* +%{_mandir}/man1/swaynag.1* +%{_mandir}/man5/sway.5* +%{_mandir}/man5/sway-bar.5* +%{_mandir}/man5/sway-input.5* +%{_mandir}/man5/sway-output.5* +%{_mandir}/man5/swaynag.5* +%{_mandir}/man7/sway-ipc.7* +%{_mandir}/man7/swaybar-protocol.7* + +%changelog +%autochangelog From 30068489fa4311294f63c317356c7b7acf1a3473 Mon Sep 17 00:00:00 2001 From: PangLARS Date: Thu, 21 May 2026 14:52:56 +0800 Subject: [PATCH 2/4] SPECS: swaybg: Update to 1.2.2 Signed-off-by: PangLARS --- SPECS/swaybg/swaybg.spec | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/SPECS/swaybg/swaybg.spec b/SPECS/swaybg/swaybg.spec index 8cbf5cb8b9..8b4f87e893 100644 --- a/SPECS/swaybg/swaybg.spec +++ b/SPECS/swaybg/swaybg.spec @@ -2,26 +2,28 @@ # SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors # SPDX-FileContributor: jingyupu # SPDX-FileContributor: yyjeqhc +# SPDX-FileContributor: panglars # # SPDX-License-Identifier: MulanPSL-2.0 Name: swaybg -Version: 1.2.1 +Version: 1.2.2 Release: %autorelease Summary: Wallpaper tool for Wayland compositors License: MIT URL: https://github.com/swaywm/swaybg -#!RemoteAsset: sha256:6af1fdf0e57b1cc5345febed786b761fea0e170943a82639f94cfaed7df84f8f +#!RemoteAsset: sha256:a6652a0060a0bea3c3318d9d03b6dddac34f6aeca01b883eef9e58281f5202a1 Source0: https://github.com/swaywm/swaybg/releases/download/v%{version}/swaybg-%{version}.tar.gz BuildSystem: meson +BuildOption(conf): -Dwerror=false + BuildRequires: meson >= 0.59.0 -BuildRequires: gcc BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(gdk-pixbuf-2.0) BuildRequires: pkgconfig(wayland-client) -BuildRequires: pkgconfig(wayland-protocols) >= 1.14 -BuildRequires: pkgconfig(wayland-scanner) +BuildRequires: pkgconfig(wayland-protocols) >= 1.31 +BuildRequires: pkgconfig(wayland-scanner) >= 1.14.91 BuildRequires: scdoc %description @@ -35,4 +37,4 @@ and other image formats supported by gdk-pixbuf, as well as solid colors. %{_mandir}/man1/swaybg.1* %changelog -%{?autochangelog} +%autochangelog From faf7ba56e5379cbc9a351c9e1e2317ee886ff142 Mon Sep 17 00:00:00 2001 From: PangLARS Date: Thu, 21 May 2026 14:52:57 +0800 Subject: [PATCH 3/4] SPECS: Add swayidle Signed-off-by: PangLARS --- SPECS/sway/sway.spec | 4 ++-- SPECS/swayidle/swayidle.spec | 46 ++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 SPECS/swayidle/swayidle.spec diff --git a/SPECS/sway/sway.spec b/SPECS/sway/sway.spec index ec548ae3a9..b1843b476c 100644 --- a/SPECS/sway/sway.spec +++ b/SPECS/sway/sway.spec @@ -8,7 +8,7 @@ Name: sway Version: 1.11 Release: %autorelease Summary: i3-compatible Wayland compositor -License: MIT AND CC0-1.0 +License: MIT URL: https://github.com/swaywm/sway VCS: git:https://github.com/swaywm/sway.git #!RemoteAsset: sha256:0e37a55b7c3379230e97e1ad982542b75016a0c7d6676198604e557f9b373dae @@ -57,8 +57,8 @@ Sway is an i3-compatible Wayland compositor. install -d %{buildroot}%{_sysconfdir}/sway/config.d %files -%license LICENSE assets/LICENSE %doc README.md +%license LICENSE assets/LICENSE %dir %{_sysconfdir}/sway %dir %{_sysconfdir}/sway/config.d %config(noreplace) %{_sysconfdir}/sway/config diff --git a/SPECS/swayidle/swayidle.spec b/SPECS/swayidle/swayidle.spec new file mode 100644 index 0000000000..ec970cd44b --- /dev/null +++ b/SPECS/swayidle/swayidle.spec @@ -0,0 +1,46 @@ +# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) +# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors +# SPDX-FileContributor: panglars +# +# SPDX-License-Identifier: MulanPSL-2.0 + +Name: swayidle +Version: 1.9.0 +Release: %autorelease +Summary: Idle management daemon for Wayland compositors +License: MIT +URL: https://github.com/swaywm/swayidle +VCS: git:https://github.com/swaywm/swayidle.git +#!RemoteAsset: sha256:6c1b769038b60250c88e47380cbb021cfa57a65f872bf4d6c340b5e3057096ac +Source0: https://github.com/swaywm/swayidle/releases/download/v%{version}/swayidle-%{version}.tar.gz +BuildSystem: meson + +BuildOption(conf): -Dwerror=false +BuildOption(conf): -Dman-pages=enabled +BuildOption(conf): -Dlogind=enabled +BuildOption(conf): -Dlogind-provider=systemd + +BuildRequires: meson >= 0.59.0 +BuildRequires: pkgconfig(bash-completion) +BuildRequires: pkgconfig(libsystemd) +BuildRequires: pkgconfig(wayland-client) +BuildRequires: pkgconfig(wayland-protocols) >= 1.40 +BuildRequires: pkgconfig(wayland-scanner) >= 1.14.91 +BuildRequires: pkgconfig(wayland-server) +BuildRequires: scdoc + +%description +swayidle is an idle management daemon for Wayland compositors. It can run +commands when the user is idle, before sleep, or after resume. + +%files +%doc README.md +%license LICENSE +%{_bindir}/swayidle +%{_datadir}/bash-completion/completions/swayidle +%{_datadir}/fish/vendor_completions.d/swayidle.fish +%{_datadir}/zsh/site-functions/_swayidle +%{_mandir}/man1/swayidle.1* + +%changelog +%autochangelog From aaf3f9f6c35ad707e1fce9830d0895e25852e505 Mon Sep 17 00:00:00 2001 From: PangLARS Date: Thu, 21 May 2026 14:52:58 +0800 Subject: [PATCH 4/4] SPECS: Add swaylock Signed-off-by: PangLARS --- SPECS/swaylock/swaylock.spec | 49 ++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 SPECS/swaylock/swaylock.spec diff --git a/SPECS/swaylock/swaylock.spec b/SPECS/swaylock/swaylock.spec new file mode 100644 index 0000000000..4bd08c1c13 --- /dev/null +++ b/SPECS/swaylock/swaylock.spec @@ -0,0 +1,49 @@ +# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) +# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors +# SPDX-FileContributor: panglars +# +# SPDX-License-Identifier: MulanPSL-2.0 + +Name: swaylock +Version: 1.8.5 +Release: %autorelease +Summary: Screen locker for Wayland compositors +License: MIT +URL: https://github.com/swaywm/swaylock +VCS: git:https://github.com/swaywm/swaylock.git +#!RemoteAsset: sha256:ebd02c3c6a755d63102779c2c2430a4aab32d22bed0d73d6353974c1e5ad18a8 +Source0: https://github.com/swaywm/swaylock/releases/download/v%{version}/swaylock-%{version}.tar.gz +BuildSystem: meson + +BuildOption(conf): -Dwerror=false +BuildOption(conf): -Dpam=enabled +BuildOption(conf): -Dgdk-pixbuf=enabled +BuildOption(conf): -Dman-pages=enabled + +BuildRequires: meson >= 0.59.0 +BuildRequires: pkgconfig(bash-completion) +BuildRequires: pkgconfig(cairo) +BuildRequires: pkgconfig(gdk-pixbuf-2.0) +BuildRequires: pkgconfig(pam) +BuildRequires: pkgconfig(scdoc) +BuildRequires: pkgconfig(wayland-client) >= 1.20.0 +BuildRequires: pkgconfig(wayland-protocols) >= 1.25 +BuildRequires: pkgconfig(wayland-scanner) >= 1.15.0 +BuildRequires: pkgconfig(xkbcommon) + +%description +swaylock is a screen locking utility for Wayland compositors implementing the +ext-session-lock-v1 Wayland protocol. + +%files +%doc README.md +%license LICENSE +%config(noreplace) %{_sysconfdir}/pam.d/swaylock +%{_bindir}/swaylock +%{_datadir}/bash-completion/completions/swaylock +%{_datadir}/fish/vendor_completions.d/swaylock.fish +%{_datadir}/zsh/site-functions/_swaylock +%{_mandir}/man1/swaylock.1* + +%changelog +%autochangelog