add: hyprwayland-scanner.nightly (#5370) (#5390)

(cherry picked from commit c0b330f376)

Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
Raboneko
2025-06-14 03:29:43 -07:00
committed by GitHub
parent ba7ce4cb77
commit 62643d3c0c
3 changed files with 69 additions and 0 deletions
@@ -0,0 +1,9 @@
project pkg {
rpm {
spec = "hyprwayland-scanner.nightly.spec"
}
labels {
nightly = 1
subrepo = "extras"
}
}
@@ -0,0 +1,55 @@
#? https://src.fedoraproject.org/rpms/hyprwayland-scanner/blob/rawhide/f/hyprwayland-scanner.spec
%global realname hyprwayland-scanner
%global ver 0.4.4
%global commit 817918315ea016cc2d94004bfb3223b5fd9dfcc6
%global shortcommit %{sub %commit 1 7}
%global commit_date 20250614
Name: %realname.nightly
Version: %ver^%{commit_date}git.%shortcommit
Release: 1%?dist
Summary: A Hyprland implementation of wayland-scanner, in and for C++
License: BSD-3-Clause
URL: https://github.com/hyprwm/hyprwayland-scanner
Source0: %url/archive/%commit.tar.gz
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
BuildRequires: cmake
BuildRequires: cmake(pugixml)
BuildRequires: gcc-c++
Provides: %realname = %evr
Conflicts: %realname
Packager: madonuko <mado@fyralabs.com>
%description
%{summary}.
%package devel
Summary: A Hyprland implementation of wayland-scanner, in and for C++
Provides: %realname-devel = %evr
Conflicts: %realname-devel
%description devel
%{summary}.
%prep
%autosetup -p1 -n %realname-%commit
%build
%cmake
%cmake_build
%install
%cmake_install
%files devel
%license LICENSE
%doc README.md
%{_bindir}/%{realname}
%{_libdir}/pkgconfig/%{realname}.pc
%{_libdir}/cmake/%{realname}/
@@ -0,0 +1,5 @@
rpm.global("commit", gh_commit("hyprwm/hyprwayland-scanner"));
if rpm.changed() {
rpm.global("ver", gh_rawfile("hyprwm/hyprwayland-scanner", "main", "VERSION"));
rpm.global("commit_date", date());
}