e88d343
# what it's called on pypi
e88d343
%global srcname txZMQ
e88d343
# what it's imported as
e88d343
%global libname txzmq
e88d343
# name of egg info directory
e88d343
%global eggname %{srcname}
e88d343
# package name fragment
e88d343
%global pkgname %{libname}
e88d343
e88d343
%global common_description %{expand:
e88d343
txZMQ allows to integrate easily ZeroMQ sockets into Twisted event loop
e88d343
(reactor).}
36e5744
e88d343
%bcond_without  tests
de0a37f
de0a37f
e88d343
Name:           python-%{pkgname}
e88d343
Version:        0.8.2
1940cb6
Release:        6%{?dist}
e88d343
Summary:        Twisted bindings for ZeroMQ
e88d343
License:        GPLv2
e88d343
URL:            https://github.com/smira/txZMQ
e88d343
Source0:        %pypi_source
e88d343
# https://github.com/smira/txZMQ/pull/85
e88d343
Patch0:         switch-to-setuptools.patch
e88d343
BuildArch:      noarch
de0a37f
de0a37f
e88d343
%description %{common_description}
4560763
74277b6
e88d343
%package -n python3-%{pkgname}
e88d343
Summary:        %{summary}
e88d343
BuildRequires:  python3-devel
e88d343
BuildRequires:  %{py3_dist setuptools}
e88d343
%if %{with tests}
e88d343
BuildRequires:  %{py3_dist nose pyzmq zope.interface twisted}
e88d343
%endif
e88d343
%{?python_provide:%python_provide python3-%{pkgname}}
4560763
4560763
e88d343
%description -n python3-%{pkgname} %{common_description}
4560763
de0a37f
de0a37f
%prep
e88d343
%autosetup -n %{srcname}-%{version} -p 1
e88d343
rm -rf %{eggname}.egg-info
095438a
4560763
de0a37f
%build
507e884
%py3_build
de0a37f
4560763
de0a37f
%install
507e884
%py3_install
de0a37f
e88d343
e88d343
%check
e88d343
%if %{with tests}
e88d343
PYTHONPATH=%{buildroot}%{python3_sitelib} nosetests-%{python3_version}
e88d343
%endif
e88d343
e88d343
e88d343
%files -n python3-%{pkgname}
507e884
%doc README.rst
507e884
%license LICENSE.txt
e88d343
%{python3_sitelib}/%{libname}
e88d343
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
e88d343
de0a37f
de0a37f
%changelog
1940cb6
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-6
1940cb6
- Second attempt - Rebuilt for
1940cb6
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
1940cb6
13a7261
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.8.2-5
13a7261
- Rebuilt for Python 3.10
13a7261
69b996a
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-4
69b996a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
69b996a
aa804b3
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-3
aa804b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
aa804b3
88a61c4
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 0.8.2-2
88a61c4
- Rebuilt for Python 3.9
88a61c4
e88d343
* Tue Apr 28 2020 Carl George <carl@george.computer> - 0.8.2-1
e88d343
- Latest upstream rhbz#1772197
e88d343
7d3362f
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-13
7d3362f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7d3362f
c418efd
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.0-12
c418efd
- Rebuilt for Python 3.8.0rc1 (#1748018)
c418efd
120e9d6
* Wed Aug 28 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.0-11
120e9d6
- Subpackage python2-txzmq has been removed
120e9d6
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
120e9d6
a8b4840
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.0-10
a8b4840
- Rebuilt for Python 3.8
a8b4840
c8589c9
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-9
c8589c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c8589c9
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