commit 3b8944a6bcff262084380231f484b95e52c1ab42
Author: Elan Ruusamäe <g...@delfi.ee>
Date:   Sun Sep 18 00:24:30 2016 +0300

    new, version 2.1
    
    based on fedora package, 732605a

 python-trollius.spec | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 111 insertions(+)
---
diff --git a/python-trollius.spec b/python-trollius.spec
new file mode 100644
index 0000000..549646f
--- /dev/null
+++ b/python-trollius.spec
@@ -0,0 +1,111 @@
+#
+# Conditional build:
+%bcond_without doc     # don't build doc
+# tests make builder hung
+%bcond_with    tests   # do not perform "make test"
+%bcond_without python2 # CPython 2.x module
+%bcond_with    python3 # CPython 3.x module (asyncio is part of Python 3.4 
standard library(
+
+%define                module          trollius
+%define                egg_name        trollius
+%define                pypi_name       trollius
+Summary:       A port of the Tulip asyncio module to Python 2
+Name:          python-trollius
+Version:       2.1
+Release:       1
+License:       Apache v2.0
+Group:         Libraries/Python
+Source0:       
https://files.pythonhosted.org/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+# Source0-md5: 0b36ff1057cb5a93befe7d8ef0edcbf8
+URL:           https://github.com/haypo/trollius
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with python2}
+BuildRequires: python-modules
+BuildRequires: python-setuptools
+%if %{with tests}
+BuildRequires: python-futures
+BuildRequires: python-mock
+BuildRequires: python-modules
+%endif
+%endif
+%if %{with python3}
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+%endif
+Requires:      python-futures
+BuildArch:     noarch
+
+%description
+Trollius provides infrastructure for writing single-threaded
+concurrent code using coroutines, multiplexing I/O access over sockets
+and other resources, running network clients and servers, and other
+related primitives.
+
+Trollius is a portage of the asyncio project (PEP 3156) on Python 2.
+Trollius works on Python 2.6-3.5. It has been tested on Windows,
+Linux, Mac OS X, FreeBSD and OpenIndiana.
+
+%package -n python3-trollius
+Summary:       A port of the Tulip asyncio module
+Group:         Libraries/Python
+
+%description -n python3-trollius
+Trollius provides infrastructure for writing single-threaded
+concurrent code using coroutines, multiplexing I/O access over sockets
+and other resources, running network clients and servers, and other
+related primitives.
+
+Trollius is a portage of the asyncio project (PEP 3156) on Python 2.
+Trollius works on Python 2.6-3.5. It has been tested on Windows,
+Linux, Mac OS X, FreeBSD and OpenIndiana.
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+
+%build
+%if %{with python2}
+%py_build
+
+%if %{with tests}
+%{__python} runtests.py -v1 -x test_subprocess_kill
+%endif
+%endif
+
+%if %{with python3}
+%py3_build
+
+%if %{with tests}
+%{__python3} runtests.py -v1 -x test_subprocess_kill
+%endif
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%if %{with python2}
+%py_install
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-trollius
+%defattr(644,root,root,755)
+%doc README.rst
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-trollius.git/commitdiff/3b8944a6bcff262084380231f484b95e52c1ab42

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to