- update to 1.91.8:
* ColorEdit, ColorPicker: redesigned how alpha is displayed in
the preview square. (#8335, #1578, #346)
* Removed ImGuiColorEditFlags_AlphaPreview (made value 0):
it is now the default behavior.
* Prior to 1.91.8: alpha was made opaque in the preview by
default _unless_ using ImGuiColorEditFlags_AlphaPreview.
* We now display the preview as transparent by default.
You can use ImGuiColorEditFlags_AlphaOpaque to use old
behavior.
* The new flags may be combined better and allow finer
controls:
* ImGuiColorEditFlags_AlphaOpaque: disable alpha in the
preview, but alpha value still editable.
* ImGuiColorEditFlags_AlphaNoBg: disable rendering a
checkerboard background behind transparent color.
* ImGuiColorEditFlags_AlphaPreviewHalf: display half
opaque / half transparent preview.
* Backends: SDLGPU3: Renamed
ImGui_ImplSDLGPU3_InitInfo::GpuDevice to Device
for consistency. (#8163, #7998, #7988)
* imgui_freetype: fixed issue where glyph advances would
incorrectly be snapped to pixels. Effectively it would only
be noticeable when hinting is disabled with
ImGuiFreeTypeBuilderFlags_NoHinting, as hinting itself
snaps glyph advances.
* Inputs: added IsMouseReleasedWithDelay() helper. (#8337,
#8320)
* Windows, Style: Fixed small rendering issues with menu bar,
resize grip and scrollbar when using thick border sizes.
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=49
2025-02-25 13:56:21 +00:00
|
|
|
#
|
|
|
|
# spec file for package json-c
|
|
|
|
#
|
|
|
|
# Copyright (c) 2025 SUSE LLC
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define libname libjson-c
|
|
|
|
%define libsoname %{libname}5
|
|
|
|
%define oldlibname libjson
|
|
|
|
%define version_date 20240915
|
|
|
|
Name: json-c
|
|
|
|
Version: 0.18
|
|
|
|
Release: 0
|
|
|
|
Summary: JSON implementation in C
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
URL: https://github.com/json-c/json-c
|
|
|
|
Source0: https://github.com/json-c/json-c/archive/json-c-%{version}-%{version_date}.tar.gz
|
|
|
|
Source1: baselibs.conf
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
|
|
|
%description
|
|
|
|
JSON-C implements a reference counting object model that allows you to
|
|
|
|
easily construct JSON objects in C, output them as JSON formatted
|
|
|
|
strings and parse JSON formatted strings back into the C
|
|
|
|
representation of JSON objects.
|
|
|
|
|
|
|
|
%package -n %{libsoname}
|
|
|
|
Summary: JSON-C shared library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libsoname}
|
|
|
|
JSON-C implements a reference counting object model that allows you to
|
|
|
|
easily construct JSON objects in C, output them as JSON formatted
|
|
|
|
strings and parse JSON formatted strings back into the C
|
|
|
|
representation of JSON objects.
|
|
|
|
|
|
|
|
This package includes the JSON library.
|
|
|
|
|
|
|
|
%package -n %{libname}-devel
|
|
|
|
Summary: Development headers and libraries for json-c
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{libsoname} = %{version}
|
|
|
|
Provides: %{oldlibname}-devel = %{version}
|
|
|
|
Obsoletes: %{oldlibname}-devel < %{version}
|
|
|
|
|
|
|
|
%description -n %{libname}-devel
|
|
|
|
JSON-C implements a reference counting object model that allows you to
|
|
|
|
easily construct JSON objects in C, output them as JSON formatted
|
|
|
|
strings and parse JSON formatted strings back into the C
|
|
|
|
representation of JSON objects.
|
|
|
|
|
|
|
|
This package includes header files and scripts needed for developers
|
|
|
|
using the json-c library
|
|
|
|
|
|
|
|
%package -n %{libname}-doc
|
|
|
|
Summary: Documentation files
|
|
|
|
Group: Documentation/Other
|
|
|
|
Provides: %{oldlibname}-doc = %{version}
|
|
|
|
Obsoletes: %{oldlibname}-doc < %{version}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n %{libname}-doc
|
|
|
|
JSON-C implements a reference counting object model that allows you to
|
|
|
|
easily construct JSON objects in C, output them as JSON formatted
|
|
|
|
strings and parse JSON formatted strings back into the C
|
|
|
|
representation of JSON objects.
|
|
|
|
|
|
|
|
This package includes the json-c documentation.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n %{name}-json-c-%{version}-%{version_date}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake \
|
|
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
|
|
|
|
-DENABLE_THREADING=ON \
|
|
|
|
-DENABLE_RDRAND=ON
|
2025-02-25 13:58:03 +00:00
|
|
|
%cmake_build
|
- update to 1.91.8:
* ColorEdit, ColorPicker: redesigned how alpha is displayed in
the preview square. (#8335, #1578, #346)
* Removed ImGuiColorEditFlags_AlphaPreview (made value 0):
it is now the default behavior.
* Prior to 1.91.8: alpha was made opaque in the preview by
default _unless_ using ImGuiColorEditFlags_AlphaPreview.
* We now display the preview as transparent by default.
You can use ImGuiColorEditFlags_AlphaOpaque to use old
behavior.
* The new flags may be combined better and allow finer
controls:
* ImGuiColorEditFlags_AlphaOpaque: disable alpha in the
preview, but alpha value still editable.
* ImGuiColorEditFlags_AlphaNoBg: disable rendering a
checkerboard background behind transparent color.
* ImGuiColorEditFlags_AlphaPreviewHalf: display half
opaque / half transparent preview.
* Backends: SDLGPU3: Renamed
ImGui_ImplSDLGPU3_InitInfo::GpuDevice to Device
for consistency. (#8163, #7998, #7988)
* imgui_freetype: fixed issue where glyph advances would
incorrectly be snapped to pixels. Effectively it would only
be noticeable when hinting is disabled with
ImGuiFreeTypeBuilderFlags_NoHinting, as hinting itself
snaps glyph advances.
* Inputs: added IsMouseReleasedWithDelay() helper. (#8337,
#8320)
* Windows, Style: Fixed small rendering issues with menu bar,
resize grip and scrollbar when using thick border sizes.
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=49
2025-02-25 13:56:21 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
|
|
|
|
%ctest
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
# create a compatibilty pkg-config file for software needing it
|
|
|
|
(cd %{buildroot}%{_libdir}/pkgconfig && ln -s json-c.pc json.pc)
|
|
|
|
mkdir -p "%{buildroot}%{_docdir}/%{name}-doc"
|
|
|
|
cp -R doc/html "%{buildroot}%{_docdir}/%{name}-doc"
|
|
|
|
%fdupes %{buildroot}%{_docdir}
|
|
|
|
|
|
|
|
%post -n %{libsoname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libsoname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{libsoname}
|
|
|
|
%{_libdir}/%{libname}.so.*
|
|
|
|
%license COPYING
|
|
|
|
|
|
|
|
%files -n %{libname}-devel
|
|
|
|
%{_libdir}/%{libname}.so
|
|
|
|
%{_includedir}/json-c
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%dir %{_libdir}/cmake/json-c
|
|
|
|
%{_libdir}/cmake/json-c/json-c-config.cmake
|
|
|
|
%{_libdir}/cmake/json-c/json-c-targets-none.cmake
|
|
|
|
%{_libdir}/cmake/json-c/json-c-targets.cmake
|
|
|
|
|
|
|
|
%files -n %{libname}-doc
|
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS ChangeLog README README.html
|
|
|
|
%doc %{_docdir}/%{name}-doc
|
|
|
|
|
|
|
|
%changelog
|