- Create and install cmake files

- Define libname to make maintenance easier
- Update to 1.5.4

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jsoncpp?expand=0&rev=16
This commit is contained in:
Martin Pluskal 2015-03-09 08:47:04 +00:00 committed by Git OBS Bridge
parent e073da9ea5
commit 6f12e215f1
4 changed files with 44 additions and 11 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:55d5ad859d86588285526627cec74afeadeb9bc6b7dc3c327ec3d14ac5c380dd
size 196493

3
1.5.4.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fc5bee86ecd3acd80227630fac41ba7925f3bf0be6e559e30567750d57b2d7c0
size 197384

View File

@ -1,3 +1,33 @@
-------------------------------------------------------------------
Mon Mar 9 08:36:27 UTC 2015 - mpluskal@suse.com
- Create and install cmake files
- Define libname to make maintenance easier
- Update to 1.5.4
* Support embedded 0s in strings (since UTF-8 allows them).
+ If you use c-string methods, or std::string::c_str(), you
can still have problems.
+ Note that this support has a price: keys are now limited to
1 billion characters (2^30).
* Add feature to allow single-quotes in input JSON (since
JavaScript allows them).
* Propagate rarely-used StaticString thru copy-ctor.
* Let JSON_ASSERT throw std::logic_error instead of
std::runtime_error.
* Skip Python tests by default, and run C++ unit-tests only for
changes.
* Ignore cmake-generated files for in-source builds.
* Add tests. Fix other tests.
* Remove unused code (JSON_VALUE_USE_INTERNAL_MAP).
* Add rejectDupKeys feature.
+ Now part of strictMode.
* Fix minor build issues for VisualStudio.
* Fix compile error for VS2013, plus warnings.
* Add operator[] to Builders.
* In Builders, fix ::validate() (which was always returning
true).
* Fix UTF-8 zeroes bugs in previous patch-versions.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Mar 6 18:24:11 UTC 2015 - mpluskal@suse.com Fri Mar 6 18:24:11 UTC 2015 - mpluskal@suse.com

View File

@ -16,8 +16,9 @@
# #
%define libname lib%{name}1
Name: jsoncpp Name: jsoncpp
Version: 1.5.2 Version: 1.5.4
Release: 0 Release: 0
Summary: C++ library that allows manipulating with JSON Summary: C++ library that allows manipulating with JSON
License: MIT License: MIT
@ -45,7 +46,7 @@ format to store user input files.
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for %{name}
Group: Development/Languages/C and C++ Group: Development/Languages/C and C++
Requires: lib%{name}1 = %{version} Requires: %{libname} = %{version}
%description devel %description devel
JSON is a lightweight data-interchange format. It can represent numbers, JSON is a lightweight data-interchange format. It can represent numbers,
@ -70,11 +71,11 @@ serialization and deserialization to and from strings. It can also preserve
existing comment in unserialization/serialization steps, making it a convenient existing comment in unserialization/serialization steps, making it a convenient
format to store user input files. format to store user input files.
%package -n lib%{name}1 %package -n %{libname}
Summary: Shared library for %{name} Summary: Shared library for %{name}
Group: System/Libraries Group: System/Libraries
%description -n lib%{name}1 %description -n %{libname}
JSON is a lightweight data-interchange format. It can represent numbers, JSON is a lightweight data-interchange format. It can represent numbers,
strings, ordered sequences of values, and collections of name/value pairs. strings, ordered sequences of values, and collections of name/value pairs.
@ -91,7 +92,8 @@ python doxybuild.py --doxygen=%{_bindir}/doxygen --open --with-dot
# path needs to be exported otherwise unit tests will fail # path needs to be exported otherwise unit tests will fail
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{_builddir}/%{name}-%{version}/build/src/lib_json export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{_builddir}/%{name}-%{version}/build/src/lib_json
%cmake -DJSONCPP_LIB_BUILD_SHARED=ON %cmake \
-DJSONCPP_WITH_CMAKE_PACKAGE=ON
make %{?_smp_mflags} make %{?_smp_mflags}
@ -100,11 +102,11 @@ make %{?_smp_mflags}
%fdupes -s dist/doxygen %fdupes -s dist/doxygen
rm -rf %{buildroot}%{_libdir}/lib%{name}.a rm -rf %{buildroot}%{_libdir}/lib%{name}.a
%post -n lib%{name}1 -p /sbin/ldconfig %post -n %{libname} -p /sbin/ldconfig
%postun -n lib%{name}1 -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig
%files -n lib%{name}1 %files -n %{libname}
%defattr(-,root,root) %defattr(-,root,root)
%doc LICENSE %doc LICENSE
%{_libdir}/lib%{name}.so.* %{_libdir}/lib%{name}.so.*
@ -113,6 +115,7 @@ rm -rf %{buildroot}%{_libdir}/lib%{name}.a
%defattr(-,root,root) %defattr(-,root,root)
%doc AUTHORS LICENSE NEWS.txt README.md %doc AUTHORS LICENSE NEWS.txt README.md
%{_libdir}/pkgconfig/%{name}.pc %{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/cmake/%{name}
%{_libdir}/lib%{name}.so %{_libdir}/lib%{name}.so
%{_includedir}/json/ %{_includedir}/json/