Name: gstr Version: 2.0.0 Release: 1%{?dist} Summary: Header-only UTF-8 grapheme string library for C License: MIT URL: https://github.com/edwardedmonds/gstr Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildArch: noarch %description gstr is a header-only C library providing grapheme-aware string operations. It handles UTF-8 text correctly, treating grapheme clusters (user-perceived characters) as the unit of operation rather than bytes or codepoints. Features: - 56+ string functions (gstrlen, gstrcmp, gstrstr, etc.) - Full Unicode 16.0 grapheme segmentation (UAX #29) - Terminal display width calculation - Zero dependencies, single header - ~100KB compiled size %package devel Summary: Development files for %{name} Provides: %{name}-static = %{version}-%{release} %description devel Header file for developing applications with gstr, a grapheme-aware UTF-8 string library for C. %prep %autosetup %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 * Fri Jan 23 2026 Edward Edmonds - 2.0.0-1 - Initial package