Adapted for MSVphere 9 build

i9f changed/i9f/python-dockerpty-0.4.1-33.el9.inferit
Sergey Cherevko 6 months ago
parent 0b37bb25e2
commit e906e7a752
Signed by: scherevko
GPG Key ID: D87CBBC16D2E4A72

@ -7,16 +7,10 @@
# package name fragment
%global pkgname %{srcname}
%if 0%{?fedora} >= 30
%bcond_with python2
%else
%bcond_without python2
%endif
%bcond_without python3
Name: python-%{pkgname}
Version: 0.4.1
Release: 33%{?dist}
Release: 33%{?dist}.inferit
Summary: Python library to use the pseudo-tty of a docker container
License: ASL 2.0
URL: https://github.com/d11wtq/dockerpty
@ -29,18 +23,7 @@ a docker container, using the Python client
%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}
Summary: %{summary}
BuildRequires: python%{python3_pkgversion}-devel
@ -49,42 +32,30 @@ Requires: python%{python3_pkgversion}-six
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
%description -n python%{python3_pkgversion}-%{pkgname} %{_description}
%endif
%prep
%autosetup -n %{srcname}-%{version}
%build
%{?with_python2:%py2_build}
%{?with_python3:%py3_build}
%py3_build
%install
%{?with_python2:%py2_install}
%{?with_python3:%py3_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
%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}
%license LICENSE.txt
%doc README.md MANIFEST.in
%{python3_sitelib}/%{libname}
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
%endif
%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
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-33

Loading…
Cancel
Save