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