2009-07-27 02:56:14 +00:00
|
|
|
#
|
2010-09-17 23:10:19 +00:00
|
|
|
# spec file for package python-simplejson (Version 2.1.1)
|
2009-07-27 02:56:14 +00:00
|
|
|
#
|
2010-09-17 23:10:19 +00:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-07-27 02:56:14 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Summary: Simple, fast, extensible JSON encoder/decoder for Python
|
|
|
|
|
|
|
|
Name: python-simplejson
|
2011-03-08 10:06:11 +00:00
|
|
|
Version: 2.1.3
|
2009-07-27 02:56:14 +00:00
|
|
|
Release: 1
|
|
|
|
License: BSD
|
|
|
|
Url: http://undefined.org/python/#simplejson
|
2010-09-17 23:10:19 +00:00
|
|
|
Group: Development/Libraries/Python
|
2009-07-27 02:56:14 +00:00
|
|
|
Source: simplejson-%{version}.tar.bz2
|
2010-09-17 23:10:19 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-setuptools
|
2009-07-27 02:56:14 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-09-17 23:10:19 +00:00
|
|
|
%{py_requires}
|
2009-07-27 02:56:14 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
simplejson is a simple, fast, complete, correct and extensible JSON
|
|
|
|
<http://json.org> encoder and decoder for Python 2.3+. It is pure Python code
|
|
|
|
with no dependencies, but includes an optional C extension for a serious speed
|
|
|
|
boost.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
License: BSD
|
|
|
|
Summary: Documentation for simplejson
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: %name = %version
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
simplejson is a simple, fast, complete, correct and extensible JSON
|
|
|
|
<http://json.org> encoder and decoder for Python 2.3+. It is pure Python code
|
|
|
|
with no dependencies, but includes an optional C extension for a serious speed
|
|
|
|
boost.
|
|
|
|
|
|
|
|
This package contains documentation for simplejson.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n simplejson-%{version}
|
|
|
|
|
|
|
|
%build
|
2010-09-17 23:10:19 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
2009-07-27 02:56:14 +00:00
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
%install
|
2010-09-17 23:10:19 +00:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
%fdupes %{buildroot}
|
2009-07-27 02:56:14 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root, 0755)
|
2010-09-17 23:10:19 +00:00
|
|
|
%doc LICENSE.txt CHANGES.txt
|
2009-07-27 02:56:14 +00:00
|
|
|
%{py_sitedir}*
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(0644, root, root, 0755)
|
|
|
|
%doc docs index.rst
|
|
|
|
|
|
|
|
%changelog
|