|
|
@ -7,16 +7,10 @@
|
|
|
|
# package name fragment
|
|
|
|
# package name fragment
|
|
|
|
%global pkgname %{srcname}
|
|
|
|
%global pkgname %{srcname}
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 30
|
|
|
|
|
|
|
|
%bcond_with python2
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%bcond_without python2
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%bcond_without python3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-%{pkgname}
|
|
|
|
Name: python-%{pkgname}
|
|
|
|
Version: 0.4.1
|
|
|
|
Version: 0.4.1
|
|
|
|
Release: 33%{?dist}
|
|
|
|
Release: 33%{?dist}.inferit
|
|
|
|
Summary: Python library to use the pseudo-tty of a docker container
|
|
|
|
Summary: Python library to use the pseudo-tty of a docker container
|
|
|
|
License: ASL 2.0
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: https://github.com/d11wtq/dockerpty
|
|
|
|
URL: https://github.com/d11wtq/dockerpty
|
|
|
@ -29,18 +23,7 @@ a docker container, using the Python client
|
|
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
|
|
|
%package -n python2-%{pkgname}
|
|
|
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
|
|
|
|
Requires: python2-six
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python2-%{pkgname}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python2-%{pkgname} %{_description}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
%package -n python%{python3_pkgversion}-%{pkgname}
|
|
|
|
%package -n python%{python3_pkgversion}-%{pkgname}
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
@ -49,42 +32,30 @@ Requires: python%{python3_pkgversion}-six
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python%{python3_pkgversion}-%{pkgname} %{_description}
|
|
|
|
%description -n python%{python3_pkgversion}-%{pkgname} %{_description}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{srcname}-%{version}
|
|
|
|
%autosetup -n %{srcname}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%{?with_python2:%py2_build}
|
|
|
|
%py3_build
|
|
|
|
%{?with_python3:%py3_build}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%{?with_python2:%py2_install}
|
|
|
|
%py3_install
|
|
|
|
%{?with_python3:%py3_install}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# we are missing the 'expects' library to run the tests
|
|
|
|
# we are missing the 'expects' library to run the tests
|
|
|
|
# %%check
|
|
|
|
# %%check
|
|
|
|
# LANG=en_US.utf8 py.test-%%{python3_version} -vv tests
|
|
|
|
# LANG=en_US.utf8 py.test-%%{python3_version} -vv tests
|
|
|
|
# LANG=en_US.utf8 py.test-%%{python2_version} -vv tests
|
|
|
|
# LANG=en_US.utf8 py.test-%%{python2_version} -vv tests
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
|
|
|
%files -n python2-%{pkgname}
|
|
|
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
|
|
|
%doc README.md MANIFEST.in
|
|
|
|
|
|
|
|
%{python2_sitelib}/%{libname}
|
|
|
|
|
|
|
|
%{python2_sitelib}/%{eggname}-%{version}-py%{python2_version}.egg-info
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{pkgname}
|
|
|
|
%files -n python%{python3_pkgversion}-%{pkgname}
|
|
|
|
%license LICENSE.txt
|
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.md MANIFEST.in
|
|
|
|
%doc README.md MANIFEST.in
|
|
|
|
%{python3_sitelib}/%{libname}
|
|
|
|
%{python3_sitelib}/%{libname}
|
|
|
|
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
|
|
|
|
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Wed Jul 31 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 0.4.1-33
|
|
|
|
* Wed Jul 31 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 0.4.1-33.inferit
|
|
|
|
|
|
|
|
- Adapted for MSVphere 9 build
|
|
|
|
- Rebuilt for MSVSphere 9.4
|
|
|
|
- Rebuilt for MSVSphere 9.4
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-33
|
|
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-33
|
|
|
|