a2c8572
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
a2c8572
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
a2c8572
%endif
a2c8572
a2c8572
%global srcname anyjson
a2c8572
a2c8572
Name:           python-%{srcname}
a2c8572
Version:        0.2.4
a2c8572
Release:        1%{?dist}
a2c8572
Summary:        Wraps the best available JSON implementation available
a2c8572
a2c8572
Group:          Development/Languages
a2c8572
License:        BSD
a2c8572
URL:            http://pypi.python.org/pypi/anyjson
a2c8572
Source0:        http://pypi.python.org/packages/source/a/%{srcname}/%{srcname}-%{version}.tar.gz
a2c8572
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
a2c8572
BuildArch:      noarch
a2c8572
a2c8572
BuildRequires:  python-devel
a2c8572
BuildRequires:  python-setuptools
a2c8572
a2c8572
a2c8572
%description
a2c8572
Anyjson loads whichever is the fastest JSON module installed and
a2c8572
provides a uniform API regardless of which JSON implementation is used.
a2c8572
a2c8572
a2c8572
%prep
a2c8572
%setup -q -n %{srcname}-%{version}
a2c8572
a2c8572
a2c8572
%build
a2c8572
%{__python} setup.py build
a2c8572
a2c8572
a2c8572
%install
a2c8572
rm -rf %{buildroot}
a2c8572
%{__python} setup.py install --skip-build --root %{buildroot}
a2c8572
a2c8572
 
a2c8572
%clean
a2c8572
rm -rf %{buildroot}
a2c8572
a2c8572
a2c8572
%files
a2c8572
%defattr(-,root,root,-)
a2c8572
%doc CHANGELOG LICENSE README
a2c8572
%{python_sitelib}/%{srcname}/
a2c8572
%{python_sitelib}/%{srcname}*.egg-info
a2c8572
a2c8572
a2c8572
%changelog
a2c8572
* Sat Jul 03 2010 Fabian Affolter <fabian@bernewireless.net> - 0.2.4-1
a2c8572
- Initial package