Name: gstr Version: 2.0.2 Release: 3%{?dist} Summary: Single-header UTF-8 grapheme string library for C License: MIT URL: https://github.com/edwardedmonds/gstr Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc # Header-only library produces no debuginfo %global debug_package %{nil} %description gstr is a single-header UTF-8 string library for C providing grapheme-aware functions that operate on what users perceive as characters, not bytes. %package devel Summary: Development files for %{name} BuildArch: noarch Provides: %{name}-static = %{version}-%{release} %description devel gstr is a single-header UTF-8 string library for C providing grapheme-aware functions that operate on what users perceive as characters, not bytes. Handles emoji, CJK, combining marks, and all Unicode correctly. Zero dependencies. 60 functions in two layers: UTF-8 layer (14): utf8_decode, utf8_encode, utf8_valid, utf8_next, utf8_prev, utf8_cpcount, utf8_next_grapheme, utf8_prev_grapheme, utf8_cpwidth, utf8_charwidth, utf8_is_zerowidth, utf8_is_wide, utf8_truncate Grapheme layer (46): gstrlen, gstrnlen, gstrwidth, gstroff, gstrat, gstrcmp, gstrncmp, gstrcasecmp, gstrncasecmp, gstrstartswith, gstrendswith, gstrchr, gstrrchr, gstrstr, gstrrstr, gstrcasestr, gstrcount, gstrspn, gstrcspn, gstrpbrk, gstrsub, gstrcpy, gstrncpy, gstrcat, gstrncat, gstrdup, gstrndup, gstrsep, gstrltrim, gstrrtrim, gstrtrim, gstrrev, gstrreplace, gstrlower, gstrupper, gstrellipsis, gstrfill, gstrlpad, gstrrpad, gstrpad, gstrwtrunc, gstrwlpad, gstrwrpad, gstrwpad %prep %autosetup # Remove files not needed for the header-only package rm -rf gstr-zig CODING_STANDARDS.md test/utf8_test_samples.txt %build # Header-only library, nothing to build %check gcc %{optflags} -Wall -Wextra -I include -o test_gstr test/test_gstr.c ./test_gstr %install mkdir -p %{buildroot}%{_includedir} install -p -m 644 include/gstr.h %{buildroot}%{_includedir}/ %files devel %license LICENSE %doc README.md %{_includedir}/gstr.h %changelog * Wed Feb 11 2026 Edward J Edmonds - 2.0.2-3 - Disable debuginfo generation (header-only library has no compiled binaries) * Wed Feb 11 2026 Edward J Edmonds - 2.0.2-2 - Make main package archful so tests run on all architectures in koji - Move detailed description to devel subpackage - Add %%{optflags} to test compilation in %%check * Fri Jan 23 2026 Edward J Edmonds - 2.0.2-1 - Add SPDX license header to README.md * Fri Jan 23 2026 Edward J Edmonds - 2.0.1-1 - Add SPDX license headers to source files * Fri Jan 23 2026 Edward J Edmonds - 2.0.0-1 - Initial package