Blame SPECS/python-tinyrpc.spec

97b34d
%global library tinyrpc
97b34d
%global module tinyrpc
97b34d
97b34d
Name:       python-%{library}
97b34d
Version:    1.0.3
97b34d
Release:    5%{?dist}
97b34d
Summary:    A modular RPC library
97b34d
License:    MIT
97b34d
URL:        https://github.com/mbr/%{library}
97b34d
97b34d
# tarball in pypy does not include tests
97b34d
Source0:    https://github.com/mbr/%{library}/archive/%{version}.tar.gz
97b34d
97b34d
BuildArch:  noarch
97b34d
97b34d
%description
97b34d
tinyrpc is a library for making and handling RPC calls in python.
97b34d
97b34d
%package -n python-%{library}-doc
97b34d
Summary:   Documentation for tinyrpc library
97b34d
97b34d
%description -n python-%{library}-doc
97b34d
Documentation for tinyrpc library
97b34d
97b34d
%package -n python3-%{library}
97b34d
Summary:    A modular RPC library
97b34d
%{?python_provide:%python_provide python3-%{library}}
97b34d
97b34d
BuildRequires:  git
97b34d
BuildRequires:  python3-devel
97b34d
BuildRequires:  python3-setuptools
97b34d
BuildRequires:  python3-funcsigs
97b34d
BuildRequires:  python3-gevent
97b34d
BuildRequires:  python3-greenlet
97b34d
BuildRequires:  python3-mock
97b34d
BuildRequires:  python3-py
97b34d
BuildRequires:  python3-pytest
97b34d
BuildRequires:  python3-requests
97b34d
BuildRequires:  python3-six
97b34d
BuildRequires:  python3-sphinx
97b34d
BuildRequires:  python3-sphinx_rtd_theme
97b34d
BuildRequires:  python3-werkzeug
97b34d
BuildRequires:  python3-zmq
97b34d
97b34d
Requires:  python3-gevent
97b34d
Requires:  python3-greenlet
97b34d
Requires:  python3-requests
97b34d
Requires:  python3-six
97b34d
Requires:  python3-werkzeug
97b34d
Requires:  python3-zmq
97b34d
97b34d
97b34d
%description -n python3-%{library}
97b34d
tinyrpc is a library for making and handling RPC calls in python.
97b34d
97b34d
%package -n python3-%{library}-tests
97b34d
Summary:    Tests for python2-tinyrpc library
97b34d
97b34d
Requires:  python3-funcsigs
97b34d
Requires:  python3-gevent
97b34d
Requires:  python3-greenlet
97b34d
Requires:  python3-mock
97b34d
Requires:  python3-py
97b34d
Requires:  python3-pytest
97b34d
Requires:  python3-requests
97b34d
Requires:  python3-six
97b34d
Requires:  python3-werkzeug
97b34d
Requires:  python3-zmq
97b34d
Requires:  python3-%{library} = %{version}-%{release}
97b34d
97b34d
%description -n python3-%{library}-tests
97b34d
Tests for  python2-tinyrpc library
97b34d
97b34d
%prep
97b34d
%autosetup -n %{library}-%{version} -S git
97b34d
# requirements.txt is wrong, let's manage deps manually
97b34d
rm -f requirements.txt
97b34d
97b34d
%build
97b34d
%py3_build
97b34d
97b34d
# generate html docs
97b34d
%{__python3} setup.py build_sphinx
97b34d
# remove the sphinx-build leftovers
97b34d
rm -rf build/sphinx/html/.{doctrees,buildinfo}
97b34d
97b34d
%install
97b34d
%py3_install
97b34d
# Copy tests
97b34d
mkdir -p %{buildroot}%%{python3_sitelib}/%{library}/tests
97b34d
cp -r tests %{buildroot}%{python3_sitelib}/%{library}/tests
97b34d
97b34d
%check
97b34d
export PYTHONPATH=.
97b34d
# Disable test_dispatch because of https://github.com/mbr/tinyrpc/issues/75
97b34d
py.test-3 -rs --ignore=tests/test_wsgi_transport.py --ignore=tests/test_dispatch.py
97b34d
97b34d
%files -n python-%{library}-doc
97b34d
%license LICENSE
97b34d
%doc build/sphinx/html README.rst
97b34d
97b34d
%files -n python3-%{library}
97b34d
%license LICENSE
97b34d
%{python3_sitelib}/%{module}
97b34d
%{python3_sitelib}/%{module}-*.egg-info
97b34d
%exclude %{python3_sitelib}/%{module}/tests
97b34d
97b34d
%files -n python3-%{library}-tests
97b34d
%license LICENSE
97b34d
%{python3_sitelib}/%{module}/tests
97b34d
97b34d
%changelog
97b34d
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-5
97b34d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
97b34d
97b34d
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-4
97b34d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
97b34d
97b34d
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.3-3
97b34d
- Rebuilt for Python 3.9
97b34d
97b34d
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-2
97b34d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
97b34d
97b34d
* Tue Dec 03 2019 Alfredo Moralejo <amoralej@redhat.com> - 1.0.3-1
97b34d
- Update to 1.0.3
97b34d
97b34d
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-4
97b34d
- Rebuilt for Python 3.8.0rc1 (#1748018)
97b34d
97b34d
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-3
97b34d
- Rebuilt for Python 3.8
97b34d
97b34d
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
97b34d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
97b34d
97b34d
* Tue Jun 04 2019 Alfredo Moralejo <amoralej@redhat.xom> - 1.0.1-1
97b34d
- Update to 1.0.1
97b34d
- Remove python2 subpackages as tinyrpc > 1 does not support python2.
97b34d
97b34d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-5
97b34d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
97b34d
97b34d
* Mon Oct 29 2018 Alfredo Moralejo <amoralej@redhat.com> - 0.9.1-4
97b34d
- Remove python2 subpackages from Fedora.
97b34d
97b34d
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-3
97b34d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
97b34d
97b34d
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.1-2
97b34d
- Rebuilt for Python 3.7
97b34d
97b34d
* Wed Jun 06 2018 Alfredo Moralejo <amoralej@redhat.com> - 0.9.1-1
97b34d
- Update to upstream version 0.9.1.
97b34d
97b34d
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.5-7.20170523git1f38ac
97b34d
- Update Python 2 dependency declarations to new packaging standards
97b34d
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
97b34d
97b34d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-6.20170523git1f38ac
97b34d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
97b34d
97b34d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-5.20170523git1f38ac
97b34d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
97b34d
97b34d
* Mon May 15 2017 Lumír Balhar <lbalhar@redhat.com> - 0.5-4.20170523git1f38ac
97b34d
- Move to the latest upstream commit
97b34d
- Disable non-working tests
97b34d
- Enable python3 subpackage
97b34d
97b34d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-3
97b34d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
97b34d
97b34d
* Thu Jan 12 2017 Alfredo Moralejo <amoralej@redhat.com> 0.5-2
97b34d
- Some fixes applied to spec.
97b34d
97b34d
* Thu Jan 12 2017 Alfredo Moralejo <amoralej@redhat.com> 0.5-1
97b34d
- Initial spec