commit
339e5ce49f
Binary file not shown.
BIN
jsoncpp-1.9.3.tar.gz
Normal file
BIN
jsoncpp-1.9.3.tar.gz
Normal file
Binary file not shown.
30
jsoncpp.spec
30
jsoncpp.spec
@ -1,11 +1,11 @@
|
|||||||
Name: jsoncpp
|
Name: jsoncpp
|
||||||
Version: 1.8.4
|
Version: 1.9.3
|
||||||
Release: 6
|
Release: 1
|
||||||
Summary: JSON C++ library
|
Summary: JSON C++ library
|
||||||
License: Public Domain or MIT
|
License: Public Domain or MIT
|
||||||
URL: https://github.com/open-source-parsers/jsoncpp
|
URL: https://github.com/open-source-parsers/jsoncpp
|
||||||
Source0: https://github.com/open-source-parsers/jsoncpp/archive/%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/open-source-parsers/jsoncpp/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
BuildRequires: gcc-c++ cmake >= 3.1 python3-devel
|
BuildRequires: gcc-c++ cmake >= 3.1 python3-devel jsoncpp
|
||||||
|
|
||||||
%description
|
%description
|
||||||
JsonCpp is a C++ library that allows manipulating JSON values,
|
JsonCpp is a C++ library that allows manipulating JSON values,
|
||||||
@ -20,7 +20,6 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
%description devel
|
%description devel
|
||||||
Document files contain library and head files for jsoncpp.
|
Document files contain library and head files for jsoncpp.
|
||||||
|
|
||||||
|
|
||||||
%package help
|
%package help
|
||||||
Summary: Document for jsoncpp
|
Summary: Document for jsoncpp
|
||||||
BuildRequires: doxygen graphviz hardlink
|
BuildRequires: doxygen graphviz hardlink
|
||||||
@ -37,19 +36,20 @@ doxygen -s -u doc/doxyfile.in
|
|||||||
sed -i -e 's!^DOT_FONTNAME.*=.*!DOT_FONTNAME =!g' doc/doxyfile.in
|
sed -i -e 's!^DOT_FONTNAME.*=.*!DOT_FONTNAME =!g' doc/doxyfile.in
|
||||||
|
|
||||||
%build
|
%build
|
||||||
install -d %{_target_platform}
|
install -d %{_vpath_builddir}
|
||||||
cd %{_target_platform}
|
cd %{_vpath_builddir}
|
||||||
%cmake -DBUILD_STATIC_LIBS=OFF -DJSONCPP_WITH_WARNING_AS_ERROR=OFF \
|
%cmake -DBUILD_STATIC_LIBS=OFF -DJSONCPP_WITH_WARNING_AS_ERROR=OFF \
|
||||||
-DJSONCPP_WITH_PKGCONFIG_SUPPORT=ON -DJSONCPP_WITH_CMAKE_PACKAGE=ON \
|
-DJSONCPP_WITH_PKGCONFIG_SUPPORT=ON -DJSONCPP_WITH_CMAKE_PACKAGE=ON \
|
||||||
-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF -DPYTHON_EXECUTABLE="%{__python3}" \
|
-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF -DPYTHON_EXECUTABLE="%{__python3}" \
|
||||||
..
|
..
|
||||||
cd ..
|
cd ..
|
||||||
%make_build -C %{_target_platform}
|
%make_build -C %{_vpath_builddir}
|
||||||
|
cp -p %{_vpath_builddir}/version .
|
||||||
%{__python3} doxybuild.py --with-dot --doxygen %{_bindir}/doxygen
|
%{__python3} doxybuild.py --with-dot --doxygen %{_bindir}/doxygen
|
||||||
|
rm -f version
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install -C %{_target_platform}
|
%make_install -C %{_vpath_builddir}
|
||||||
mkdir -p %{buildroot}%{_docdir}/%{name}
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
||||||
cp README.md %{buildroot}%{_docdir}/%{name}
|
cp README.md %{buildroot}%{_docdir}/%{name}
|
||||||
chmod 644 %{buildroot}%{_docdir}/%{name}/README.md
|
chmod 644 %{buildroot}%{_docdir}/%{name}/README.md
|
||||||
@ -59,9 +59,10 @@ cp dist/doxygen/*/*.{html,png} %{buildroot}%{_docdir}/%{name}/html
|
|||||||
chmod 644 %{buildroot}%{_docdir}/%{name}/html/*.{html,png}
|
chmod 644 %{buildroot}%{_docdir}/%{name}/html/*.{html,png}
|
||||||
touch %{buildroot}%{_docdir}/%{name}/html
|
touch %{buildroot}%{_docdir}/%{name}/html
|
||||||
hardlink -cfv %{buildroot}%{_docdir}/%{name}
|
hardlink -cfv %{buildroot}%{_docdir}/%{name}
|
||||||
|
cp -p %{_libdir}/libjsoncpp.so.* %{buildroot}%{_libdir}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%make_build -C %{_target_platform} jsoncpp_check
|
%make_build -C %{_vpath_builddir} jsoncpp_check
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
@ -74,7 +75,7 @@ hardlink -cfv %{buildroot}%{_docdir}/%{name}
|
|||||||
%doc %dir %{_docdir}/%{name}
|
%doc %dir %{_docdir}/%{name}
|
||||||
%exclude %{_docdir}/%{name}/html
|
%exclude %{_docdir}/%{name}/html
|
||||||
%{_libdir}/lib%{name}.so.*
|
%{_libdir}/lib%{name}.so.*
|
||||||
|
%{_libdir}/lib%{name}.so.%{version}
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_libdir}/lib%{name}.so
|
%{_libdir}/lib%{name}.so
|
||||||
@ -82,12 +83,17 @@ hardlink -cfv %{buildroot}%{_docdir}/%{name}
|
|||||||
%{_libdir}/cmake/*
|
%{_libdir}/cmake/*
|
||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%doc %{_docdir}/%{name}
|
%doc %{_docdir}/%{name}
|
||||||
%doc %{_docdir}/%{name}/README.md
|
%doc %{_docdir}/%{name}/README.md
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 31 2020 wenzhanli<wenzhanli2@huawei.com> - 1.9.3-1
|
||||||
|
- Type:NA
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:update version 1.9.3
|
||||||
|
|
||||||
* Mon Nov 25 2019 zhujunhao <zhujunhao5@huawei.com> - 1.8.4-6
|
* Mon Nov 25 2019 zhujunhao <zhujunhao5@huawei.com> - 1.8.4-6
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user