From 60cb0ecfbcfc5c44141fb9ca07e48a433e85ad86 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sun, 15 Jun 2025 07:47:14 -0700 Subject: [PATCH] add: hyprutils.nightly (#5372) (#5421) (cherry picked from commit c6fc58f4d662c8f6d6f86285f44832c21714ffdc) Co-authored-by: madomado --- anda/desktops/waylands/hyprutils/anda.hcl | 9 ++++ .../waylands/hyprutils/hyprutils.nightly.spec | 54 +++++++++++++++++++ anda/desktops/waylands/hyprutils/update.rhai | 5 ++ 3 files changed, 68 insertions(+) create mode 100644 anda/desktops/waylands/hyprutils/anda.hcl create mode 100644 anda/desktops/waylands/hyprutils/hyprutils.nightly.spec create mode 100644 anda/desktops/waylands/hyprutils/update.rhai diff --git a/anda/desktops/waylands/hyprutils/anda.hcl b/anda/desktops/waylands/hyprutils/anda.hcl new file mode 100644 index 0000000000..e60df70391 --- /dev/null +++ b/anda/desktops/waylands/hyprutils/anda.hcl @@ -0,0 +1,9 @@ +project pkg { + rpm { + spec = "hyprutils.nightly.spec" + } + labels { + nightly = 1 + subrepo = "extras" + } +} diff --git a/anda/desktops/waylands/hyprutils/hyprutils.nightly.spec b/anda/desktops/waylands/hyprutils/hyprutils.nightly.spec new file mode 100644 index 0000000000..c81076e9fa --- /dev/null +++ b/anda/desktops/waylands/hyprutils/hyprutils.nightly.spec @@ -0,0 +1,54 @@ +#? https://src.fedoraproject.org/rpms/hyprutils/blob/rawhide/f/hyprutils.spec + +%global realname hyprutils +%global ver 0.7.1 +%global commit 57ab2a867d8b554ad89f29060c15efd11631db91 +%global commit_date 20250613 +%global shortcommit %{sub %commit 1 7} + +Name: %realname.nightly +Version: %ver^%{commit_date}git.%shortcommit +Release: 1%?dist +Summary: Hyprland utilities library used across the ecosystem + +License: BSD-3-Clause +URL: https://github.com/hyprwm/hyprutils +Source0: %url/archive/%commit.tar.gz + +# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval +ExcludeArch: %{ix86} + +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: pkgconfig(pixman-1) + +Provides: %realname = %evr +Conflicts: %realname + +%description +%{summary}. + +%package devel +Requires: %{name}%{?_isa} = %{version}-%{release} +Provides: %realname-devel = %evr +Conflicts: %realname-devel +%pkg_devel_files + +%prep +%autosetup -p1 -n %realname-%commit + +%build +%cmake +%cmake_build + +%install +%cmake_install + +%check +%ctest + +%files +%license LICENSE +%doc README.md +%{_libdir}/lib%{realname}.so.%{ver} +%{_libdir}/lib%{realname}.so.6 diff --git a/anda/desktops/waylands/hyprutils/update.rhai b/anda/desktops/waylands/hyprutils/update.rhai new file mode 100644 index 0000000000..44759f192b --- /dev/null +++ b/anda/desktops/waylands/hyprutils/update.rhai @@ -0,0 +1,5 @@ +rpm.global("commit", gh_commit("hyprwm/hyprutils")); +if rpm.changed() { + rpm.global("ver", gh_rawfile("hyprwm/hyprutils", "main", "VERSION")); + rpm.global("commit_date", date()); +}