|
|
@ -37,14 +37,11 @@ BuildRequires: zeromq-devel
|
|
|
|
#BuildRequires: czmq-devel
|
|
|
|
#BuildRequires: czmq-devel
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-Cython
|
|
|
|
|
|
|
|
%if 0%{?run_tests}
|
|
|
|
%if 0%{?run_tests}
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
|
BuildRequires: python%{python3_pkgversion}-tornado
|
|
|
|
BuildRequires: python%{python3_pkgversion}-tornado
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description %{common_description}
|
|
|
|
%description %{common_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -79,34 +76,25 @@ This package contains the testsuite for the python bindings.
|
|
|
|
# remove bundled libraries
|
|
|
|
# remove bundled libraries
|
|
|
|
rm -rf bundled
|
|
|
|
rm -rf bundled
|
|
|
|
|
|
|
|
|
|
|
|
# forcibly regenerate the Cython-generated .c files:
|
|
|
|
# remove the Cython .c files in order to regenerate them:
|
|
|
|
find zmq -name "*.c" -delete
|
|
|
|
find zmq -name "*.c" -delete
|
|
|
|
%{__python3} setup.py cython
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# remove shebangs
|
|
|
|
# remove shebangs
|
|
|
|
for lib in zmq/eventloop/*.py; do
|
|
|
|
grep -lr "^#\!/usr/bin/env python" | xargs sed -i "1d"
|
|
|
|
sed '/\/usr\/bin\/env/d' $lib > $lib.new &&
|
|
|
|
|
|
|
|
touch -r $lib $lib.new &&
|
|
|
|
|
|
|
|
mv $lib.new $lib
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# remove excecutable bits
|
|
|
|
# remove excecutable bits
|
|
|
|
chmod -x examples/pubsub/topics_pub.py
|
|
|
|
find . -type f -executable | xargs chmod -x
|
|
|
|
chmod -x examples/pubsub/topics_sub.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# delete hidden files
|
|
|
|
|
|
|
|
#find examples -name '.*' | xargs rm -v
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
|
|
|
%pyproject_buildrequires
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%py3_build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%global RPATH /zmq/{backend/cython,devices}
|
|
|
|
%global RPATH /zmq/{backend/cython,devices}
|
|
|
|
%py3_install
|
|
|
|
%pyproject_install
|
|
|
|
pathfix.py -pn -i %{__python3} %{buildroot}%{python3_sitearch}
|
|
|
|
%pyproject_save_files zmq
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%if 0%{?run_tests}
|
|
|
|
%if 0%{?run_tests}
|
|
|
@ -117,12 +105,8 @@ pathfix.py -pn -i %{__python3} %{buildroot}%{python3_sitearch}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{pkgname}
|
|
|
|
%files -n python%{python3_pkgversion}-%{pkgname} -f %{pyproject_files}
|
|
|
|
%license COPYING.*
|
|
|
|
|
|
|
|
%doc README.md
|
|
|
|
%doc README.md
|
|
|
|
# examples/
|
|
|
|
|
|
|
|
%{python3_sitearch}/%{eggname}-%{version}-py%{python3_version}.egg-info
|
|
|
|
|
|
|
|
%{python3_sitearch}/%{libname}
|
|
|
|
|
|
|
|
%exclude %{python3_sitearch}/%{libname}/tests
|
|
|
|
%exclude %{python3_sitearch}/%{libname}/tests
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{pkgname}-tests
|
|
|
|
%files -n python%{python3_pkgversion}-%{pkgname}-tests
|
|
|
|