[packages/python-dockerpty] new, version 0.4.1

glen glen at pld-linux.org
Sun Mar 20 19:15:25 CET 2016


commit 381a3d5af3008753e3ab9179f36cfa83dc1c514b
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Mar 20 20:13:20 2016 +0200

    new, version 0.4.1
    
    based on fedora package, 8c834c0

 python-dockerpty.spec | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 92 insertions(+)
---
diff --git a/python-dockerpty.spec b/python-dockerpty.spec
new file mode 100644
index 0000000..7c8f3a9
--- /dev/null
+++ b/python-dockerpty.spec
@@ -0,0 +1,92 @@
+#
+# Conditional build:
+# we are missing the 'expects' library to run the tests
+%bcond_with	tests	# do not perform "make test"
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+%define 	module	dockerpty
+Summary:	Python library to use the pseudo-tty of a docker container
+Name:		python-%{module}
+Version:	0.4.1
+Release:	1
+License:	Apache v2.0
+Group:		Development/Libraries
+Source0:	https://github.com/d11wtq/%{module}/archive/98c85b13/%{module}-98c85b13.tar.gz
+# Source0-md5:	076876e830e29135214a2091b4b69c00
+URL:		https://github.com/d11wtq/dockerpty
+BuildRequires:	python-setuptools
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with python2}
+BuildRequires:	python-six
+%endif
+%if %{with python3}
+BuildRequires:	python3-six
+%endif
+Requires:	python-docker-py
+Requires:	python-six
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Provides the functionality needed to operate the pseudo-tty (PTY)
+allocated to a docker container, using the Python client
+
+%package -n python3-%{module}
+Summary:	Python library to use the pseudo-tty of a docker container
+Group:		Development/Languages
+Requires:	python3-docker-py
+Requires:	python3-six
+
+%description -n python3-%{module}
+Provides the functionality needed to operate the pseudo-tty (PTY)
+allocated to a docker container, using the Python client
+
+%prep
+%setup -qc
+mv %{module}-*/* .
+
+%build
+%if %{with python3}
+%py_build
+%if %{with tests}
+LANG=en_US.utf8 py.test-%{py_ver} -vv tests
+%endif
+%endif
+
+%if %{with python3}
+%py3_build
+%if %{with tests}
+LANG=en_US.utf8 py.test-%{py3_ver} -vv tests
+%endif
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%if %{with python2}
+%py_install
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README.md LICENSE.txt MANIFEST.in
+%{py_sitescriptdir}/dockerpty
+%{py_sitescriptdir}/dockerpty-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc README.md LICENSE.txt MANIFEST.in
+%{py3_sitescriptdir}/dockerpty
+%{py3_sitescriptdir}/dockerpty-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-dockerpty.git/commitdiff/381a3d5af3008753e3ab9179f36cfa83dc1c514b



More information about the pld-cvs-commit mailing list