Name: cjson Version: 1.7.14 Release: 1%{?dist} Summary: Ultralightweight JSON parser in ANSI C License: MIT URL: https://github.com/DaveGamble/cJSON Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: cmake %description cJSON aims to be the dumbest possible parser that you can get your job done with. It's a single file of C, and a single header file. %package devel Summary: Development files for cJSON Requires: cjson = %{version}-%{release} Requires: pkgconfig %description devel The %{name}-devel package contains libraries and header files for developing applications that use cJSON. %prep %autosetup -n cJSON-%{version} %build %cmake %cmake_build %install %cmake_install rm -f %{buildroot}%{_libdir}/*.{la,a} rm -f %{buildroot}%{_libdir}/cmake/cJSON/*.cmake %check %ctest %ldconfig_scriptlets %files %license LICENSE %doc README.md %{_libdir}/libcjson*.so.* %files devel %doc CHANGELOG.md %{_libdir}/libcjson.so %{_libdir}/pkgconfig/libcjson.pc %{_includedir}/cjson/ %changelog * Mon Dec 07 2020 Fabian Affolter - 1.7.14-1 - Initial package for Fedora