2cba508
%if 0%{?fedora} > 12 || 0%{?rhel} > 6
2cba508
%global with_python3 1
2cba508
%else
2cba508
%{!?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}
Matthias Runge 73db7b7
Version:        0.3.3
9955df3
Release:        7%{?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
BuildArch:      noarch
e116515
2cba508
BuildRequires:  python2-devel
31a6423
BuildRequires:  python-setuptools
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
2cba508
%if 0%{?with_python3}
2cba508
%package -n python3-%{srcname}
2cba508
Summary:        Wraps the best available JSON implementation available
2cba508
BuildRequires:  python3-devel
2cba508
BuildRequires:  python3-setuptools
2cba508
2cba508
%description -n python3-%{srcname}
2cba508
Anyjson loads whichever is the fastest JSON module installed and
2cba508
provides a uniform API regardless of which JSON implementation is used.
2cba508
%endif
e116515
e116515
%prep
e116515
%setup -q -n %{srcname}-%{version}
2cba508
%if 0%{?with_python3}
2cba508
cp -a . %{py3dir}
2cba508
%endif
e116515
e116515
%build
e116515
%{__python} setup.py build
2cba508
%if 0%{?with_python3}
2cba508
pushd %{py3dir}
2cba508
%{__python3} setup.py build
2cba508
popd
2cba508
%endif
e116515
e116515
%install
e116515
rm -rf %{buildroot}
e116515
%{__python} setup.py install --skip-build --root %{buildroot}
2cba508
%if 0%{?with_python3}
2cba508
pushd %{py3dir}
2cba508
%{__python3} setup.py install --skip-build --root %{buildroot}
2cba508
popd
2cba508
%endif
e116515
 
e116515
%clean
e116515
rm -rf %{buildroot}
e116515
e116515
%files
e116515
%defattr(-,root,root,-)
e116515
%doc CHANGELOG LICENSE README
e116515
%{python_sitelib}/%{srcname}/
e116515
%{python_sitelib}/%{srcname}*.egg-info
e116515
2cba508
%if 0%{?with_python3}
2cba508
%files -n python3-%{srcname}
2cba508
%doc CHANGELOG LICENSE README
2cba508
%{python3_sitelib}/%{srcname}/
2cba508
%{python3_sitelib}/%{srcname}*.egg-info
2cba508
%endif
e116515
e116515
%changelog
9955df3
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-7
9955df3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9955df3
43101c3
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-6
43101c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
43101c3
ea05e55
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.3.3-5
ea05e55
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
ea05e55
2a1e829
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-4
2a1e829
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2a1e829
9caae27
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-3
9caae27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9caae27
d213a9d
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.3.3-2
d213a9d
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
d213a9d
Matthias Runge 73db7b7
* Fri Aug 03 2012 Matthias Runge <mrunge@matthias-runge.de> - 0.3.3-1
Matthias Runge 73db7b7
- update to 0.3.3
Matthias Runge 73db7b7
5fcdbef
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-4
5fcdbef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5fcdbef
2cba508
* Tue Jan 31 2012 Fabian Affolter <mail@fabian-affolter.ch> - 0.3.1-3
2cba508
- Minor py3 fixes
2cba508
2cba508
* Sun Jan 29 2012 Haïkel Guémar <hguemar@fedoraproject.org> - 0.3.1-2
2cba508
- add python3 variant
e487c27
Fabian Affolter e1096df
* Sun Apr 03 2011 Fabian Affolter <fabian@bernewireless.net> - 0.3.1-1
Fabian Affolter e1096df
- Updated to new upstream version 0.3.1
Fabian Affolter e1096df
06f6baa
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-2
06f6baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
06f6baa
Fabian Affolter decf70a
* Thu Jan 27 2011 Fabian Affolter <fabian@bernewireless.net> - 0.3-1
Fabian Affolter decf70a
- Updated to new upstream version 0.3
Fabian Affolter decf70a
f33b51f
* Sat Jul 31 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.2.4-2
f33b51f
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
f33b51f
e116515
* Sat Jul 03 2010 Fabian Affolter <fabian@bernewireless.net> - 0.2.4-1
e116515
- Initial package