|
|
c5093d |
%global srcname anyjson
|
|
|
c5093d |
%global sum Wraps the best available JSON implementation
|
|
|
c5093d |
|
|
|
c5093d |
Name: python-%{srcname}
|
|
|
c5093d |
Version: 0.3.3
|
|
|
c5093d |
Release: 29%{?dist}
|
|
|
c5093d |
Summary: %{sum}
|
|
|
c5093d |
|
|
|
c5093d |
License: BSD
|
|
|
c5093d |
URL: http://pypi.python.org/pypi/anyjson
|
|
|
c5093d |
Source0: https://pypi.python.org/packages/source/a/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
|
c5093d |
# Fix Python 3 compatibility
|
|
|
c5093d |
Patch0: anyjson-python3.patch
|
|
|
c5093d |
# Include ujson, raise priority of cjson and drop the 'deprecation'
|
|
|
c5093d |
# warning (it's about as alive as half the others), drop jsonlib,
|
|
|
c5093d |
# jsonlib2 and django.utils.simplejson (which all appear to be dead
|
|
|
c5093d |
# as doornails)
|
|
|
c5093d |
%if 0%{?fedora} > 25 || 0%{?rhel} > 7
|
|
|
c5093d |
Patch1: python-anyjson-update-order-ujson.patch
|
|
|
c5093d |
%else
|
|
|
c5093d |
# Just the same, but don't include ujson, as its behaviour pre-2.0
|
|
|
c5093d |
# was very weird and unexpected, it would 'serialize' all sorts of
|
|
|
c5093d |
# unserializable things
|
|
|
c5093d |
Patch1: python-anyjson-update-order.patch
|
|
|
c5093d |
%endif
|
|
|
c5093d |
BuildArch: noarch
|
|
|
c5093d |
|
|
|
c5093d |
BuildRequires: python3-devel
|
|
|
c5093d |
BuildRequires: python3-setuptools
|
|
|
c5093d |
BuildRequires: python3-six
|
|
|
c5093d |
BuildRequires: python3-nose
|
|
|
c5093d |
|
|
|
c5093d |
BuildRequires: python3-simplejson
|
|
|
c5093d |
|
|
|
c5093d |
%if 0%{?fedora} > 25 || 0%{?rhel} > 7
|
|
|
c5093d |
BuildRequires: python3-ujson
|
|
|
c5093d |
%endif
|
|
|
c5093d |
|
|
|
c5093d |
%description
|
|
|
c5093d |
Anyjson loads whichever is the fastest JSON module installed and
|
|
|
c5093d |
provides a uniform API regardless of which JSON implementation is used.
|
|
|
c5093d |
|
|
|
c5093d |
%package -n python3-%{srcname}
|
|
|
c5093d |
Summary: %{sum}
|
|
|
c5093d |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
c5093d |
Requires: python3-six
|
|
|
c5093d |
|
|
|
c5093d |
%description -n python3-%{srcname}
|
|
|
c5093d |
Anyjson loads whichever is the fastest JSON module installed and
|
|
|
c5093d |
provides a uniform API regardless of which JSON implementation is used.
|
|
|
c5093d |
|
|
|
c5093d |
%prep
|
|
|
c5093d |
%autosetup -n %{srcname}-%{version} -p1
|
|
|
c5093d |
|
|
|
c5093d |
%build
|
|
|
c5093d |
%py3_build
|
|
|
c5093d |
|
|
|
c5093d |
%install
|
|
|
c5093d |
%py3_install
|
|
|
c5093d |
|
|
|
c5093d |
%check
|
|
|
c5093d |
%{__python3} setup.py test
|
|
|
c5093d |
|
|
|
c5093d |
%files -n python3-%{srcname}
|
|
|
c5093d |
%doc CHANGELOG README
|
|
|
c5093d |
%license LICENSE
|
|
|
c5093d |
%{python3_sitelib}/%{srcname}/
|
|
|
c5093d |
%{python3_sitelib}/%{srcname}*.egg-info
|
|
|
c5093d |
|
|
|
c5093d |
%changelog
|
|
|
c5093d |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.3-29
|
|
|
c5093d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
c5093d |
|
|
|
c5093d |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.3-28
|
|
|
c5093d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
c5093d |
|
|
|
c5093d |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.3.3-27
|
|
|
c5093d |
- Rebuilt for Python 3.9
|
|
|
c5093d |
|
|
|
c5093d |
* Thu May 21 2020 Yatin Karel <ykarel@redhat.com> - 0.3.3-26
|
|
|
c5093d |
- Make anyjson buildable in El8 (#1787123)
|
|
|
c5093d |
|
|
|
c5093d |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.3-25
|
|
|
c5093d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
c5093d |
|
|
|
c5093d |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.3-24
|
|
|
c5093d |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
c5093d |
|
|
|
c5093d |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.3-23
|
|
|
c5093d |
- Rebuilt for Python 3.8
|
|
|
c5093d |
|
|
|
c5093d |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.3-22
|
|
|
c5093d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
c5093d |
|
|
|
c5093d |
* Mon Feb 11 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.3-21
|
|
|
c5093d |
- Subpackage python2-anyjson has been removed
|
|
|
c5093d |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
c5093d |
|
|
|
c5093d |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.3-20
|
|
|
c5093d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
c5093d |
|
|
|
c5093d |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.3-19
|
|
|
c5093d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
c5093d |
|
|
|
c5093d |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.3.3-18
|
|
|
c5093d |
- Rebuilt for Python 3.7
|
|
|
c5093d |
|
|
|
c5093d |
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.3.3-17
|
|
|
c5093d |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
c5093d |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
c5093d |
|
|
|
c5093d |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.3-16
|
|
|
c5093d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
c5093d |
|
|
|
c5093d |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.3-15
|
|
|
c5093d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
c5093d |
|
|
|
c5093d |
* Fri Feb 10 2017 Adam Williamson <awilliam@redhat.com> - 0.3.3-14
|
|
|
c5093d |
- Add ujson support (for Fedora > 25, with ujson 2.0+)
|
|
|
c5093d |
|
|
|
c5093d |
* Sat Dec 24 2016 Adam Williamson <awilliam@redhat.com> - 0.3.3-13
|
|
|
c5093d |
- update the Python 3 compatibility patch (fixes build)
|
|
|
c5093d |
- enable tests
|
|
|
c5093d |
- add some more BuildRequires to extend test coverage
|
|
|
c5093d |
|
|
|
c5093d |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com>
|
|
|
c5093d |
- Rebuild for Python 3.6
|
|
|
c5093d |
|
|
|
c5093d |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-12
|
|
|
c5093d |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
c5093d |
|
|
|
c5093d |
* Sat May 14 2016 Fabian Affolter <mail@fabian-affolter.ch> - 0.3.3-11
|
|
|
c5093d |
- Fix FTBFS (rhbz#1307894)
|
|
|
c5093d |
|
|
|
c5093d |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.3-10
|
|
|
c5093d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
c5093d |
|
|
|
c5093d |
* Sat Nov 14 2015 Fabian Affolter <mail@fabian-affolter.ch> - 0.3.3-9
|
|
|
c5093d |
- Cleanup
|
|
|
c5093d |
|
|
|
c5093d |
* Wed Nov 04 2015 Matej Stuchlik <mstuchli@redhat.com> - 0.3.3-8
|
|
|
c5093d |
- Rebuilt for Python 3.5
|
|
|
c5093d |
|
|
|
c5093d |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-7
|
|
|
c5093d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
c5093d |
|
|
|
c5093d |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-6
|
|
|
c5093d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
c5093d |
|
|
|
c5093d |
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.3.3-5
|
|
|
c5093d |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
c5093d |
|
|
|
c5093d |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-4
|
|
|
c5093d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
c5093d |
|
|
|
c5093d |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-3
|
|
|
c5093d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
c5093d |
|
|
|
c5093d |
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.3.3-2
|
|
|
c5093d |
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
c5093d |
|
|
|
c5093d |
* Fri Aug 03 2012 Matthias Runge <mrunge@matthias-runge.de> - 0.3.3-1
|
|
|
c5093d |
- update to 0.3.3
|
|
|
c5093d |
|
|
|
c5093d |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-4
|
|
|
c5093d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
c5093d |
|
|
|
c5093d |
* Tue Jan 31 2012 Fabian Affolter <mail@fabian-affolter.ch> - 0.3.1-3
|
|
|
c5093d |
- Minor py3 fixes
|
|
|
c5093d |
|
|
|
c5093d |
* Sun Jan 29 2012 Haïkel Guémar <hguemar@fedoraproject.org> - 0.3.1-2
|
|
|
c5093d |
- add python3 variant
|
|
|
c5093d |
|
|
|
c5093d |
* Sun Apr 03 2011 Fabian Affolter <fabian@bernewireless.net> - 0.3.1-1
|
|
|
c5093d |
- Updated to new upstream version 0.3.1
|
|
|
c5093d |
|
|
|
c5093d |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-2
|
|
|
c5093d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
c5093d |
|
|
|
c5093d |
* Thu Jan 27 2011 Fabian Affolter <fabian@bernewireless.net> - 0.3-1
|
|
|
c5093d |
- Updated to new upstream version 0.3
|
|
|
c5093d |
|
|
|
c5093d |
* Sat Jul 31 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.2.4-2
|
|
|
c5093d |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
c5093d |
|
|
|
c5093d |
* Sat Jul 03 2010 Fabian Affolter <fabian@bernewireless.net> - 0.2.4-1
|
|
|
c5093d |
- Initial package
|