summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Cacqueray <tdecacqu@redhat.com>2017-07-12 01:42:35 +0000
committerTristan Cacqueray <tdecacqu@redhat.com>2017-07-12 01:43:04 +0000
commit6c8557623482170504bc78b4d52753ac3429d348 (patch)
tree125fe4a587b2b9e6d7d36c6bef792352ae562c34
parentac9140b38ee67de79524a866e2a9e5ab0a982f84 (diff)
Initial importHEADmaster
Change-Id: Iff885364c277041ff39f5a0d280ed3c0d529a58d
-rw-r--r--python-async-timeout.spec49
1 files changed, 49 insertions, 0 deletions
diff --git a/python-async-timeout.spec b/python-async-timeout.spec
new file mode 100644
index 0000000..7163b6a
--- /dev/null
+++ b/python-async-timeout.spec
@@ -0,0 +1,49 @@
+%{?scl:%scl_package python-async-timeout}
+%{!?scl:%global pkg_name %{name}}
+
+Name: %{?scl_prefix}python-async-timeout
+Version: 1.2.1
+Release: 1%{?dist}
+Summary: Timeout context manager for asyncio programs
+
+License: Apache 2
+URL: https://github.com/aio-libs/async_timeout/
+Source0: https://pypi.python.org/packages/eb/a3/9fbe8bf7de4128d8f5562ca0b7b2f81d21b006085149528b937e1624e71f/async-timeout-1.2.1.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: %{?scl_prefix}python-devel
+BuildRequires: %{?scl_prefix}python-setuptools
+
+%{?scl:Requires: %{scl}-runtime}
+%{?scl:BuildRequires: %{scl}-runtime}
+
+%description
+Timeout context manager for asyncio programs
+
+%prep
+%autosetup -n async-timeout-%{version} -p1
+
+%build
+rm -Rf requirements.txt test-requirements.txt *.egg-info
+%{?scl:scl enable %{scl} - << \EOF}
+PBR_VERSION=%{version} %{__python3} setup.py build
+%{?scl:EOF}
+
+%install
+%{?scl:scl enable %{scl} - << \EOF}
+PBR_VERSION=%{version} %{__python3} setup.py install -O1 --skip-build --root %{buildroot}
+%{?scl:EOF}
+
+%check
+%{?scl:scl enable %{scl} - << \EOF}
+%{__python3} -c "import async_timeout"
+%{?scl:EOF}
+
+%files
+%defattr(644,root,root,755)
+%{python3_sitelib}/*
+
+%changelog
+* Sun Jul 02 2017 Tristan Cacqueray <tdecacqu@redhat.com> - 1.2.1-1
+- Initial packaging