|
Jeroen van Meeuwen (Kolab Systems) |
d0fbfcf |
%if 0%{?fedora} || 0%{?rhel} >= 8
|
|
|
507e884 |
%global with_python3 1
|
|
|
4560763 |
%endif
|
|
|
4560763 |
|
|
|
4560763 |
%if 0%{?rhel} && 0%{?rhel} <= 6
|
|
|
4560763 |
%{!?__python2: %global __python2 /usr/bin/python2}
|
|
|
4560763 |
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
4560763 |
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
4560763 |
%endif
|
|
|
4560763 |
|
|
|
36e5744 |
%global modname txZMQ
|
|
|
36e5744 |
|
|
|
de0a37f |
Name: python-txzmq
|
|
|
d9b27c2 |
Version: 0.8.0
|
|
|
bf815c3 |
Release: 8%{?dist}
|
|
|
de0a37f |
Summary: Twisted bindings for ZeroMQ
|
|
|
de0a37f |
|
|
|
de0a37f |
License: GPLv2
|
|
|
507e884 |
URL: https://github.com/smira/%{modname}
|
|
|
d9b27c2 |
Source0: %{url}/archive/%{version}.tar.gz
|
|
|
de0a37f |
|
|
|
59cb41e |
BuildArch: noarch
|
|
|
de0a37f |
|
|
|
de0a37f |
BuildRequires: python2-devel
|
|
|
507e884 |
BuildRequires: python2-setuptools
|
|
|
507e884 |
BuildRequires: python2-nose
|
|
|
507e884 |
BuildRequires: python2-zmq >= 13.0.0
|
|
|
604421a |
BuildRequires: python2-twisted
|
|
|
507e884 |
BuildRequires: python2-six
|
|
|
de0a37f |
|
|
|
4560763 |
%if 0%{?with_python3}
|
|
|
4560763 |
BuildRequires: python3-devel
|
|
|
4560763 |
BuildRequires: python3-setuptools
|
|
|
4560763 |
BuildRequires: python3-nose
|
|
|
4560763 |
BuildRequires: python3-zmq >= 13.0.0
|
|
|
507e884 |
BuildRequires: python3-twisted
|
|
|
4560763 |
BuildRequires: python3-six
|
|
|
4560763 |
%endif
|
|
|
de0a37f |
|
|
|
74277b6 |
%global _description\
|
|
|
74277b6 |
txZMQ allows to integrate easily ZeroMQ sockets into Twisted event loop\
|
|
|
4560763 |
(reactor).
|
|
|
4560763 |
|
|
|
74277b6 |
%description %_description
|
|
|
74277b6 |
|
|
|
74277b6 |
%package -n python2-txzmq
|
|
|
74277b6 |
Summary: %summary
|
|
|
74277b6 |
Requires: python2-zmq >= 13.0.0
|
|
|
604421a |
Requires: python2-twisted
|
|
|
74277b6 |
Requires: python2-six
|
|
|
74277b6 |
%{?python_provide:%python_provide python2-txzmq}
|
|
|
74277b6 |
|
|
|
74277b6 |
%description -n python2-txzmq %_description
|
|
|
74277b6 |
|
|
|
4560763 |
%if 0%{?with_python3}
|
|
|
4560763 |
%package -n python3-txzmq
|
|
|
4560763 |
Summary: Twisted bindings for ZeroMQ
|
|
|
4560763 |
|
|
|
4560763 |
Requires: python3-zmq >= 13.0.0
|
|
|
507e884 |
Requires: python3-twisted
|
|
|
4560763 |
Requires: python3-six
|
|
|
4560763 |
|
|
|
4560763 |
%description -n python3-txzmq
|
|
|
4560763 |
txZMQ allows to integrate easily ZeroMQ sockets into Twisted event loop
|
|
|
4560763 |
(reactor).
|
|
|
4560763 |
%endif
|
|
|
4560763 |
|
|
|
de0a37f |
|
|
|
de0a37f |
%prep
|
|
|
d9b27c2 |
%setup -q -n %{modname}-%{version}
|
|
|
de0a37f |
|
|
|
095438a |
# Patch out the setuptools requirement on Twisted since epel doesn't ship
|
|
|
095438a |
# twisted egg-info
|
|
|
2eb4bc2 |
%if 0%{?rhel}
|
|
|
095438a |
%{__sed} -i 's/"Twisted",//' setup.py
|
|
|
095438a |
%endif
|
|
|
095438a |
|
|
|
4560763 |
%if 0%{?with_python3}
|
|
|
4560763 |
rm -rf %{py3dir}
|
|
|
4560763 |
cp -a . %{py3dir}
|
|
|
4560763 |
%endif
|
|
|
4560763 |
|
|
|
de0a37f |
%build
|
|
|
507e884 |
%py2_build
|
|
|
4560763 |
|
|
|
4560763 |
%if 0%{?with_python3}
|
|
|
507e884 |
%py3_build
|
|
|
4560763 |
%endif
|
|
|
de0a37f |
|
|
|
de0a37f |
%check
|
|
Jeroen van Meeuwen (Kolab Systems) |
d0fbfcf |
PYTHONPATH=$(pwd) nosetests-%{python2_version}
|
|
|
de0a37f |
|
|
|
4560763 |
%if 0%{?with_python3}
|
|
|
4560763 |
pushd %{py3dir}
|
|
|
4560763 |
PYTHONPATH=$(pwd) nosetests-%{python3_version}
|
|
|
4560763 |
popd
|
|
|
4560763 |
%endif
|
|
|
4560763 |
|
|
|
de0a37f |
%install
|
|
|
507e884 |
%py2_install
|
|
|
4560763 |
|
|
|
4560763 |
%if 0%{?with_python3}
|
|
|
507e884 |
%py3_install
|
|
|
4560763 |
%endif
|
|
|
de0a37f |
|
|
|
74277b6 |
%files -n python2-txzmq
|
|
|
507e884 |
%doc README.rst
|
|
|
507e884 |
%license LICENSE.txt
|
|
|
4560763 |
%{python2_sitelib}/txzmq/
|
|
|
4560763 |
%{python2_sitelib}/txZMQ-%{version}*.egg-info
|
|
|
4560763 |
|
|
|
4560763 |
%if 0%{?with_python3}
|
|
|
4560763 |
%files -n python3-txzmq
|
|
|
507e884 |
%doc README.rst
|
|
|
507e884 |
%license LICENSE.txt
|
|
|
4560763 |
%{python3_sitelib}/txzmq/
|
|
|
4560763 |
%{python3_sitelib}/txZMQ-%{version}*.egg-info
|
|
|
4560763 |
%endif
|
|
|
de0a37f |
|
|
|
de0a37f |
%changelog
|
|
|
bf815c3 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-8
|
|
|
bf815c3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
bf815c3 |
|
|
|
cdff04a |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-7
|
|
|
cdff04a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
cdff04a |
|
|
|
212a1b9 |
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 0.8.0-6
|
|
|
212a1b9 |
- Rebuilt for Python 3.7
|
|
|
212a1b9 |
|
|
|
604421a |
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.8.0-5
|
|
|
604421a |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
604421a |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
604421a |
|
|
|
0aeb032 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-4
|
|
|
0aeb032 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
0aeb032 |
|
|
|
74277b6 |
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.8.0-3
|
|
|
74277b6 |
- Python 2 binary package renamed to python2-txzmq
|
|
|
74277b6 |
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
|
74277b6 |
|
|
|
6e386a5 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2
|
|
|
6e386a5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
6e386a5 |
|
|
|
d9b27c2 |
* Fri Feb 17 2017 Lumir Balhar <lbalhar@redhat.com> - 0.8.0-1
|
|
|
d9b27c2 |
- New upstream release
|
|
|
d9b27c2 |
|
|
|
e386c38 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.4-7.git772df64
|
|
|
e386c38 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
e386c38 |
|
|
|
3ef730f |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.7.4-6.git772df64
|
|
|
3ef730f |
- Rebuild for Python 3.6
|
|
|
3ef730f |
|
|
|
094d42c |
* Tue Jul 26 2016 Lumir Balhar <lbalhar@redhat.com> - 0.7.4-5.git772df64
|
|
|
507e884 |
- Enabled Py3 support
|
|
|
507e884 |
- Changed source to the latest commit on GitHub
|
|
|
507e884 |
|
|
|
bf75771 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-4
|
|
|
bf75771 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
bf75771 |
|
|
|
a602e39 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.4-3
|
|
|
a602e39 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
a602e39 |
|
|
|
db42049 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-2
|
|
|
db42049 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
db42049 |
|
|
|
1b80bfa |
* Tue Mar 24 2015 Ralph Bean <rbean@redhat.com> - 0.7.4-1
|
|
|
1b80bfa |
- new version
|
|
|
1b80bfa |
|
|
|
876fe04 |
* Wed Aug 20 2014 Ralph Bean <rbean@redhat.com> - 0.7.3-1
|
|
|
876fe04 |
- Latest upstream with support for zmq reconnect options.
|
|
|
876fe04 |
|
|
|
67dfaf8 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-2
|
|
|
67dfaf8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
67dfaf8 |
|
|
|
4560763 |
* Sat Apr 19 2014 Ralph Bean <rbean@redhat.com> - 0.7.2-1
|
|
|
4560763 |
- Latest upstream with python3 support -- woot, woot!
|
|
|
4560763 |
|
|
|
8c26ee5 |
* Tue Jan 28 2014 Ralph Bean <rbean@redhat.com> - 0.7.0-1
|
|
|
8c26ee5 |
- Latest upstream.
|
|
|
8c26ee5 |
- Dropped support for older pyzmq.
|
|
|
8c26ee5 |
|
|
|
cc096ea |
* Tue Jan 14 2014 Ralph Bean <rbean@redhat.com> - 0.6.2-3
|
|
|
cc096ea |
- Narrow dep down to the twisted-core subpackage.
|
|
|
cc096ea |
|
|
|
e5c9450 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-2
|
|
|
e5c9450 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
e5c9450 |
|
|
|
cd301b1 |
* Thu Apr 11 2013 Ralph Bean <rbean@redhat.com> - 0.6.2-1
|
|
|
cd301b1 |
- Latest upstream including our patches.
|
|
|
cd301b1 |
- Removed patches 2 through 5 for pyzmq compat.
|
|
|
cd301b1 |
|
|
|
59cb41e |
* Wed Mar 27 2013 Ralph Bean <rbean@redhat.com> - 0.6.1-5
|
|
|
59cb41e |
- Added three patches to support old and new pyzmq.
|
|
|
59cb41e |
- More explicit file ownership in %%{python_sitelib}.
|
|
|
59cb41e |
- Removed some trailing whitespace.
|
|
|
59cb41e |
|
|
|
76bf37d |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-4
|
|
|
76bf37d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
76bf37d |
|
|
|
2eb4bc2 |
* Wed Dec 05 2012 Ralph Bean <rbean@redhat.com> - 0.6.1-3
|
|
|
2eb4bc2 |
- Patch to add support for tcp keepalives with zeromq3.
|
|
|
2eb4bc2 |
- Fixed "bad" rhel conditional.
|
|
|
2eb4bc2 |
|
|
|
9d4ad57 |
* Mon Oct 29 2012 Ralph Bean <rbean@redhat.com> - 0.6.1-2
|
|
|
9d4ad57 |
- Patch (again) to support older pyzmq on f17 and el6.
|
|
|
9d4ad57 |
|
|
|
3eb33f4 |
* Mon Oct 29 2012 Ralph Bean <rbean@redhat.com> - 0.6.1-1
|
|
|
3eb33f4 |
- Upstream integrates zeromq3 support. Dropping patches.
|
|
|
3eb33f4 |
|
|
|
ba4f59d |
* Wed Oct 10 2012 Ralph Bean <rbean@redhat.com> - 0.5.2-3
|
|
|
ba4f59d |
- Patch to support older pyzmq on f17 and el6.
|
|
|
ba4f59d |
- Fix changelog.
|
|
|
ba4f59d |
|
|
|
ba4f59d |
* Wed Oct 10 2012 Ralph Bean <rbean@redhat.com> - 0.5.2-2
|
|
|
22b2e19 |
- Added three patches to support zeromq3.
|
|
|
22b2e19 |
|
|
|
c6029af |
* Tue Oct 02 2012 Ralph Bean <rbean@redhat.com> - 0.5.2-1
|
|
|
c6029af |
- Latest upstream with new socket types.
|
|
|
8fed7a8 |
- Remove old epgm-disabling patch.
|
|
|
8fed7a8 |
- Add new egpm-disabling patch.
|
|
|
c6029af |
|
|
|
18855ca |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-3
|
|
|
18855ca |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
18855ca |
|
|
|
095438a |
* Tue May 29 2012 Ralph Bean <rbean@redhat.com> - 0.5.0-2
|
|
|
095438a |
- Patch out setuptools dep on Twisted for epel.
|
|
|
095438a |
|
|
|
36e5744 |
* Mon May 21 2012 Ralph Bean <rbean@redhat.com> - 0.5.0-1
|
|
|
36e5744 |
- Removed FSF address patch.
|
|
|
36e5744 |
- Packaged new upstream version.
|
|
|
36e5744 |
- Replaced txZMQ with %%{modname}
|
|
|
36e5744 |
|
|
|
36e5744 |
* Mon Apr 09 2012 Ralph Bean <rbean@redhat.com> - 0.3.1-2
|
|
|
de0a37f |
- Changed BuildRequires python-devel to python2-devel.
|
|
|
36e5744 |
- Dropped the %%defattr macro .
|
|
|
de0a37f |
- Patched to disable the EPGM test. libpgm isn't packaged for fedora yet.
|
|
|
36e5744 |
- Added %%check section to run nosetests.
|
|
|
de0a37f |
|
|
|
36e5744 |
* Thu Apr 05 2012 Ralph Bean <rbean@redhat.com> - 0.3.1-1
|
|
|
de0a37f |
- initial package for Fedora
|