File python-json.spec of Package python-json

#
# spec file for package python-json
#
# 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.
#


%define modname json
Name:           python-json
Summary:        JSON module for Python
Version:        3.4
Release:        5
Url:            http://www.sourceforge.net/projects/json-py
License:        LGPL
Group:          Development/Libraries/Python
Source:         %{modname}-py-%(echo %{version} | sed 's/\./_/g').zip
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-devel unzip
%{py_requires}

%description
json.py is a simple, pure-python implementation of a JSON (http://json.org)
reader and writer. JSON is used to exchange data across systems written in
various languages. It is particularly suited to dynamic languages like Python,
Javascript, etc. JSON = Javascript Object Notation implies it is suitable for
AJAX applications that exchange data from servers to Javascript applications
running on web browser clients.

Authors:
--------
    Patrick D. Logan <patrickdlogan@stardecisions.com>
    Jim Washington

%prep
%setup -q -c
chmod 0644 *

%build
%{py_compile .}

%install
mkdir -p $RPM_BUILD_ROOT%{py_sitedir}
install -m 0644 json.py* minjson.py* $RPM_BUILD_ROOT%{py_sitedir}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc changes.txt jsontest.py license.txt readme.txt
%{py_sitedir}/json.py*
%{py_sitedir}/minjson.py*

%changelog
openSUSE Build Service is sponsored by