guile-json/guile-json.spec
Jonathan Brielmaier 88029158dd Accepting request 765461 from home:jbrielmaier:guile-3.0
- Make guile-json-rpmlintrc compatible with Guile 3.0 

- Update to version 3.2.0:
  * Fix writing empty objects to JSON (e.g. (scm->json-string '())).
  * Complex numbers, inf and nan are not allowed anymore as valid numbers
    when building JSON. 

- Update to version 3.1.0 (changes since 1.2.0):
  * Breaking compability to version 1.x and 2.x
  * JSON objects are now defined as alists (instead of hash tables)
    and JSON arrays are now defined as vectors (instead of lists).
    Both of these changes are mainly to use types that have read syntax.
    This will simplify things for the user when defining JSON objects 
    which is probably the most common case. 
  * Added unit tests.
  * scm->json and scm->json-string now support an additional key
    argument #:unicode.
- filter more messages in rpmlintrc
- require guile >= 2.0.10 because it implements srfi-43
- run test suite

OBS-URL: https://build.opensuse.org/request/show/765461
OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/guile-json?expand=0&rev=20
2020-01-18 12:04:44 +00:00

65 lines
2.0 KiB
RPMSpec

#
# spec file for package guile-json
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: guile-json
Version: 3.2.0
Release: 0
Summary: JSON module for Guile
License: GPL-3.0-or-later
Group: Development/Libraries/Other
URL: https://savannah.nongnu.org/projects/guile-json/
Source0: http://download.savannah.gnu.org/releases/guile-json/%{name}-%{version}.tar.gz
Source1: http://download.savannah.gnu.org/releases/guile-json/%{name}-%{version}.tar.gz.sig
Source2: https://savannah.nongnu.org/people/viewgpg.php?user_id=11331#/%{name}.keyring
Source1000: guile-json-rpmlintrc
BuildRequires: guile-devel >= 2.0.10
Requires: guile >= 2.0.10
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Guile-json is JSON module for Guile. It supports parsing and building
JSON documents according to the http:://json.org specification. These
are the main features:
- Strictly complies to http://json.org specification.
- Build JSON documents programmatically via macros.
- Unicode support for strings.
- Allows JSON pretty printing.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%check
make %{?_smp_mflags} check
%install
make install %{_smp_mflags} DESTDIR=%{buildroot}
%files
%defattr(-,root,root,-)
%license COPYING
%doc AUTHORS NEWS README
%{_datadir}/guile*
%{_libdir}/guile*
%changelog