!4 jsoncpp Fallback version 1.8.4
Merge pull request !4 from 温占礼/master
This commit is contained in:
commit
7ea4880c03
BIN
jsoncpp-1.8.4.tar.gz
Normal file
BIN
jsoncpp-1.8.4.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
26
jsoncpp.spec
26
jsoncpp.spec
@ -1,6 +1,6 @@
|
||||
Name: jsoncpp
|
||||
Version: 1.9.3
|
||||
Release: 1
|
||||
Version: 1.8.4
|
||||
Release: 6
|
||||
Summary: JSON C++ library
|
||||
License: Public Domain or MIT
|
||||
URL: https://github.com/open-source-parsers/jsoncpp
|
||||
@ -37,20 +37,19 @@ doxygen -s -u doc/doxyfile.in
|
||||
sed -i -e 's!^DOT_FONTNAME.*=.*!DOT_FONTNAME =!g' doc/doxyfile.in
|
||||
|
||||
%build
|
||||
install -d %{_vpath_builddir}
|
||||
cd %{_vpath_builddir}
|
||||
install -d %{_target_platform}
|
||||
cd %{_target_platform}
|
||||
%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 -DPYTHON_EXECUTABLE="%{__python3}" \
|
||||
..
|
||||
cd ..
|
||||
%make_build -C %{_vpath_builddir}
|
||||
cp -p %{_vpath_builddir}/version .
|
||||
%make_build -C %{_target_platform}
|
||||
%{__python3} doxybuild.py --with-dot --doxygen %{_bindir}/doxygen
|
||||
rm -f version
|
||||
|
||||
|
||||
%install
|
||||
%make_install -C %{_vpath_builddir}
|
||||
%make_install -C %{_target_platform}
|
||||
mkdir -p %{buildroot}%{_docdir}/%{name}
|
||||
cp README.md %{buildroot}%{_docdir}/%{name}
|
||||
chmod 644 %{buildroot}%{_docdir}/%{name}/README.md
|
||||
@ -62,7 +61,7 @@ touch %{buildroot}%{_docdir}/%{name}/html
|
||||
hardlink -cfv %{buildroot}%{_docdir}/%{name}
|
||||
|
||||
%check
|
||||
%make_build -C %{_vpath_builddir} jsoncpp_check
|
||||
%make_build -C %{_target_platform} jsoncpp_check
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
@ -74,8 +73,7 @@ hardlink -cfv %{buildroot}%{_docdir}/%{name}
|
||||
%license AUTHORS LICENSE
|
||||
%doc %dir %{_docdir}/%{name}
|
||||
%exclude %{_docdir}/%{name}/html
|
||||
%{_libdir}/lib%{name}.so.24*
|
||||
%{_libdir}/lib%{name}.so.%{version}
|
||||
%{_libdir}/lib%{name}.so.*
|
||||
|
||||
|
||||
%files devel
|
||||
@ -91,11 +89,5 @@ hardlink -cfv %{buildroot}%{_docdir}/%{name}
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Jul 27 2020wenzhanli<wenzhanli2@huawei.com> - 1.9.3-1
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:version update 1.9.3
|
||||
|
||||
* Mon Nov 25 2019 zhujunhao <zhujunhao5@huawei.com> - 1.8.4-6
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user