Accepting request 290891 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/290891 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jsoncpp?expand=0&rev=7
This commit is contained in:
commit
c2db2ffe76
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:55d5ad859d86588285526627cec74afeadeb9bc6b7dc3c327ec3d14ac5c380dd
|
||||
size 196493
|
3
1.6.0.tar.gz
Normal file
3
1.6.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ff6953394be63be1c72732a7e8f152e0281bd2a8098ff04d7e81f8a167b4c139
|
||||
size 198286
|
@ -1,3 +1,48 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 15 19:40:03 UTC 2015 - mpluskal@suse.com
|
||||
|
||||
- Update to 1.6.0
|
||||
* Added Json::Exception, plus derived types:
|
||||
Json::RuntimeError
|
||||
Json::LogicError
|
||||
* Clarified when exceptions are thrown.
|
||||
* If you are trapping std::exception, nothing will change for you.
|
||||
* Fixed deprecation macro. (Thx to @Dani-Hub.)
|
||||
* Fixed compilation error for gcc-4.8. (Thx to @connormanning.)
|
||||
* Fixed CharReader::Factory base. (Thx to Tengiz Sharafiev.)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 9 09:05:55 UTC 2015 - mpluskal@suse.com
|
||||
|
||||
- Create and install cmake files
|
||||
- Define libname to make maintenance easier
|
||||
- Use graphviz-gd so that we can generate png files in
|
||||
documentation
|
||||
- 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
|
||||
|
||||
|
21
jsoncpp.spec
21
jsoncpp.spec
@ -16,8 +16,9 @@
|
||||
#
|
||||
|
||||
|
||||
%define libname lib%{name}1
|
||||
Name: jsoncpp
|
||||
Version: 1.5.2
|
||||
Version: 1.6.0
|
||||
Release: 0
|
||||
Summary: C++ library that allows manipulating with JSON
|
||||
License: MIT
|
||||
@ -28,7 +29,7 @@ BuildRequires: cmake
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: graphviz
|
||||
BuildRequires: graphviz-gd
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: python
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@ -45,7 +46,7 @@ format to store user input files.
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Languages/C and C++
|
||||
Requires: lib%{name}1 = %{version}
|
||||
Requires: %{libname} = %{version}
|
||||
|
||||
%description devel
|
||||
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
|
||||
format to store user input files.
|
||||
|
||||
%package -n lib%{name}1
|
||||
%package -n %{libname}
|
||||
Summary: Shared library for %{name}
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n lib%{name}1
|
||||
%description -n %{libname}
|
||||
JSON is a lightweight data-interchange format. It can represent numbers,
|
||||
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
|
||||
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}
|
||||
|
||||
@ -100,11 +102,11 @@ make %{?_smp_mflags}
|
||||
%fdupes -s dist/doxygen
|
||||
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)
|
||||
%doc LICENSE
|
||||
%{_libdir}/lib%{name}.so.*
|
||||
@ -113,6 +115,7 @@ rm -rf %{buildroot}%{_libdir}/lib%{name}.a
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS LICENSE NEWS.txt README.md
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
%{_libdir}/cmake/%{name}
|
||||
%{_libdir}/lib%{name}.so
|
||||
%{_includedir}/json/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user