libjansson/libjansson.spec
Adam Majer 7084e13e03 Accepting request 647643 from home:kstreitova:branches:devel:libraries:c_c++
- update to new upstream release 2.11
  * New features:
    - Add `json_pack()` format specifiers s*, o* and O* for values
      that can be omitted if null (#339).
    - Add `json_error_code()` to retrieve numeric error codes
      (#365, #380, #381).
    - Enable thread safety for `json_dump()` on all systems.
      Enable thread safe `json_decref()` and `json_incref()` for
      modern compilers (#389).
    - Add `json_sprintf()` and `json_vsprintf()` (#393).
  * Bug Fixes:
    - Fix incorrect report of success from `json_dump_file()` when
      an error is returned by `fclose()` (#359).
    - Make json_equal() const-correct (#344).
    - Fix incomplete stealing of references by `json_pack()` (#374)
- changelog from 2.9
  * New features:
    - Add JSON_EMBED encoding flag allowing arrays and objects to
      be encoded into existing streams (#329).
    - Add `json_dumpb()` function for dumping to a pre-allocated
      buffer (#328).
    - Add `json_dumpfd()` and `json_loadfd()` functions for dumping
      to streaming file descriptors (#328).
    - Add support for parsing buffers larger than 2GB (#309).

OBS-URL: https://build.opensuse.org/request/show/647643
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libjansson?expand=0&rev=16
2018-11-12 15:51:36 +00:00

99 lines
2.9 KiB
RPMSpec

#
# spec file for package libjansson
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libjansson
%define lname libjansson4
Summary: C library for encoding, decoding and manipulating JSON data
License: MIT
Group: Development/Libraries/C and C++
Version: 2.11
Release: 0
Url: http://digip.org/jansson/
#Git-Clone: git://github.com/akheron/jansson
Source: http://www.digip.org/jansson/releases/jansson-%version.tar.bz2
Source1: baselibs.conf
Source2: http://www.digip.org/jansson/releases/jansson-%version.tar.bz2.asc
Source3: %name.keyring
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkgconfig
%description
Jansson is a C library for encoding, decoding and manipulating JSON data.
It features:
* Simple and intuitive API and data model
* Comprehensive documentation
* No dependencies on other libraries
* Full Unicode support (UTF-8)
* Extensive test suite
%package -n %lname
Summary: C library for encoding, decoding and manipulating JSON data
Group: Development/Libraries/C and C++
%description -n %lname
Jansson is a C library for encoding, decoding and manipulating JSON data.
It features:
* Simple and intuitive API and data model
* Comprehensive documentation
* No dependencies on other libraries
* Full Unicode support (UTF-8)
* Extensive test suite
%package devel
Summary: Development files for libjansson
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
Jansson is a C library for encoding, decoding and manipulating JSON data.
It features:
* Simple and intuitive API and data model
* Comprehensive documentation
* No dependencies on other libraries
* Full Unicode support (UTF-8)
* Extensive test suite
%prep
%setup -q -n jansson-%{version}
%build
%configure --disable-static
make %{?_smp_mflags}
%install
%make_install
rm -f "%buildroot/%_libdir"/*.la;
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%defattr(-,root,root)
%{_libdir}/libjansson.so.4*
%files devel
%defattr(-,root,root)
%{_includedir}/jansson.h
%{_includedir}/jansson_config.h
%{_libdir}/libjansson.so
%{_libdir}/pkgconfig/jansson.pc
%changelog