python-dockerpty/python-dockerpty.spec

60 lines
1.6 KiB
RPMSpec
Raw Normal View History

2020-02-18 16:32:54 +08:00
%bcond_without python3
Name: python-dockerpty
Version: 0.4.1
2020-10-30 10:19:18 +08:00
Release: 3
2020-02-18 16:32:54 +08:00
Summary: Python library to use the pseudo-tty of a docker container
License: ASL 2.0
URL: https://github.com/d11wtq/dockerpty
Source0: https://github.com/d11wtq/dockerpty/archive/v%{version}/dockerpty-%{version}.tar.gz
BuildArch: noarch
%description
Provides the functionality needed to operate the pseudo-tty (PTY) allocated
to a docker container, using the Python client
%if %{with python3}
%package -n python3-dockerpty
Summary: Python library to use the pseudo-tty of a docker container
BuildRequires: python3-devel python3-setuptools
Requires: python3-six
%{?python_provide:%python_provide python3-dockerpty}
%description -n python3-dockerpty
Provides the functionality needed to operate the pseudo-tty (PTY) allocated
to a docker container, using the Python client
%endif
%package_help
%prep
%autosetup -n dockerpty-%{version}
%build
%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s'
%install
%_bindir/python3 setup.py install -O1 --skip-build --root %buildroot
%if %{with python3}
%files -n python3-dockerpty
%defattr(-,root,root)
%license LICENSE.txt
2020-06-16 16:34:16 +08:00
%_prefix/lib/python%{python3_version}/site-packages/dockerpty
%_prefix/lib/python%{python3_version}/site-packages/dockerpty-%{version}-py%{python3_version}.egg-info
2020-02-18 16:32:54 +08:00
%endif
%files help
%defattr(-,root,root)
%doc README.md MANIFEST.in
%changelog
2020-10-30 10:19:18 +08:00
* Thu Oct 22 2020 zhangtao<zhangtao221@huawei.com> - 0.4.1-3
- delete python2
2020-06-16 16:34:16 +08:00
* Tue Jun 16 2020 hanhui<hanhui15@huawei.com> - 0.4.1-2
- fix python3 can not find path
2020-02-18 16:32:54 +08:00
* Tue Feb 11 2020 huzunhao<huzunhao2@huawei.com> - 0.4.1-1
- Package init