## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global forgeurl https://github.com/ibireme/yyjson Version: 0.9.0 %global tag %{version} %forgemeta Name: yyjson Release: %autorelease Summary: A high performance JSON library written in ANSI C License: MIT URL: %{forgeurl} Source0: %{forgesource} BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build %description A high performance JSON library written in ANSI C. Features - Fast: can read or write gigabytes per second JSON data on modern CPUs. - Portable: complies with ANSI C (C89) for cross-platform compatibility. - Strict: complies with RFC 8259 JSON standard, ensuring strict number format and UTF-8 validation. - Extendable: offers options to allow comments, trailing commas, NaN/Inf, and custom memory allocator. - Accuracy: can accurately read and write int64, uint64, and double numbers. - Flexible: supports unlimited JSON nesting levels, \u0000 characters, and non null-terminated strings. - Manipulation: supports querying and modifying using JSON Pointer, JSON Patch and JSON Merge Patch. - Developer-Friendly: easy integration with only one h and one c file. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package contains development files for %{name}. %prep %forgeautosetup -p1 # https://github.com/ibireme/yyjson/issues/154 sed -i '/-Werror/d' CMakeLists.txt %build %cmake \ -GNinja \ -DCMAKE_BUILD_TYPE=Release \ -DYYJSON_BUILD_TESTS=ON \ %cmake_build %install %cmake_install %check %ctest %files %license LICENSE %doc README.md %{_libdir}/libyyjson.so.0* %files devel %{_includedir}/yyjson.h %{_libdir}/libyyjson.so %{_libdir}/cmake/yyjson/ %{_libdir}/pkgconfig/yyjson.pc %changelog ## START: Generated by rpmautospec * Tue Apr 09 2024 topazus - 0.9.0-1 - Update to 0.9.0; fix rhbz#2274045 and rhbz#2266791 * Tue Jan 30 2024 topazus - 0.8.0-3 - Fix error of -Wno-implicit-int and -Wno-implicit-function-declaration * Sat Jan 27 2024 Fedora Release Engineering - 0.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Dec 12 2023 topazus - 0.8.0-1 - initial import; rhbz#2254133 ## END: Generated by rpmautospec