forked from pool/python-simplejson
- Re-add python-distribute, you can't simply remove that, it breaks RPM updates
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simplejson?expand=0&rev=22
This commit is contained in:
committed by
Git OBS Bridge
parent
10854928ae
commit
fb4def3716
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 20 13:59:30 UTC 2011 - saschpe@suse.de
|
||||||
|
|
||||||
|
- Re-add python-distribute, you can't simply remove that, it breaks RPM updates
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Sep 6 22:10:51 UTC 2011 - alexandre@exatati.com.br
|
Tue Sep 6 22:10:51 UTC 2011 - alexandre@exatati.com.br
|
||||||
|
|
||||||
|
@@ -16,24 +16,22 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
||||||
|
|
||||||
%define mod_name simplejson
|
Name: python-simplejson
|
||||||
|
|
||||||
Name: python-%{mod_name}
|
|
||||||
Version: 2.2.1
|
Version: 2.2.1
|
||||||
Release: 1
|
Release: 0
|
||||||
Url: http://github.com/simplejson/simplejson
|
Url: http://github.com/simplejson/simplejson
|
||||||
Summary: Simple, fast, extensible JSON encoder/decoder for Python
|
Summary: Simple, fast, extensible JSON encoder/decoder for Python
|
||||||
License: MIT License
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: %{mod_name}-%{version}.tar.bz2
|
Source: simplejson-%{version}.tar.bz2
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
|
BuildRequires: python-distribute
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%py_requires
|
%py_requires
|
||||||
%endif
|
%endif
|
||||||
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
simplejson is a simple, fast, complete, correct and extensible
|
simplejson is a simple, fast, complete, correct and extensible
|
||||||
@@ -42,18 +40,14 @@ with no dependencies, but includes an optional C extension for a
|
|||||||
serious speed boost.
|
serious speed boost.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{mod_name}-%{version}
|
%setup -q -n simplejson-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
|
||||||
python setup.py build
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{python_sitearch}/*
|
%{python_sitearch}/*
|
||||||
|
Reference in New Issue
Block a user