Blame SPECS/python-zmq.spec

de51f9
# what it's called on pypi
de51f9
%global srcname pyzmq
de51f9
# what it's imported as
de51f9
%global libname zmq
de51f9
# name of egg info directory
de51f9
%global eggname %{srcname}
de51f9
# package name fragment
de51f9
%global pkgname %{libname}
de51f9
de51f9
%global common_description %{expand:
de51f9
The 0MQ lightweight messaging kernel is a library which extends the
de51f9
standard socket interfaces with features traditionally provided by
de51f9
specialized messaging middle-ware products. 0MQ sockets provide an
de51f9
abstraction of asynchronous message queues, multiple messaging
de51f9
patterns, message filtering (subscriptions), seamless access to
de51f9
multiple transport protocols and more.}
de51f9
de51f9
%global run_tests 0
de51f9
de51f9
Name:           python-%{pkgname}
de51f9
Version:        22.0.3
de51f9
Release:        1%{?dist}
de51f9
Summary:        Software library for fast, message-based applications
de51f9
de51f9
License:        LGPLv3+ and ASL 2.0 and BSD
de51f9
URL:            https://zeromq.org/languages/python/
de51f9
Source0:        %pypi_source
de51f9
de51f9
BuildRequires:  gcc
de51f9
BuildRequires:  chrpath
de51f9
BuildRequires:  %{_bindir}/pathfix.py
de51f9
de51f9
BuildRequires:  zeromq-devel
de51f9
de51f9
# For some tests
de51f9
# czmq currently FTBFS, so enable it some time later
de51f9
#BuildRequires:  czmq-devel
de51f9
de51f9
BuildRequires:  python%{python3_pkgversion}-devel
de51f9
BuildRequires:  python%{python3_pkgversion}-setuptools
de51f9
BuildRequires:  python%{python3_pkgversion}-Cython
de51f9
%if 0%{?run_tests}
de51f9
BuildRequires:  python%{python3_pkgversion}-pytest
de51f9
BuildRequires:  python%{python3_pkgversion}-tornado
de51f9
%endif
de51f9
de51f9
de51f9
%description %{common_description}
de51f9
de51f9
de51f9
%package -n python%{python3_pkgversion}-%{pkgname}
de51f9
Summary:        %{summary}
de51f9
License:        LGPLv3+
de51f9
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
de51f9
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
de51f9
Provides:       python%{python3_pkgversion}-%{srcname} = %{version}-%{release}
de51f9
de51f9
%description -n python%{python3_pkgversion}-%{pkgname} %{common_description}
de51f9
de51f9
This package contains the python bindings.
de51f9
de51f9
de51f9
%package -n python%{python3_pkgversion}-%{pkgname}-tests
de51f9
Summary:        %{summary}, testsuite
de51f9
License:        LGPLv3+
de51f9
Requires:       python%{python3_pkgversion}-zmq = %{version}-%{release}
de51f9
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}-tests}
de51f9
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}-tests}
de51f9
Provides:       python%{python3_pkgversion}-%{srcname}-tests = %{version}-%{release}
de51f9
de51f9
%description -n python%{python3_pkgversion}-%{pkgname}-tests %{common_description}
de51f9
de51f9
This package contains the testsuite for the python bindings.
de51f9
de51f9
de51f9
%prep
de51f9
%setup -q -n %{srcname}-%{version}
de51f9
de51f9
# remove bundled libraries
de51f9
rm -rf bundled
de51f9
de51f9
# forcibly regenerate the Cython-generated .c files:
de51f9
find zmq -name "*.c" -delete
de51f9
%{__python3} setup.py cython
de51f9
de51f9
# remove shebangs
de51f9
for lib in zmq/eventloop/*.py; do
de51f9
    sed '/\/usr\/bin\/env/d' $lib > $lib.new &&
de51f9
    touch -r $lib $lib.new &&
de51f9
    mv $lib.new $lib
de51f9
done
de51f9
de51f9
# remove excecutable bits
de51f9
chmod -x examples/pubsub/topics_pub.py
de51f9
chmod -x examples/pubsub/topics_sub.py
de51f9
de51f9
# delete hidden files
de51f9
#find examples -name '.*' | xargs rm -v
de51f9
de51f9
de51f9
%build
de51f9
%py3_build
de51f9
de51f9
de51f9
%install
de51f9
%global RPATH /zmq/{backend/cython,devices}
de51f9
%py3_install
de51f9
pathfix.py -pn -i %{__python3} %{buildroot}%{python3_sitearch}
de51f9
de51f9
de51f9
%check
de51f9
%if 0%{?run_tests}
de51f9
    # Make sure we import from the install directory
de51f9
    #rm zmq/__*.py
de51f9
    PYTHONPATH=%{buildroot}%{python3_sitearch} \
de51f9
        %{__python3} setup.py test
de51f9
%endif
de51f9
de51f9
de51f9
%files -n python%{python3_pkgversion}-%{pkgname}
de51f9
%license COPYING.*
de51f9
%doc README.md
de51f9
# examples/
de51f9
%{python3_sitearch}/%{eggname}-%{version}-py%{python3_version}.egg-info
de51f9
%{python3_sitearch}/%{libname}
de51f9
%exclude %{python3_sitearch}/%{libname}/tests
de51f9
de51f9
%files -n python%{python3_pkgversion}-%{pkgname}-tests
de51f9
%{python3_sitearch}/%{libname}/tests
de51f9
de51f9
de51f9
%changelog
de51f9
* Fri Feb 12 2021 Kevin Fenzi <kevin@scrye.com> - 22.0.3-1
de51f9
- Update to 22.0.3. Fixes rhbz#1928104
de51f9
de51f9
* Wed Feb 03 2021 Kevin Fenzi <kevin@scrye.com> - 22.0.2-1
de51f9
- Update to 22.0.2. Fixes rhbz#1922110
de51f9
de51f9
* Thu Jan 28 2021 Kevin Fenzi <kevin@scrye.com> - 21.0.2-1
de51f9
- Update to 21.0.2. Fixes rhbz#1920351
de51f9
de51f9
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 21.0.0-2
de51f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
de51f9
de51f9
* Sat Jan 16 2021 Kevin Fenzi <kevin@scrye.com> - 21.0.0-1
de51f9
- Update to 21.0.0. Fixes rhbz#1916136
de51f9
de51f9
* Thu Dec 31 2020 Kevin Fenzi <kevin@scrye.com> - 20.0.0-1
de51f9
- Update to 20.0.0. Fixes rhbz#1832893
de51f9
de51f9
* Tue Nov 24 2020 Joel Capitao <jcapitao@redhat.com> - 19.0.2-1
de51f9
- Update to 19.0.2
de51f9
de51f9
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 19.0.0-3
de51f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
de51f9
de51f9
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 19.0.0-2
de51f9
- Rebuilt for Python 3.9
de51f9
de51f9
* Fri Apr 03 2020 Carl George <carl@george.computer> - 19.0.0-1
de51f9
- Latest upstream rhbz#1772343
de51f9
de51f9
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 18.1.0-3
de51f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
de51f9
de51f9
* Tue Jan 14 2020 Jochen Breuer <jbreuer@suse.de> - 18.1.0-3
de51f9
- Providing python-pyzmq, since some packages are still relying on that.
de51f9
  See: https://bugzilla.redhat.com/show_bug.cgi?id=1789889
de51f9
de51f9
* Fri Nov 29 2019 Miro Hrončok <mhroncok@redhat.com> - 18.1.0-2
de51f9
- Subpackages python2-zmq, python2-zmq-test have been removed
de51f9
  See https://fedoraproject.org/wiki/Changes/RetirePython2
de51f9
de51f9
* Sun Oct 06 2019 Kevin Fenzi <kevin@scrye.com> - 18.1.0-1
de51f9
- Update to 18.1.0. Fixes bug #1742606
de51f9
de51f9
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 18.0.2-4
de51f9
- Rebuilt for Python 3.8.0rc1 (#1748018)
de51f9
de51f9
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 18.0.2-3
de51f9
- Rebuilt for Python 3.8
de51f9
de51f9
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 18.0.2-2
de51f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
de51f9
de51f9
* Sun Jun 30 2019 Kevin Fenzi <kevin@scrye.com> - 18.0.2-1
de51f9
- Update to 18.0.2. Fixes bug #1724706
de51f9
de51f9
* Mon Apr 29 2019 Kevin Fenzi <kevin@scrye.com> - 18.0.1-1
de51f9
- Update to 18.0.1. Fixes bug #1601128
de51f9
de51f9
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 17.0.0-4
de51f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
de51f9
de51f9
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 17.0.0-3
de51f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
de51f9
de51f9
* Sun Jun 17 2018 Miro Hrončok <mhroncok@redhat.com> - 17.0.0-2
de51f9
- Rebuilt for Python 3.7
de51f9
de51f9
* Sat May 12 2018 Miro Hrončok <mhroncok@redhat.com> - 17.0.0-1
de51f9
- Update to 17.0.0 (#1538381)
de51f9
- Fix shebangs
de51f9
de51f9
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 16.0.2-7
de51f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
de51f9
de51f9
* Wed Jan 31 2018 Iryna Shcherbina <ishcherb@redhat.com> - 16.0.2-6
de51f9
- Update Python 2 dependency declarations to new packaging standards
de51f9
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
de51f9
de51f9
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 16.0.2-5
de51f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
de51f9
de51f9
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 16.0.2-4
de51f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
de51f9
de51f9
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 16.0.2-3
de51f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
de51f9
de51f9
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 16.0.2-2
de51f9
- Rebuild for Python 3.6
de51f9
de51f9
* Wed Nov 23 2016 Kevin Fenzi <kevin@scrye.com> - 16.0.2-1
de51f9
- Update to 16.0.2. Fixes bug #1397615
de51f9
de51f9
* Sun Nov 13 2016 Thomas Spura <tomspur@fedoraproject.org> - 16.0.1-1
de51f9
- update to 16.0.1
de51f9
- build twice (for installing and testing in-place)
de51f9
de51f9
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 15.3.0-2
de51f9
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
de51f9
de51f9
* Tue Jul 12 2016 Orion Poplawski <orion@cora.nwra.com> - 15.3.0-1
de51f9
- Update to 15.3.0
de51f9
de51f9
* Tue Jul 12 2016 Orion Poplawski <orion@cora.nwra.com> - 14.7.0-7
de51f9
- Use modern provides filtering
de51f9
de51f9
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 14.7.0-6
de51f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
de51f9
de51f9
* Mon Nov 16 2015 Thomas Spura <tomspur@fedoraproject.org> - 14.7.0-5
de51f9
- Use setupegg.py for building/installing to have an unzip'ed egg
de51f9
de51f9
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14.7.0-4
de51f9
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
de51f9
de51f9
* Fri Oct 16 2015 Thomas Spura <tomspur@fedoraproject.org> - 14.7.0-3
de51f9
- rebuilt to pick up new obsoletes/provides
de51f9
de51f9
* Wed Oct 14 2015 Thomas Spura <tomspur@fedoraproject.org> - 14.7.0-2
de51f9
- Use python_provide and py_build macros
de51f9
- Cleanup spec
de51f9
de51f9
* Mon Jun 29 2015 Ralph Bean <rbean@redhat.com> - 14.7.0-2
de51f9
- Support python34 on EPEL7.
de51f9
de51f9
* Tue Jun 23 2015 Thomas Spura <tomspur@fedoraproject.org> - 14.7.0-1
de51f9
- update to 14.7.0
de51f9
- temporarily disable python3 testsuite as it hangs on koji
de51f9
de51f9
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14.4.1-2
de51f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
de51f9
de51f9
* Mon Nov 17 2014 Thomas Spura <tomspur@fedoraproject.org> - 14.4.1-1
de51f9
- update to 14.4.1
de51f9
- build against zeromq-4
de51f9
de51f9
* Wed Aug 27 2014 Thomas Spura <tomspur@fedoraproject.org> - 14.3.1-1
de51f9
- update to 14.3.1
de51f9
de51f9
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 13.0.2-4
de51f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
de51f9
de51f9
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 13.0.2-3
de51f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
de51f9
de51f9
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 13.0.2-2
de51f9
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
de51f9
de51f9
* Mon Aug  5 2013 Thomas Spura <tomspur@fedoraproject.org> - 13.0.2-1
de51f9
- update to new version (fixes FTBFS)
de51f9
de51f9
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 13.0.0-2
de51f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
de51f9
de51f9
* Wed Mar 20 2013 Thomas Spura <tomspur@fedoraproject.org> - 13.0.0-1
de51f9
- update to 13.0.0
de51f9
- add BSD to license list
de51f9
de51f9
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0.1-2
de51f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
de51f9
de51f9
* Mon Oct 15 2012 Thomas Spura <tomspur@fedoraproject.org> - 2.2.0.1-1
de51f9
- update to 2.2.0.1
de51f9
- move to BR zeromq3
de51f9
- not all *.c files may be deleted, when receneration of .c files by Cython
de51f9
- remove bundled folder explicitely
de51f9
de51f9
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 2.2.0-5
de51f9
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
de51f9
de51f9
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 2.2.0-4
de51f9
- force regeneration of .c files by Cython (needed for python 3.3 support)
de51f9
de51f9
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 2.2.0-3
de51f9
- remove rhel logic from with_python3 conditional
de51f9
de51f9
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-2
de51f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
de51f9
de51f9
* Thu Apr 26 2012 Thomas Spura <tomspur@fedoraproject.org> - 2.2.0-1
de51f9
- update to 2.2.0
de51f9
de51f9
* Wed Mar  7 2012 Thomas Spura <tomspur@fedoraproject.org> - 2.1.11-1
de51f9
- update to new version
de51f9
de51f9
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.9-4
de51f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
de51f9
de51f9
* Wed Dec 14 2011 Thomas Spura <tomspur@fedoraproject.org> - 2.1.9-3
de51f9
- tests package requires main package
de51f9
- filter python3 libs
de51f9
de51f9
* Thu Dec  8 2011 Thomas Spura <tomspur@fedoraproject.org> - 2.1.9-2
de51f9
- use proper buildroot macro
de51f9
- don't include tests twice
de51f9
de51f9
* Wed Sep 21 2011 Thomas Spura <tomspur@fedoraproject.org> - 2.1.9-1
de51f9
- update to new version
de51f9
- run testsuite on python3
de51f9
de51f9
* Sun Jul 31 2011 Thomas Spura <tomspur@fedoraproject.org> - 2.1.4-2
de51f9
- don't delete the tests, needed by ipython-tests on runtime
de51f9
- don't use _sourcedir macro
de51f9
de51f9
* Wed Apr  6 2011 Thomas Spura <tomspur@fedoraproject.org> - 2.1.4-1
de51f9
- update to new version (#690199)
de51f9
de51f9
* Wed Mar 23 2011 Thomas Spura <tomspur@fedoraproject.org> - 2.1.1-1
de51f9
- update to new version (#682201)
de51f9
de51f9
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.10.1-2
de51f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
de51f9
de51f9
* Sun Jan 30 2011 Thomas Spura <tomspur@fedoraproject.org> - 2.0.10.1-1
de51f9
- update to new version (fixes memory leak)
de51f9
- no need to run 2to3 on python3 subpackage
de51f9
de51f9
* Thu Jan 13 2011 Thomas Spura <tomspur@fedoraproject.org> - 2.0.10-1
de51f9
- update to new version
de51f9
- remove patch (is upstream)
de51f9
- run tests differently
de51f9
de51f9
* Wed Dec 29 2010 David Malcolm <dmalcolm@redhat.com> - 2.0.8-2
de51f9
- rebuild for newer python3
de51f9
de51f9
* Thu Sep 23 2010 Thomas Spura <tomspur@fedoraproject.org> - 2.0.8-1
de51f9
- update to new version to be comply with zeromp
de51f9
de51f9
* Sun Aug 22 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.1.20100725git18f5d06-4
de51f9
- rebuild with python3.2
de51f9
  http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
de51f9
de51f9
* Thu Aug  5 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.1.20100725git18f5d06-3
de51f9
- add missing BR for 2to3
de51f9
de51f9
* Tue Aug  3 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.1.20100725git18f5d06-2
de51f9
- build python3 subpackage
de51f9
- rename to from pyzmq to python-zmq
de51f9
- change license
de51f9
de51f9
* Sun Jul 25 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.1.20100725git18f5d06-1
de51f9
- renew git snapshot
de51f9
- start from version 0.1 like upstream (not the version from zeromq)
de51f9
- remove buildroot / %%clean
de51f9
de51f9
* Sat Jun 12 2010 Thomas Spura 
de51f9
- initial package (based on upstreams example one)