|
|
d4965dd |
%if 0%{?fedora}
|
|
|
d4965dd |
%global with_python3 1
|
|
|
d4965dd |
%endif
|
|
|
d4965dd |
|
|
|
ac62a95 |
%if 0%{?rhel} && 0%{?rhel} <= 6
|
|
|
ac62a95 |
%{!?__python2: %global __python2 /usr/bin/python2}
|
|
|
ac62a95 |
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
ac62a95 |
%endif
|
|
|
ac62a95 |
|
|
|
ac62a95 |
%global pkgname remoto
|
|
|
ac62a95 |
|
|
|
ac62a95 |
Name: python-%{pkgname}
|
|
|
07bdca3 |
Version: 0.0.30
|
|
|
c462c66 |
Release: 3%{?dist}
|
|
|
ac62a95 |
Summary: Execute remote commands or processes
|
|
|
ac62a95 |
|
|
|
ac62a95 |
License: MIT
|
|
|
01c5f46 |
URL: https://github.com/alfredodeza/remoto
|
|
|
ac62a95 |
|
|
|
9d0cc16 |
Source0: https://files.pythonhosted.org/packages/source/r/%{pkgname}/%{pkgname}-%{version}.tar.gz
|
|
|
ac62a95 |
|
|
|
ac62a95 |
BuildArch: noarch
|
|
|
d4965dd |
BuildRequires: pytest
|
|
|
ac62a95 |
BuildRequires: python2-devel
|
|
|
d4965dd |
BuildRequires: python-execnet >= 1.2.0
|
|
|
d4965dd |
BuildRequires: python-mock
|
|
|
ac62a95 |
BuildRequires: python-setuptools
|
|
|
d4965dd |
%if 0%{?with_python3}
|
|
|
d4965dd |
BuildRequires: python3-devel
|
|
|
d4965dd |
BuildRequires: python3-pytest
|
|
|
d4965dd |
BuildRequires: python3-execnet >= 1.2.0
|
|
|
d4965dd |
BuildRequires: python3-mock
|
|
|
d4965dd |
BuildRequires: python3-setuptools
|
|
|
d4965dd |
%endif # with_python3
|
|
|
ac62a95 |
|
|
|
c462c66 |
%global _description\
|
|
|
c462c66 |
Execute remote commands or processes.
|
|
|
c462c66 |
|
|
|
c462c66 |
%description %_description
|
|
|
c462c66 |
|
|
|
c462c66 |
%package -n python2-%{pkgname}
|
|
|
c462c66 |
Summary: %summary
|
|
|
ac62a95 |
Requires: python-execnet >= 1.2.0
|
|
|
c462c66 |
%{?python_provide:%python_provide python2-%{pkgname}}
|
|
|
ac62a95 |
|
|
|
c462c66 |
%description -n python2-%{pkgname} %_description
|
|
|
ac62a95 |
|
|
|
d4965dd |
%if 0%{?with_python3}
|
|
|
44f7b9e |
%package -n python3-%{pkgname}
|
|
|
d4965dd |
Summary: Execute remote commands or processes
|
|
|
d4965dd |
Group: Development/Languages
|
|
|
d4965dd |
Requires: python3
|
|
|
d4965dd |
Requires: python3-execnet >= 1.2.0
|
|
|
d4965dd |
|
|
|
44f7b9e |
%description -n python3-%{pkgname}
|
|
|
d4965dd |
Execute remote commands or processes.
|
|
|
d4965dd |
%endif # with_python3
|
|
|
ac62a95 |
|
|
|
ac62a95 |
%prep
|
|
|
ac62a95 |
%setup -q -n %{pkgname}-%{version}
|
|
|
ac62a95 |
|
|
|
d4965dd |
%if 0%{?with_python3}
|
|
|
d4965dd |
cp -a . %{py3dir}
|
|
|
d4965dd |
%endif # with_python3
|
|
|
ac62a95 |
|
|
|
ac62a95 |
%build
|
|
|
07bdca3 |
%{__python2} setup.py build
|
|
|
ac62a95 |
|
|
|
d4965dd |
%if 0%{?with_python3}
|
|
|
d4965dd |
pushd %{py3dir}
|
|
|
07bdca3 |
%{__python3} setup.py build
|
|
|
d4965dd |
popd
|
|
|
d4965dd |
%endif # with_python3
|
|
|
ac62a95 |
|
|
|
ac62a95 |
%install
|
|
|
07bdca3 |
%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
ac62a95 |
|
|
|
d4965dd |
%if 0%{?with_python3}
|
|
|
d4965dd |
pushd %{py3dir}
|
|
|
07bdca3 |
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
d4965dd |
popd
|
|
|
d4965dd |
%endif # with_python3
|
|
|
d4965dd |
|
|
|
d4965dd |
|
|
|
d4965dd |
%check
|
|
|
d4965dd |
export PYTHONPATH=$(pwd)
|
|
|
d4965dd |
|
|
|
d4965dd |
py.test-%{python_version} -v remoto/tests
|
|
|
d4965dd |
|
|
|
d4965dd |
%if 0%{?with_python3}
|
|
|
d4965dd |
pushd %{py3dir}
|
|
|
d4965dd |
py.test-%{python3_version} -v remoto/tests
|
|
|
d4965dd |
popd
|
|
|
d4965dd |
%endif # with_python3
|
|
|
ac62a95 |
|
|
|
c462c66 |
%files -n python2-%{pkgname}
|
|
|
44f7b9e |
%license LICENSE
|
|
|
44f7b9e |
%doc README.rst
|
|
|
ac62a95 |
%{python2_sitelib}/*
|
|
|
ac62a95 |
|
|
|
d4965dd |
%if 0%{?with_python3}
|
|
|
44f7b9e |
%files -n python3-%{pkgname}
|
|
|
d4965dd |
%{python3_sitelib}/*
|
|
|
44f7b9e |
%license LICENSE
|
|
|
44f7b9e |
%doc README.rst
|
|
|
d4965dd |
%endif # with_python3
|
|
|
d4965dd |
|
|
|
ac62a95 |
|
|
|
ac62a95 |
%changelog
|
|
|
c462c66 |
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.0.30-3
|
|
|
c462c66 |
- Python 2 binary package renamed to python2-remoto
|
|
|
c462c66 |
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
|
c462c66 |
|
|
|
1878b69 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.30-2
|
|
|
1878b69 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
1878b69 |
|
|
|
07bdca3 |
* Thu Jul 06 2017 Ken Dreyer <ktdreyer@ktdreyer.com> 0.0.30-1
|
|
|
07bdca3 |
- Update to 0.0.30 (rhbz#1468070)
|
|
|
07bdca3 |
- Vendored library is gone upstream, no need for REMOTO_NO_VENDOR
|
|
|
07bdca3 |
- rm Group tag
|
|
|
07bdca3 |
|
|
|
1ef8168 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.29-4
|
|
|
1ef8168 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
1ef8168 |
|
|
|
d1e789b |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.0.29-3
|
|
|
d1e789b |
- Rebuild for Python 3.6
|
|
|
d1e789b |
|
|
|
ad9e259 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.29-2
|
|
|
ad9e259 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
ad9e259 |
|
|
|
7dcaf04 |
* Tue Jun 28 2016 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.0.29-1
|
|
|
7dcaf04 |
- Update to remoto 0.0.29 (rhbz#1347889)
|
|
|
7dcaf04 |
|
|
|
9d0cc16 |
* Mon May 16 2016 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.0.28-1
|
|
|
9d0cc16 |
- Update to remoto 0.0.28 (rhbz#1335338)
|
|
|
9d0cc16 |
- Update Source0 URL for pypi breakage (see
|
|
|
9d0cc16 |
https://bitbucket.org/pypa/pypi/issues/438/backwards-compatible-un-hashed-package)
|
|
|
9d0cc16 |
|
|
|
50f062a |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.27-2
|
|
|
50f062a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
50f062a |
|
|
|
44f7b9e |
* Fri Jan 08 2016 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.0.27-1
|
|
|
44f7b9e |
- Update to remoto 0.0.27 (rhbz#1296748)
|
|
|
44f7b9e |
- Use %%license macro
|
|
|
44f7b9e |
- Drop unneeded %%python_sitelib definition
|
|
|
44f7b9e |
|
|
|
a0dd221 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.25-3
|
|
|
a0dd221 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
a0dd221 |
|
|
|
5561d17 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.25-2
|
|
|
5561d17 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
5561d17 |
|
|
|
5c6f58f |
* Tue Apr 21 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.0.25-1
|
|
|
5c6f58f |
- Update to remoto-0.0.25
|
|
|
5c6f58f |
- rm python3_version compat macro; this has been defined since F13
|
|
|
5c6f58f |
- Remove pre-existing .pyc files during %%prep
|
|
|
5c6f58f |
|
|
|
d4965dd |
* Mon Jan 05 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.0.24-1
|
|
|
d4965dd |
- Update to remoto-0.0.24
|
|
|
d4965dd |
- Add Group tag
|
|
|
d4965dd |
- Enable tests during %%check (RHBZ #1178930)
|
|
|
d4965dd |
- Add python3 subpackage
|
|
|
d4965dd |
|
|
|
01c5f46 |
* Fri Dec 12 2014 Ken Dreyer <kdreyer@redhat.com> - 0.0.23-1
|
|
|
01c5f46 |
- Update to remoto-0.0.23 (RHBZ #1146478)
|
|
|
01c5f46 |
- Use pypi URL for Source0 (requires LICENSE file to be shipped separately)
|
|
|
01c5f46 |
- Use HTTPS for homepage
|
|
|
01c5f46 |
|
|
|
5f7d869 |
* Fri Sep 12 2014 Federico Simoncelli <fsimonce@redhat.com> 0.0.21-1
|
|
|
5f7d869 |
- update remoto-0.0.21
|
|
|
5f7d869 |
|
|
|
f80048b |
* Fri Aug 1 2014 Federico Simoncelli <fsimonce@redhat.com> 0.0.19-1
|
|
|
f80048b |
- update to remoto-0.0.19
|
|
|
f80048b |
|
|
|
ac62a95 |
* Fri Jun 27 2014 Federico Simoncelli <fsimonce@redhat.com> 0.0.17-2
|
|
|
ac62a95 |
- specfile cleanups
|
|
|
ac62a95 |
|
|
|
ac62a95 |
* Sun Jun 22 2014 Federico Simoncelli <fsimonce@redhat.com> 0.0.17-1
|
|
|
ac62a95 |
- initial build
|