%{?mingw_package_header} %global pkgname jsoncpp %global jsondir json %global common_desc \ %{pkgname} is an implementation of a JSON (http://json.org) reader and writer in \ C++. JSON (JavaScript Object Notation) is a lightweight data-interchange format. \ It is easy for humans to read and write. It is easy for machines to parse and \ generate. \ %{nil} Name: mingw-%{pkgname} Version: 1.8.4 Release: %mkrel 2 Summary: JSON library implemented in C++ Group: Development/Other License: Public Domain or MIT URL: https://github.com/open-source-parsers/jsoncpp Source0: https://github.com/open-source-parsers/jsoncpp/archive/%{version}/%{pkgname}-%{version}.tar.gz BuildArch: noarch BuildRequires: cmake >= 3.1 # Win32 BRs BuildRequires: mingw32-filesystem >= 95 BuildRequires: mingw32-gcc BuildRequires: mingw32-gcc-c++ BuildRequires: mingw32-binutils BuildRequires: mingw32-headers # Win64 BRs BuildRequires: mingw64-filesystem >= 95 BuildRequires: mingw64-gcc BuildRequires: mingw64-gcc-c++ BuildRequires: mingw64-binutils BuildRequires: mingw64-headers %description %{common_desc} # Win32 %package -n mingw32-%{pkgname} Summary: JSON library implemented in C++ for Win32 target %description -n mingw32-%{pkgname} %{common_desc} This package provides the library for the Win32 target. # Win64 %package -n mingw64-%{pkgname} Summary: JSON library implemented in C++ for Win64 target %description -n mingw64-%{pkgname} %{common_desc} This package provides the library for the Win64 target. %{?mingw_debug_package} %prep %autosetup -n %{pkgname}-%{version} -p1 %build %mingw_cmake -DBUILD_STATIC_LIBS=OFF \ -DJSONCPP_WITH_WARNING_AS_ERROR=OFF \ -DJSONCPP_WITH_PKGCONFIG_SUPPORT=ON \ -DJSONCPP_WITH_CMAKE_PACKAGE=ON \ -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF \ . %mingw_make %{?_smp_mflags} %install %mingw_make install DESTDIR=%{buildroot} %files -n mingw32-%{pkgname} %license AUTHORS LICENSE %doc README.md %{mingw32_bindir}/lib%{pkgname}*.dll %{mingw32_libdir}/lib%{pkgname}.dll.a %{mingw32_includedir}/%{jsondir} %{mingw32_libdir}/cmake/* %{mingw32_libdir}/pkgconfig/%{pkgname}.pc %files -n mingw64-%{pkgname} %license AUTHORS LICENSE %doc README.md %{mingw64_bindir}/lib%{pkgname}*.dll %{mingw64_libdir}/lib%{pkgname}.dll.a %{mingw64_includedir}/%{jsondir} %{mingw64_libdir}/cmake/* %{mingw64_libdir}/pkgconfig/%{pkgname}.pc %changelog * Thu Mar 24 2022 umeabot <umeabot> 1.8.4-2.mga9 + Revision: 1824285 - Mageia 9 Mass Rebuild * Fri Sep 25 2020 akien <akien> 1.8.4-1.mga8 + Revision: 1630092 - import from Fedora Rawhide * Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Oct 08 2019 Sandro Mani <manisandro@gmail.com> - 1.8.4-5 - Rebuild (Changes/Mingw32GccDwarf2) * Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sun Mar 04 2018 Neal Gompa <ngompa13@gmail.com> - 1.8.4-1 - Initial packaging based on native Fedora version