add: hyprutils.nightly (#5372) (#5421)

(cherry picked from commit c6fc58f4d6)

Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
Raboneko
2025-06-15 07:47:14 -07:00
committed by GitHub
parent 7c10146ee7
commit 60cb0ecfbc
3 changed files with 68 additions and 0 deletions
@@ -0,0 +1,9 @@
project pkg {
rpm {
spec = "hyprutils.nightly.spec"
}
labels {
nightly = 1
subrepo = "extras"
}
}
@@ -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
@@ -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());
}