File python-jsonlib.spec of Package python-jsonlib
#
# spec file for package python-jsonlib
#
# Copyright (c) 2017 SUSE LINUX Products 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: python-jsonlib
Version: 1.6.1
Release: 0
Url: https://launchpad.net/jsonlib
Summary: JSON serializer/deserializer for Python
License: GPL-3.0+
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/j/jsonlib/jsonlib-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
Provides: python2-jsonlib = %{version}
%description
JSON is a lightweight data-interchange format. It is often used for exchanging
data between a web server and user agent. This module aims to produce a library
for serializing and deserializing JSON that conforms strictly to RFC 4627.
%prep
%setup -q -n jsonlib-%{version}
%build
CFLAGS="%{optflags}" python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE.txt README.txt
%{python_sitearch}/*
%changelog