Name: json11 Version: 1.0.0 Release: 9%{?dist} Summary: A tiny JSON library for C++11 License: MIT URL: https://github.com/dropbox/%{name} Source0: %{url}/archive/v%{version}.tar.gz BuildRequires: ninja-build BuildRequires: gcc-c++ BuildRequires: cmake %description Json11 is a tiny JSON library for C++11, providing JSON parsing and serialization. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} %description devel %{summary}. %prep %autosetup sed -i 's@lib/@%{_lib}/@g' CMakeLists.txt sed -i 's@lib/@%{_lib}/@g' json11.pc.in echo "set_property(TARGET json11 PROPERTY SOVERSION 0)" >> CMakeLists.txt %build %cmake -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DJSON11_BUILD_TESTS=ON %cmake_build %check %ctest %install %cmake_install %files %doc README.md %license LICENSE.txt %{_libdir}/lib%{name}.so.0 %files devel %{_libdir}/lib%{name}.so %{_includedir}/%{name}.hpp %{_libdir}/pkgconfig/%{name}.pc %changelog * Thu Jul 21 2022 Fedora Release Engineering - 1.0.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 1.0.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 1.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 1.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Dec 20 2018 Vitaly Zaitsev - 1.0.0-1 - Initial SPEC release.