Minor spec-file reformatting and organization

[skip changelog]
epel9
Benjamin A. Beasley 2 months ago
parent f47c6f8c6a
commit 42b78e206c

@ -24,14 +24,18 @@ BuildRequires: python%{python3_pkgversion}-pytest
BuildRequires: python%{python3_pkgversion}-tornado BuildRequires: python%{python3_pkgversion}-tornado
BuildRequires: python%{python3_pkgversion}-numpy 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} %if %{with gevent}
BuildRequires: python%{python3_pkgversion}-gevent BuildRequires: python%{python3_pkgversion}-gevent
%endif %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} %description %{common_description}
@ -71,16 +75,20 @@ grep -lr "^#\!/usr/bin/env python" | xargs sed -i "1d"
# remove excecutable bits # remove excecutable bits
find . -type f -executable | xargs chmod -x find . -type f -executable | xargs chmod -x
%generate_buildrequires %generate_buildrequires
%pyproject_buildrequires %pyproject_buildrequires
%build %build
%pyproject_wheel %pyproject_wheel
%install %install
%pyproject_install %pyproject_install
%pyproject_save_files zmq %pyproject_save_files zmq
%check %check
# to avoid partially initialized zmq module from cwd # to avoid partially initialized zmq module from cwd
cd %{_topdir} cd %{_topdir}
@ -92,6 +100,7 @@ cd %{_topdir}
%doc README.md %doc README.md
%exclude %{python3_sitearch}/zmq/tests %exclude %{python3_sitearch}/zmq/tests
%files -n python%{python3_pkgversion}-zmq-tests %files -n python%{python3_pkgversion}-zmq-tests
%{python3_sitearch}/zmq/tests %{python3_sitearch}/zmq/tests

Loading…
Cancel
Save