bff38cf
# we don't want to provide private python extension libs in python3 dirs
bff38cf
%global __provides_exclude_from ^%{python3_sitearch}/.*\\.so$
36179bc
b37a99a
%global checkout b58cb3a2ee8baaab543729e398fc1cde25ff68c3
36179bc
36179bc
%global srcname pyzmq
Thomas Spura ee162bc
%global modname zmq
36179bc
b37a99a
%global run_tests 0
bc2b5f7
36179bc
Name:           python-zmq
2984d1f
Version:        18.1.0
bff38cf
Release:        2%{?dist}
36179bc
Summary:        Software library for fast, message-based applications
36179bc
Thomas Spura 929a52d
License:        LGPLv3+ and ASL 2.0 and BSD
36179bc
URL:            http://www.zeromq.org/bindings:python
36179bc
# VCS:          git:http://github.com/zeromq/pyzmq.git
36179bc
# git checkout with the commands:
36179bc
# git clone http://github.com/zeromq/pyzmq.git pyzmq.git
36179bc
# cd pyzmq.git
36179bc
# git archive --format=tar --prefix=pyzmq-%%{version}/ %%{checkout} | xz -z --force - > pyzmq-%%{version}.tar.xz
Orion Poplawski 3d6389f
Source0:        https://github.com/zeromq/pyzmq/archive/v%{version}.tar.gz#/pyzmq-%{version}.tar.gz
36179bc
17cb8f0
Provides:       python%{python3_pkgversion}-pyzmq = %{version}
0b26246
BuildRequires:  gcc
Thomas Spura 7a232ed
BuildRequires:  chrpath
b37a99a
BuildRequires:  %{_bindir}/pathfix.py
Thomas Spura 7a232ed
Thomas Spura a0ec17e
BuildRequires:  zeromq-devel
36179bc
Thomas Spura 3852705
# For some tests
Thomas Spura e34ead2
# czmq currently FTBFS, so enable it some time later
Thomas Spura e34ead2
#BuildRequires:  czmq-devel
Thomas Spura 3852705
0698deb
BuildRequires:  python%{python3_pkgversion}-devel
0698deb
BuildRequires:  python%{python3_pkgversion}-setuptools
4823970
BuildRequires:  python%{python3_pkgversion}-Cython
Orion Poplawski 3d6389f
%if 0%{?run_tests}
Orion Poplawski 3d6389f
BuildRequires:  python%{python3_pkgversion}-pytest
Orion Poplawski 3d6389f
BuildRequires:  python%{python3_pkgversion}-tornado
Orion Poplawski 3d6389f
%endif
36179bc
Thomas Spura a0ec17e
36179bc
%description
36179bc
The 0MQ lightweight messaging kernel is a library which extends the
36179bc
standard socket interfaces with features traditionally provided by
36179bc
specialized messaging middle-ware products. 0MQ sockets provide an
36179bc
abstraction of asynchronous message queues, multiple messaging
36179bc
patterns, message filtering (subscriptions), seamless access to
36179bc
multiple transport protocols and more.
36179bc
36179bc
This package contains the python bindings.
36179bc
Thomas Spura 0b1941e
0698deb
%package -n python%{python3_pkgversion}-zmq
bff38cf
Summary:        %{summary}
36179bc
License:        LGPLv3+
Thomas Spura ee162bc
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
0698deb
%description -n python%{python3_pkgversion}-zmq
36179bc
The 0MQ lightweight messaging kernel is a library which extends the
36179bc
standard socket interfaces with features traditionally provided by
36179bc
specialized messaging middle-ware products. 0MQ sockets provide an
36179bc
abstraction of asynchronous message queues, multiple messaging
36179bc
patterns, message filtering (subscriptions), seamless access to
36179bc
multiple transport protocols and more.
36179bc
36179bc
This package contains the python bindings.
Thomas Spura 0b1941e
Thomas Spura 0b1941e
0698deb
%package -n python%{python3_pkgversion}-zmq-tests
bff38cf
Summary:        %{summary}, testsuite
Thomas Spura 0b1941e
License:        LGPLv3+
0698deb
Requires:       python%{python3_pkgversion}-zmq = %{version}-%{release}
Thomas Spura ee162bc
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}-tests}
0698deb
%description -n python%{python3_pkgversion}-zmq-tests
Thomas Spura 0b1941e
The 0MQ lightweight messaging kernel is a library which extends the
Thomas Spura 0b1941e
standard socket interfaces with features traditionally provided by
Thomas Spura 0b1941e
specialized messaging middle-ware products. 0MQ sockets provide an
Thomas Spura 0b1941e
abstraction of asynchronous message queues, multiple messaging
Thomas Spura 0b1941e
patterns, message filtering (subscriptions), seamless access to
Thomas Spura 0b1941e
multiple transport protocols and more.
Thomas Spura 0b1941e
Thomas Spura 0b1941e
This package contains the testsuite for the python bindings.
Thomas Spura 0b1941e
36179bc
36179bc
%prep
36179bc
%setup -q -n %{srcname}-%{version}
3e51fab
Thomas Spura 7a232ed
# remove bundled libraries
Thomas Spura 7a232ed
rm -rf bundled
Thomas Spura 7a232ed
3e51fab
# forcibly regenerate the Cython-generated .c files:
4823970
find zmq -name "*.c" -delete
4823970
%{__python3} setup.py cython
3e51fab
36179bc
# remove shebangs
36179bc
for lib in zmq/eventloop/*.py; do
36179bc
    sed '/\/usr\/bin\/env/d' $lib > $lib.new &&
36179bc
    touch -r $lib $lib.new &&
36179bc
    mv $lib.new $lib
36179bc
done
36179bc
36179bc
# remove excecutable bits
36179bc
chmod -x examples/pubsub/topics_pub.py
36179bc
chmod -x examples/pubsub/topics_sub.py
36179bc
342c17d
# delete hidden files
a0075ca
#find examples -name '.*' | xargs rm -v
a0075ca
342c17d
36179bc
%build
Thomas Spura 5cfd6bb
%py3_build
36179bc
36179bc
36179bc
%install
Thomas Spura 7a232ed
%global RPATH /zmq/{backend/cython,devices}
Thomas Spura 5cfd6bb
%py3_install
b37a99a
pathfix.py -pn -i %{__python3} %{buildroot}%{python3_sitearch}
b37a99a
36179bc
36179bc
%check
bc2b5f7
%if 0%{?run_tests}
Orion Poplawski 3d6389f
    # Make sure we import from the install directory
Thomas Spura ff20d52
    #rm zmq/__*.py
Orion Poplawski 3d6389f
    PYTHONPATH=%{buildroot}%{python3_sitearch} \
Orion Poplawski 3d6389f
        %{__python3} setup.py test
36179bc
%endif
36179bc
36179bc
0698deb
%files -n python%{python3_pkgversion}-zmq
Orion Poplawski 3d6389f
%license COPYING.*
Orion Poplawski 3d6389f
%doc README.md
36179bc
# examples/
36179bc
%{python3_sitearch}/%{srcname}-*.egg-info
bff38cf
%{python3_sitearch}/zmq/
Thomas Spura 8fd9ec1
%exclude %{python3_sitearch}/zmq/tests
Thomas Spura 0b1941e
0698deb
%files -n python%{python3_pkgversion}-zmq-tests
bff38cf
%{python3_sitearch}/zmq/tests/
36179bc
36179bc
36179bc
%changelog
17cb8f0
* Tue Jan 14 2020 Jochen Breuer <jbreuer@suse.de> - 18.1.0-3
17cb8f0
- Providing python-pyzmq, since some packages are still relying on that.
17cb8f0
  See: https://bugzilla.redhat.com/show_bug.cgi?id=1789889
17cb8f0
bff38cf
* Fri Nov 29 2019 Miro Hrončok <mhroncok@redhat.com> - 18.1.0-2
bff38cf
- Subpackages python2-zmq, python2-zmq-test have been removed
bff38cf
  See https://fedoraproject.org/wiki/Changes/RetirePython2
bff38cf
2984d1f
* Sun Oct 06 2019 Kevin Fenzi <kevin@scrye.com> - 18.1.0-1
2984d1f
- Update to 18.1.0. Fixes bug #1742606
2984d1f
a8c4a41
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 18.0.2-4
a8c4a41
- Rebuilt for Python 3.8.0rc1 (#1748018)
a8c4a41
378fa22
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 18.0.2-3
378fa22
- Rebuilt for Python 3.8
378fa22
c1fb4fe
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 18.0.2-2
c1fb4fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c1fb4fe
06f81f9
* Sun Jun 30 2019 Kevin Fenzi <kevin@scrye.com> - 18.0.2-1
06f81f9
- Update to 18.0.2. Fixes bug #1724706
06f81f9
0894275
* Mon Apr 29 2019 Kevin Fenzi <kevin@scrye.com> - 18.0.1-1
0894275
- Update to 18.0.1. Fixes bug #1601128
0894275
1b6b81a
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 17.0.0-4
1b6b81a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1b6b81a
5eac141
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 17.0.0-3
5eac141
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5eac141
2883e89
* Sun Jun 17 2018 Miro Hrončok <mhroncok@redhat.com> - 17.0.0-2
2883e89
- Rebuilt for Python 3.7
2883e89
b37a99a
* Sat May 12 2018 Miro Hrončok <mhroncok@redhat.com> - 17.0.0-1
b37a99a
- Update to 17.0.0 (#1538381)
b37a99a
- Fix shebangs
b37a99a
85858ae
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 16.0.2-7
85858ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
85858ae
787beee
* Wed Jan 31 2018 Iryna Shcherbina <ishcherb@redhat.com> - 16.0.2-6
787beee
- Update Python 2 dependency declarations to new packaging standards
787beee
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
787beee
9a40121
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 16.0.2-5
9a40121
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
9a40121
8f24af5
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 16.0.2-4
8f24af5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8f24af5
d51917e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 16.0.2-3
d51917e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d51917e
f8ffed6
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 16.0.2-2
f8ffed6
- Rebuild for Python 3.6
f8ffed6
96adc70
* Wed Nov 23 2016 Kevin Fenzi <kevin@scrye.com> - 16.0.2-1
96adc70
- Update to 16.0.2. Fixes bug #1397615
96adc70
Thomas Spura ff20d52
* Sun Nov 13 2016 Thomas Spura <tomspur@fedoraproject.org> - 16.0.1-1
Thomas Spura ff20d52
- update to 16.0.1
Thomas Spura ff20d52
- build twice (for installing and testing in-place)
Thomas Spura ff20d52
d314a5b
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 15.3.0-2
d314a5b
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
d314a5b
Orion Poplawski 3d6389f
* Tue Jul 12 2016 Orion Poplawski <orion@cora.nwra.com> - 15.3.0-1
Orion Poplawski 3d6389f
- Update to 15.3.0
Orion Poplawski 3d6389f
Orion Poplawski aec104a
* Tue Jul 12 2016 Orion Poplawski <orion@cora.nwra.com> - 14.7.0-7
Orion Poplawski aec104a
- Use modern provides filtering
Orion Poplawski aec104a
f902240
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 14.7.0-6
f902240
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f902240
Thomas Spura 92c86a7
* Mon Nov 16 2015 Thomas Spura <tomspur@fedoraproject.org> - 14.7.0-5
Thomas Spura 92c86a7
- Use setupegg.py for building/installing to have an unzip'ed egg
Thomas Spura 92c86a7
ad8f60c
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14.7.0-4
ad8f60c
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
ad8f60c
Thomas Spura e01d6be
* Fri Oct 16 2015 Thomas Spura <tomspur@fedoraproject.org> - 14.7.0-3
Thomas Spura e01d6be
- rebuilt to pick up new obsoletes/provides
Thomas Spura e01d6be
Thomas Spura ee162bc
* Wed Oct 14 2015 Thomas Spura <tomspur@fedoraproject.org> - 14.7.0-2
Thomas Spura 5cfd6bb
- Use python_provide and py_build macros
Thomas Spura 5cfd6bb
- Cleanup spec
Thomas Spura ee162bc
0698deb
* Mon Jun 29 2015 Ralph Bean <rbean@redhat.com> - 14.7.0-2
0698deb
- Support python34 on EPEL7.
0698deb
Thomas Spura 3852705
* Tue Jun 23 2015 Thomas Spura <tomspur@fedoraproject.org> - 14.7.0-1
Thomas Spura 3852705
- update to 14.7.0
Thomas Spura e8c1d40
- temporarily disable python3 testsuite as it hangs on koji
Thomas Spura 3852705
1a2809f
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14.4.1-2
1a2809f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1a2809f
Thomas Spura a0ec17e
* Mon Nov 17 2014 Thomas Spura <tomspur@fedoraproject.org> - 14.4.1-1
Thomas Spura a0ec17e
- update to 14.4.1
Thomas Spura a0ec17e
- build against zeromq-4
Thomas Spura a0ec17e
Thomas Spura 7a232ed
* Wed Aug 27 2014 Thomas Spura <tomspur@fedoraproject.org> - 14.3.1-1
Thomas Spura 7a232ed
- update to 14.3.1
Thomas Spura 7a232ed
3a8fb19
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 13.0.2-4
3a8fb19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
3a8fb19
d2afc48
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 13.0.2-3
d2afc48
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d2afc48
ed877dc
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 13.0.2-2
ed877dc
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
ed877dc
Thomas Spura c4b2c8e
* Mon Aug  5 2013 Thomas Spura <tomspur@fedoraproject.org> - 13.0.2-1
Thomas Spura c4b2c8e
- update to new version (fixes FTBFS)
Thomas Spura c4b2c8e
9b236c4
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 13.0.0-2
9b236c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9b236c4
Thomas Spura 929a52d
* Wed Mar 20 2013 Thomas Spura <tomspur@fedoraproject.org> - 13.0.0-1
Thomas Spura 929a52d
- update to 13.0.0
Thomas Spura 929a52d
- add BSD to license list
Thomas Spura 929a52d
94dcac6
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0.1-2
94dcac6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
94dcac6
Thomas Spura 83eb44e
* Mon Oct 15 2012 Thomas Spura <tomspur@fedoraproject.org> - 2.2.0.1-1
Thomas Spura 350aace
- update to 2.2.0.1
Thomas Spura 350aace
- move to BR zeromq3
Thomas Spura e5e1aa4
- not all *.c files may be deleted, when receneration of .c files by Cython
Thomas Spura e5e1aa4
- remove bundled folder explicitely
Thomas Spura 350aace
292f598
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 2.2.0-5
292f598
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
292f598
3e51fab
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 2.2.0-4
3e51fab
- force regeneration of .c files by Cython (needed for python 3.3 support)
3e51fab
52a009b
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 2.2.0-3
52a009b
- remove rhel logic from with_python3 conditional
52a009b
fbd1daa
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-2
fbd1daa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
fbd1daa
Thomas Spura 440b6f1
* Thu Apr 26 2012 Thomas Spura <tomspur@fedoraproject.org> - 2.2.0-1
Thomas Spura 440b6f1
- update to 2.2.0
Thomas Spura 440b6f1
Thomas Spura 6c354bf
* Wed Mar  7 2012 Thomas Spura <tomspur@fedoraproject.org> - 2.1.11-1
Thomas Spura 6c354bf
- update to new version
Thomas Spura 6c354bf
5c7a9fd
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.9-4
5c7a9fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5c7a9fd
Thomas Spura 6d9942d
* Wed Dec 14 2011 Thomas Spura <tomspur@fedoraproject.org> - 2.1.9-3
Thomas Spura 6d9942d
- tests package requires main package
Thomas Spura 6d9942d
- filter python3 libs
Thomas Spura 6d9942d
Thomas Spura 4155cf5
* Thu Dec  8 2011 Thomas Spura <tomspur@fedoraproject.org> - 2.1.9-2
Thomas Spura 4155cf5
- use proper buildroot macro
Thomas Spura 8fd9ec1
- don't include tests twice
Thomas Spura 4155cf5
Thomas Spura 9c45c1e
* Wed Sep 21 2011 Thomas Spura <tomspur@fedoraproject.org> - 2.1.9-1
Thomas Spura 9c45c1e
- update to new version
Thomas Spura 9c45c1e
- run testsuite on python3
Thomas Spura 9c45c1e
Thomas Spura 0b1941e
* Sun Jul 31 2011 Thomas Spura <tomspur@fedoraproject.org> - 2.1.4-2
Thomas Spura 0b1941e
- don't delete the tests, needed by ipython-tests on runtime
Thomas Spura 0b1941e
- don't use _sourcedir macro
Thomas Spura 0b1941e
48bbb9f
* Wed Apr  6 2011 Thomas Spura <tomspur@fedoraproject.org> - 2.1.4-1
48bbb9f
- update to new version (#690199)
48bbb9f
bc2b5f7
* Wed Mar 23 2011 Thomas Spura <tomspur@fedoraproject.org> - 2.1.1-1
bc2b5f7
- update to new version (#682201)
bc2b5f7
b9823d1
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.10.1-2
b9823d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b9823d1
d57ff9e
* Sun Jan 30 2011 Thomas Spura <tomspur@fedoraproject.org> - 2.0.10.1-1
d57ff9e
- update to new version (fixes memory leak)
d57ff9e
- no need to run 2to3 on python3 subpackage
d57ff9e
a0075ca
* Thu Jan 13 2011 Thomas Spura <tomspur@fedoraproject.org> - 2.0.10-1
a0075ca
- update to new version
a0075ca
- remove patch (is upstream)
a0075ca
- run tests differently
a0075ca
9454fd3
* Wed Dec 29 2010 David Malcolm <dmalcolm@redhat.com> - 2.0.8-2
9454fd3
- rebuild for newer python3
9454fd3
342c17d
* Thu Sep 23 2010 Thomas Spura <tomspur@fedoraproject.org> - 2.0.8-1
342c17d
- update to new version to be comply with zeromp
342c17d
5f758c2
* Sun Aug 22 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.1.20100725git18f5d06-4
5f758c2
- rebuild with python3.2
5f758c2
  http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
5f758c2
36179bc
* Thu Aug  5 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.1.20100725git18f5d06-3
36179bc
- add missing BR for 2to3
36179bc
36179bc
* Tue Aug  3 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.1.20100725git18f5d06-2
36179bc
- build python3 subpackage
36179bc
- rename to from pyzmq to python-zmq
36179bc
- change license
36179bc
36179bc
* Sun Jul 25 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.1.20100725git18f5d06-1
36179bc
- renew git snapshot
36179bc
- start from version 0.1 like upstream (not the version from zeromq)
36179bc
- remove buildroot / %%clean
36179bc
36179bc
* Sat Jun 12 2010 Thomas Spura 
36179bc
- initial package (based on upstreams example one)