forked from pool/python-simplejson
Accepting request 122373 from home:TheBlackCat:branches:devel:languages:python
- Clean up spec file - Update to version 2.5.2: OBS-URL: https://build.opensuse.org/request/show/122373 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simplejson?expand=0&rev=27
This commit is contained in:
@@ -15,20 +15,22 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: python-simplejson
|
||||
Version: 2.4.0
|
||||
%define modname simplejson
|
||||
Name: python-%{modname}
|
||||
Version: 2.5.2
|
||||
Release: 0
|
||||
Url: http://github.com/simplejson/simplejson
|
||||
Summary: Simple, fast, extensible JSON encoder/decoder for Python
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Source: http://pypi.python.org/packages/source/s/simplejson/simplejson-%{version}.tar.gz
|
||||
Source: http://pypi.python.org/packages/source/s/%{modname}/%{modname}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-distribute
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
%if 0%{?suse_version} <= 1110
|
||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||
%else
|
||||
%py_requires
|
||||
%endif
|
||||
|
||||
%description
|
||||
@@ -38,7 +40,7 @@ with no dependencies, but includes an optional C extension for a
|
||||
serious speed boost.
|
||||
|
||||
%prep
|
||||
%setup -q -n simplejson-%{version}
|
||||
%setup -q -n %{modname}-%{version}
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
|
||||
@@ -52,6 +54,7 @@ python setup.py test
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc CHANGES.txt LICENSE.txt README.rst
|
||||
%{python_sitearch}/*
|
||||
%{python_sitearch}/%{modname}/
|
||||
%{python_sitearch}/%{modname}-%{version}-py%{py_ver}.egg-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user