%global upstream_name dockerpty Name: python-%{upstream_name} Version: 0.4.1 Release: 10%{?dist} Summary: Python library to use the pseudo-tty of a docker container License: ASL 2.0 URL: https://github.com/d11wtq/dockerpty Source0: %{url}/archive/v%{version}/%{upstream_name}-%{version}.tar.gz BuildArch: noarch %global _description\ Provides the functionality needed to operate the pseudo-tty (PTY) allocated to\ a docker container, using the Python client %description %{_description} %package -n python2-%{upstream_name} Summary: %{summary} BuildRequires: python2-devel BuildRequires: python2-setuptools Requires: python%{?fedora:2}-six %{?python_provide:%python_provide python2-%{upstream_name}} %description -n python2-%{upstream_name} %{_description} %package -n python%{python3_pkgversion}-%{upstream_name} Summary: %{summary} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools Requires: python%{python3_pkgversion}-six %{?python_provide:%python_provide python%{python3_pkgversion}-%{upstream_name}} %description -n python%{python3_pkgversion}-%{upstream_name} %{_description} %prep %autosetup -n %{upstream_name}-%{version} %build %py2_build %py3_build %install %py2_install %py3_install # we are missing the 'expects' library to run the tests # %%check # LANG=en_US.utf8 py.test-%%{python3_version} -vv tests # LANG=en_US.utf8 py.test-%%{python2_version} -vv tests %files -n python2-%{upstream_name} %license LICENSE.txt %doc README.md MANIFEST.in %{python2_sitelib}/%{upstream_name} %{python2_sitelib}/%{upstream_name}-%{version}-py%{python2_version}.egg-info %files -n python%{python3_pkgversion}-%{upstream_name} %license LICENSE.txt %doc README.md MANIFEST.in %{python3_sitelib}/%{upstream_name} %{python3_sitelib}/%{upstream_name}-%{version}-py%{python3_version}.egg-info %changelog * Fri Feb 09 2018 Fedora Release Engineering - 0.4.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jan 04 2018 Carl George - 0.4.1-9 - EPEL compatibility, including Python 3 build - Mark license appropriately - Use tarball from git tag * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0.4.1-8 - Python 2 binary package renamed to python2-dockerpty See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Thu Jul 27 2017 Fedora Release Engineering - 0.4.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Feb 23 2017 Tomas Tomecek - 0.4.1-6 - don't depend on docker-py when not importing it (#1425461) * Sat Feb 11 2017 Fedora Release Engineering - 0.4.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.4.1-4 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.4.1-3 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Tue Mar 08 2016 Tomas Tomecek - 0.4.1-2 - fix dependencies for py 3 (rhbz#1287729) * Tue Mar 08 2016 Tomas Tomecek - 0.4.1-1 - new upstream release: 0.4.1 * Thu Feb 04 2016 Fedora Release Engineering - 0.3.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Nov 11 2015 Fedora Release Engineering - 0.3.4-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Tue Nov 10 2015 Roman Mohr - 0.3.4-1 - Update to 0.3.4 (#1253859) * Tue Nov 10 2015 Fedora Release Engineering - 0.3.3-4 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Wed Jul 22 2015 Roman Mohr - 0.3.3-3 - Do not run unit tests until python-expects is packaged * Thu Jun 18 2015 Fedora Release Engineering - 0.3.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 06 2015 Roman Mohr - 0.3.3-1 - Python3 compatible version (rhbz#1172357) * Sun Nov 30 2014 Roman Mohr - 0.3.2-1 - Update to latest upstream - Enable unit tests * Fri Aug 22 2014 Adam Miller - 0.2.3-1 - Update to latest upstream * Mon Aug 11 2014 Adam Miller - 0.2.1-4 - Fixed egg-info dir listings, set noarch based on reviewer feedback * Mon Aug 11 2014 Adam Miller - 0.2.1-3 - Fixed files section, fixed py3 summary listing * Fri Aug 08 2014 Adam Miller - 0.2.1-2 - Fix __python vs __python2 macro usage and __python3's description - Set ExclusiveArch because of docker - Remove clean section, not needed * Wed Jul 23 2014 Adam Miller - 0.2.1-1 - Initial package for Fedora