c79051f
%global srcname jsonrpclib
132aedb
%global upstream jsonrpclib-pelix
c79051f
dbcad87
Name:           python-%{srcname}
132aedb
Version:        0.3.1
132aedb
Release:        1%{?dist}
c79051f
Summary:        JSON-RPC v2.0 client library for Python
c79051f
c79051f
License:        ASL 2.0
132aedb
URL:            http://github.com/tcalmant/jsonrpclib/
132aedb
Source0:        https://files.pythonhosted.org/packages/source/j/%{upstream}/%{upstream}-%{version}.tar.gz
c79051f
c79051f
BuildArch:      noarch
c79051f
BuildRequires:  python2-devel
132aedb
BuildRequires:  python3-devel
c79051f
118de58
%global _description\
118de58
This project is an implementation of the JSON-RPC v2.0 specification\
132aedb
(backwards-compatible) as a client library, for Python 2.7 and Python 3.\
132aedb
This version is a fork of jsonrpclib by Josh Marshall, usable with Pelix\
132aedb
remote services.\
c79051f
118de58
%description %_description
118de58
118de58
%package -n python2-%{srcname}
118de58
Summary: %summary
118de58
%{?python_provide:%python_provide python2-%{srcname}}
118de58
118de58
%description -n python2-%{srcname} %_description
118de58
132aedb
%package -n python3-%{srcname}
132aedb
Summary: %summary
132aedb
%{?python_provide:%python_provide python3-%{srcname}}
132aedb
132aedb
%description -n python3-%{srcname} %_description
132aedb
c79051f
%prep
132aedb
%setup -q -n %{upstream}-%{version}
132aedb
rm -rf jsonrpclib_pelix.egg-info
c79051f
c79051f
c79051f
%build
132aedb
%py2_build
132aedb
%py3_build
c79051f
c79051f
%install
132aedb
%py2_install
132aedb
%py3_install
132aedb
c79051f
118de58
%files -n python2-%{srcname}
af4b737
%license LICENSE.txt
132aedb
%doc README.rst
dbcad87
%{python2_sitelib}/%{srcname}
132aedb
%{python2_sitelib}/jsonrpclib_pelix-%{version}-py%{python2_version}.egg-info
132aedb
132aedb
%files -n python3-%{srcname}
132aedb
%license LICENSE.txt
132aedb
%doc README.rst
132aedb
%{python3_sitelib}/%{srcname}
132aedb
%{python3_sitelib}/jsonrpclib_pelix-%{version}-py%{python3_version}.egg-info
c79051f
c79051f
c79051f
%changelog
132aedb
* Sat Dec 09 2017 Jonny Heggheim <hegjon@gmail.com> - 0.3.1-1
132aedb
- Changed upstream to jsonrpclib-pelix
132aedb
118de58
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.1.7-5
118de58
- Python 2 binary package renamed to python2-jsonrpclib
118de58
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
118de58
8acd584
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.7-4
8acd584
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8acd584
48dab9b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.7-3
48dab9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
48dab9b
3db405a
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.7-2
3db405a
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
3db405a
af4b737
* Tue Mar 08 2016 Ihar Hrachyshka <ihrachys@redhat.com> 0.1.7-1.el7
af4b737
- Update to 0.1.7
af4b737
d5e4f2d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.3-4
d5e4f2d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d5e4f2d
ed8aec8
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-3
ed8aec8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ed8aec8
89eee60
* Fri Dec  5 2014 Ihar Hrachyshka <ihrachys@redhat.com> - 0.1.3-2
dbcad87
- Added missing python-setuptools build dependency.
dbcad87
- Added python macros for el6.
dbcad87
- Other stylistic changes.
dbcad87
c79051f
* Thu Aug  7 2014 Ihar Hrachyshka <ihrachys@redhat.com> - 0.1.3-1
c79051f
- Initial package for Fedora