diff --git a/python-zmq.spec b/python-zmq.spec index bf3b728..b07a13e 100644 --- a/python-zmq.spec +++ b/python-zmq.spec @@ -24,14 +24,18 @@ BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-tornado BuildRequires: python%{python3_pkgversion}-numpy -# The gevent tests are automatically skipped when gevent is not installed. -# When bootstrapping new Python versions, gevent is often not available until very late. -# This bcond allows to ship zmq without gevent when needed. -%bcond gevent 1 %if %{with gevent} BuildRequires: python%{python3_pkgversion}-gevent %endif +%global common_description %{expand: +The 0MQ lightweight messaging kernel is a library which extends the +standard socket interfaces with features traditionally provided by +specialized messaging middle-ware products. 0MQ sockets provide an +abstraction of asynchronous message queues, multiple messaging +patterns, message filtering (subscriptions), seamless access to +multiple transport protocols and more.} + %description %{common_description} @@ -71,16 +75,20 @@ grep -lr "^#\!/usr/bin/env python" | xargs sed -i "1d" # remove excecutable bits find . -type f -executable | xargs chmod -x + %generate_buildrequires %pyproject_buildrequires + %build %pyproject_wheel + %install %pyproject_install %pyproject_save_files zmq + %check # to avoid partially initialized zmq module from cwd cd %{_topdir} @@ -92,6 +100,7 @@ cd %{_topdir} %doc README.md %exclude %{python3_sitearch}/zmq/tests + %files -n python%{python3_pkgversion}-zmq-tests %{python3_sitearch}/zmq/tests