%global debug_package %{nil} %global forgeurl https://github.com/attractivechaos/klib %global date 20250205 %global commit 5c1451caa1ee476624d00eed71810532c89b82d1 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %forgemeta Name: klib Version: 0.0.0 Release: %autorelease Summary: A standalone and lightweight C library License: MIT URL: %{forgeurl} Source0: %{forgesource} BuildRequires: gcc-c++ %description Klib is a standalone and lightweight C library distributed under MIT/X11 license. Klib strives for efficiency and a small memory footprint. Some components, such as khash.h, kbtree.h, ksort.h and kvec.h, are among the most efficient implementations of similar algorithms or data structures in all programming languages, in terms of both speed and memory use. %package devel Summary: Development files for %{name} %description devel This package contains development files for %{name}. %prep %forgeautosetup -p1 %build %install mkdir -p %{buildroot}%{_includedir} install -m 0644 *.h %{buildroot}%{_includedir}/ %files devel %license LICENSE.txt %doc README.md %{_includedir}/*.h %changelog %autochangelog