add: hyprlang.nightly (#5371) (#5432)

(cherry picked from commit a720185740)

Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
Raboneko
2025-06-15 08:13:34 -07:00
committed by GitHub
parent 86c465c005
commit 7065cf67fe
3 changed files with 71 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
project pkg {
rpm {
spec = "hyprlang.nightly.spec"
}
labels {
nightly = 1
subrepo = "extras"
}
}
@@ -0,0 +1,57 @@
#? https://src.fedoraproject.org/rpms/hyprlang/blob/rawhide/f/hyprlang.spec
%global realname hyprlang
%global ver 0.6.3
%global commit 1bfb84f54d50c7ae6558c794d3cfd5f6a7e6e676
%global commit_date 20250606
%global shortcommit %{sub %commit 1 7}
Name: %realname.nightly
Version: %ver^%{commit_date}git.%shortcommit
Release: 1%?dist
Summary: The official implementation library for the hypr config language
License: LGPL-3.0-only
URL: https://github.com/hyprwm/hyprlang
Source0: %url/archive/%commit.tar.gz
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: (pkgconfig(hyprutils) with hyprutils.nightly-devel)
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}/libhyprlang.so.2
%{_libdir}/libhyprlang.so.%{ver}
%changelog
%autochangelog
@@ -0,0 +1,5 @@
rpm.global("commit", gh_commit("hyprwm/hyprlang"));
if rpm.changed() {
rpm.global("ver", gh_rawfile("hyprwm/hyprlang", "main", "VERSION"));
rpm.global("commit_date", date());
}