4419063c |
%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
|
8b5cb8b1 |
Summary: An asynchronous networking framework written in Python |
4419063c |
Name: python-Twisted
Version: 17.1.0 |
2d879f6b |
Release: 5%{?dist} |
8b5cb8b1 |
License: MIT
Group: Development/Languages/Python |
4419063c |
Vendor: VMware, Inc.
Distribution: Photon
Url: https://twistedmatrix.com |
8b5cb8b1 |
Source0: https://pypi.python.org/packages/source/T/Twisted/Twisted-%{version}.tar.bz2 |
4419063c |
%define sha1 Twisted=1cd9e3e39323f555a89d882cbbcf001015bd3113 |
8b5cb8b1 |
|
4419063c |
BuildRequires: python2
BuildRequires: python2-libs
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: python-incremental |
a8406018 |
BuildRequires: python-zope.interface |
8b5cb8b1 |
Requires: python2 |
4419063c |
Requires: python2-libs |
f379f5c4 |
Requires: python-zope.interface
Requires: python-netaddr
Requires: python-incremental |
561a1e79 |
Requires: python-constantly |
8b5cb8b1 |
BuildArch: x86_64
%description
Twisted is an event-driven networking engine written in Python and licensed under the open source ​MIT license. Twisted runs on Python 2 and an ever growing subset also works with Python 3.
Twisted also supports many common network protocols, including SMTP, POP3, IMAP, SSHv2, and DNS.
|
4419063c |
%package -n python3-Twisted
Summary: python-Twisted
BuildRequires: python3-devel
BuildRequires: python3-libs
BuildRequires: python3-incremental |
a8406018 |
BuildRequires: python3-zope.interface |
4419063c |
Requires: python3
Requires: python3-libs |
a8406018 |
Requires: python3-zope.interface |
f379f5c4 |
Requires: python3-netaddr
Requires: python3-incremental |
561a1e79 |
Requires: python3-constantly |
a8406018 |
|
4419063c |
%description -n python3-Twisted
Python 3 version.
|
8b5cb8b1 |
%prep
%setup -q -n Twisted-%{version} |
a8406018 |
rm -rf ../p3dir
cp -a . ../p3dir |
8b5cb8b1 |
%build |
4419063c |
python2 setup.py build |
a8406018 |
pushd ../p3dir |
4419063c |
python3 setup.py build |
a8406018 |
popd |
8b5cb8b1 |
%install |
a8406018 |
pushd ../p3dir |
4419063c |
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
2d879f6b |
mv %{buildroot}/%{_bindir}/twistd %{buildroot}/%{_bindir}/twistd3
mv %{buildroot}/%{_bindir}/trial %{buildroot}/%{_bindir}/trial3
mv %{buildroot}/%{_bindir}/tkconch %{buildroot}/%{_bindir}/tkconch3
mv %{buildroot}/%{_bindir}/pyhtmlizer %{buildroot}/%{_bindir}/pyhtmlizer3
mv %{buildroot}/%{_bindir}/twist %{buildroot}/%{_bindir}/twist3
mv %{buildroot}/%{_bindir}/conch %{buildroot}/%{_bindir}/conch3
mv %{buildroot}/%{_bindir}/ckeygen %{buildroot}/%{_bindir}/ckeygen3
mv %{buildroot}/%{_bindir}/cftp %{buildroot}/%{_bindir}/cftp3 |
a8406018 |
popd |
2d879f6b |
python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
8b5cb8b1 |
|
b8cc0b85 |
%check
easy_install tox
tox -e py27-tests
|
8b5cb8b1 |
%files
%defattr(-,root,root) |
4419063c |
%{python2_sitelib}/* |
2d879f6b |
%{_bindir}/twistd
%{_bindir}/trial
%{_bindir}/tkconch
%{_bindir}/pyhtmlizer
%{_bindir}/twist
%{_bindir}/mailmail
%{_bindir}/conch
%{_bindir}/ckeygen
%{_bindir}/cftp |
4419063c |
%files -n python3-Twisted
%defattr(-,root,root)
%{python3_sitelib}/* |
2d879f6b |
%{_bindir}/twistd3
%{_bindir}/trial3
%{_bindir}/tkconch3
%{_bindir}/pyhtmlizer3
%{_bindir}/twist3
%{_bindir}/conch3
%{_bindir}/ckeygen3
%{_bindir}/cftp3 |
8b5cb8b1 |
%changelog |
2d879f6b |
* Thu Jun 01 2017 Dheeraj Shetty <dheerajs@vmware.com> 17.1.0-5
- Adding python3 scripts to bin directory |
561a1e79 |
* Tue May 09 2017 Rongrong Qiu <rqiu@vmware.com> 17.1.0-4
- Added python-constantly to the requires. |
f379f5c4 |
* Mon Mar 27 2017 Xiaolin Li <xiaolinl@vmware.com> 17.1.0-3
- Added python-netaddr and python-incremental to the requires. |
a8406018 |
* Thu Mar 23 2017 Xiaolin Li <xiaolinl@vmware.com> 17.1.0-2
- Change requires |
4419063c |
* Wed Mar 01 2017 Xiaolin Li <xiaolinl@vmware.com> 17.1.0-1
- Added python3 package and updated to version 17.1.0.
* Mon Oct 10 2016 ChangLee <changlee@vmware.com> 15.5.0-3
- Modified %check
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 15.5.0-2
- GA - Bump release of all rpms
* Thu Jan 21 2016 Anish Swaminathan <anishs@vmware.com> 15.5.0-1
- Upgrade version
* Tue Oct 27 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
- Initial packaging for Photon |