|
@@ -1,9 +1,9 @@
|
|
|
Name: jsoncpp
|
|
|
-Version: 1.9.3
|
|
|
+Version: 1.9.5
|
|
|
Release: 1%{?_dist_release}
|
|
|
Summary: JSON library implemented in C++
|
|
|
Summary(ja): C++ で実装された JSON ライブラリ
|
|
|
-Group: System Environment/Libraries
|
|
|
+Group: system
|
|
|
Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
|
|
|
@@ -26,49 +26,52 @@ generate.
|
|
|
%package devel
|
|
|
Summary: Development headers and library for %{name}
|
|
|
Summary(ja): %{name} の開発用ヘッダファイルとライブラリ
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
Obsoletes: %{name}-doc < 1.0.0
|
|
|
%description devel
|
|
|
This package contains the development headers and library for %{name}.
|
|
|
|
|
|
|
|
|
+%debug_package
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
%autosetup -p1
|
|
|
|
|
|
-%build
|
|
|
-mkdir -p %{_target_platform}
|
|
|
-pushd %{_target_platform}
|
|
|
|
|
|
+%build
|
|
|
%cmake -DBUILD_STATIC_LIBS=OFF \
|
|
|
+ -DBUILD_OBJECT_LIBS=OFF \
|
|
|
-DJSONCPP_WITH_WARNING_AS_ERROR=OFF \
|
|
|
-DJSONCPP_WITH_PKGCONFIG_SUPPORT=ON \
|
|
|
-DJSONCPP_WITH_CMAKE_PACKAGE=ON \
|
|
|
-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF \
|
|
|
- -DPYTHON_EXECUTABLE="%{__python3}" \
|
|
|
- ..
|
|
|
-popd
|
|
|
-%make_build -C %{_target_platform}
|
|
|
+ -DJSONCPP_WITH_EXAMPLE:BOOL=OFF \
|
|
|
+ -DJSONCPP_WITH_STRICT_ISO:BOOL=ON \
|
|
|
+ -DPYTHON_EXECUTABLE="%{__python3}"
|
|
|
+
|
|
|
+%cmake_build
|
|
|
|
|
|
|
|
|
%check
|
|
|
-%make_build -C %{_target_platform} jsoncpp_check
|
|
|
+# Run tests single threaded.
|
|
|
+%global _smp_mflags -j1
|
|
|
+%ctest
|
|
|
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
-%make_install -C %{_target_platform}
|
|
|
+%cmake_install
|
|
|
|
|
|
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
-%post -p /sbin/ldconfig
|
|
|
-%postun -p /sbin/ldconfig
|
|
|
|
|
|
%files
|
|
|
-%license AUTHORS LICENSE
|
|
|
-%doc README*
|
|
|
+%license LICENSE
|
|
|
+%doc AUTHORS README*
|
|
|
%{_libdir}/lib%{name}.so.*
|
|
|
|
|
|
%files devel
|
|
@@ -80,6 +83,10 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Fri Nov 18 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.9.5-1
|
|
|
+- new upstream release.
|
|
|
+- dropped ldconfig scriptlets.
|
|
|
+
|
|
|
* Thu Jul 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.9.3-1
|
|
|
- new upstream release.
|
|
|
- dropped Patch0000: fixed in upstream.
|