|
|
4560763 |
%if 0%{?fedora}
|
|
|
4560763 |
# Well, damnit. I did the work to port this to python3, but we don't have
|
|
|
4560763 |
# python3-twisted-core in Fedora yet. Disabling this for now.
|
|
|
4560763 |
%global with_python3 0
|
|
|
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
|
|
|
1b80bfa |
Version: 0.7.4
|
|
|
a602e39 |
Release: 3%{?dist}
|
|
|
de0a37f |
Summary: Twisted bindings for ZeroMQ
|
|
|
de0a37f |
|
|
|
de0a37f |
Group: Development/Languages
|
|
|
de0a37f |
License: GPLv2
|
|
|
36e5744 |
URL: http://pypi.python.org/pypi/%{modname}
|
|
|
36e5744 |
Source0: http://pypi.python.org/packages/source/t/%{modname}/%{modname}-%{version}.tar.gz
|
|
|
0c7d6e2 |
Patch0: 0001-Disable-epgm-test.patch
|
|
|
de0a37f |
|
|
|
59cb41e |
BuildArch: noarch
|
|
|
de0a37f |
|
|
|
de0a37f |
BuildRequires: python2-devel
|
|
|
de0a37f |
BuildRequires: python-setuptools
|
|
|
de0a37f |
BuildRequires: python-nose
|
|
|
8c26ee5 |
BuildRequires: python-zmq >= 13.0.0
|
|
|
cc096ea |
BuildRequires: python-twisted-core
|
|
|
4560763 |
BuildRequires: python-six
|
|
|
de0a37f |
|
|
|
8c26ee5 |
Requires: python-zmq >= 13.0.0
|
|
|
cc096ea |
Requires: python-twisted-core
|
|
|
4560763 |
Requires: python-six
|
|
|
4560763 |
|
|
|
4560763 |
%if 0%{?with_python3}
|
|
|
4560763 |
BuildRequires: python3-devel
|
|
|
4560763 |
BuildRequires: python3-setuptools
|
|
|
4560763 |
BuildRequires: python3-nose
|
|
|
4560763 |
BuildRequires: python3-zmq >= 13.0.0
|
|
|
4560763 |
BuildRequires: python3-twisted-core
|
|
|
4560763 |
BuildRequires: python3-six
|
|
|
4560763 |
%endif
|
|
|
de0a37f |
|
|
|
de0a37f |
%description
|
|
|
4560763 |
txZMQ allows to integrate easily ZeroMQ sockets into Twisted event loop
|
|
|
4560763 |
(reactor).
|
|
|
4560763 |
|
|
|
4560763 |
%if 0%{?with_python3}
|
|
|
4560763 |
%package -n python3-txzmq
|
|
|
4560763 |
Summary: Twisted bindings for ZeroMQ
|
|
|
4560763 |
Group: Development/Languages
|
|
|
4560763 |
|
|
|
4560763 |
Requires: python3-zmq >= 13.0.0
|
|
|
4560763 |
Requires: python3-twisted-core
|
|
|
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
|
|
|
36e5744 |
%setup -q -n %{modname}-%{version}
|
|
|
3eb33f4 |
%patch0 -p1 -b .disable_epgm_test
|
|
|
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
|
|
|
4560763 |
%{__python2} setup.py build
|
|
|
4560763 |
|
|
|
4560763 |
%if 0%{?with_python3}
|
|
|
4560763 |
pushd %{py3dir}
|
|
|
4560763 |
%{__python3} setup.py build
|
|
|
4560763 |
popd
|
|
|
4560763 |
%endif
|
|
|
de0a37f |
|
|
|
de0a37f |
%check
|
|
|
de0a37f |
PYTHONPATH=$(pwd) nosetests
|
|
|
de0a37f |
|
|
|
4560763 |
%if 0%{?with_python3}
|
|
|
4560763 |
pushd %{py3dir}
|
|
|
4560763 |
PYTHONPATH=$(pwd) nosetests-%{python3_version}
|
|
|
4560763 |
popd
|
|
|
4560763 |
%endif
|
|
|
4560763 |
|
|
|
de0a37f |
%install
|
|
|
4560763 |
%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
4560763 |
|
|
|
4560763 |
%if 0%{?with_python3}
|
|
|
4560763 |
pushd %{py3dir}
|
|
|
4560763 |
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
4560763 |
popd
|
|
|
4560763 |
%endif
|
|
|
de0a37f |
|
|
|
de0a37f |
%files
|
|
|
de0a37f |
%doc README.rst LICENSE.txt
|
|
|
4560763 |
%{python2_sitelib}/txzmq/
|
|
|
4560763 |
%{python2_sitelib}/txZMQ-%{version}*.egg-info
|
|
|
4560763 |
|
|
|
4560763 |
%if 0%{?with_python3}
|
|
|
4560763 |
%files -n python3-txzmq
|
|
|
4560763 |
%doc README.rst LICENSE.txt
|
|
|
4560763 |
%{python3_sitelib}/txzmq/
|
|
|
4560763 |
%{python3_sitelib}/txZMQ-%{version}*.egg-info
|
|
|
4560763 |
%endif
|
|
|
de0a37f |
|
|
|
de0a37f |
%changelog
|
|
|
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
|