Juan Orti Alcaine 32c6931
%global pkgname stem
4e004c9
%global with_python3 1
4e004c9
4e004c9
Name:           python-stem
83ece6a
Version:        1.4.1b
1f29a75
Release:        10%{?dist}
4e004c9
Summary:        Python controller library for Tor
4e004c9
4e004c9
Group:          Development/Libraries
4e004c9
# All source code is LGPLv3 except stem/util/ordereddict.py which is MIT
4e004c9
License:        LGPLv3 and MIT
4e004c9
URL:            https://stem.torproject.org/
Juan Orti Alcaine 32c6931
Source0:        https://pypi.python.org/packages/source/s/stem/%{pkgname}-%{version}.tar.bz2
4e004c9
# https://www.torproject.org/docs/signing-keys.html.en
Juan Orti Alcaine 32c6931
Source1:        https://pypi.python.org/packages/source/s/stem/%{pkgname}-%{version}.tar.bz2.asc
4e004c9
4e004c9
BuildArch:      noarch
4e004c9
BuildRequires:  python2-devel
4e004c9
BuildRequires:  python-sphinx
Juan Orti Alcaine 6162fcd
BuildRequires:  python-mock
Juan Orti Alcaine 59a972c
BuildRequires:  python-crypto
Juan Orti Alcaine 59a972c
BuildRequires:  python-pytest-flakes
Juan Orti Alcaine 59a972c
BuildRequires:  python-pytest-pep8
4e004c9
%if 0%{?with_python3}
4e004c9
BuildRequires:  python3-devel
Juan Orti Alcaine 59a972c
BuildRequires:  python3-crypto
Juan Orti Alcaine 59a972c
BuildRequires:  python3-pytest-flakes
Juan Orti Alcaine 59a972c
BuildRequires:  python3-pytest-pep8
4e004c9
%endif
4e004c9
4e004c9
%description
4e004c9
Stem is a python controller library for Tor.
4e004c9
It uses Tor’s control protocol to help developers program against the
4e004c9
Tor process.
4e004c9
9296b4a
%package -n python2-%{pkgname}
9296b4a
Summary:        Python controller library for Tor
9296b4a
Group:          Development/Libraries
9296b4a
%{?python_provide:%python_provide python2-%{pkgname}}
9296b4a
Suggests:       %{name}-doc = %{version}-%{release}
9296b4a
9296b4a
%description -n python2-%{pkgname}
9296b4a
Stem is a python controller library for Tor.
9296b4a
It uses Tor’s control protocol to help developers program against the
9296b4a
Tor process.
9296b4a
4e004c9
%if 0%{?with_python3}
9296b4a
%package -n python3-%{pkgname}
9296b4a
Summary:        Python controller library for Tor
4e004c9
Group:          Development/Libraries
9296b4a
%{?python_provide:%python_provide python3-%{pkgname}}
9296b4a
Suggests:       %{name}-doc = %{version}-%{release}
4e004c9
9296b4a
%description -n python3-%{pkgname}
4e004c9
Stem is a python controller library for Tor.
4e004c9
It uses Tor’s control protocol to help developers program against the
4e004c9
Tor process.
4e004c9
%endif
4e004c9
4e004c9
%package doc
4e004c9
Summary:        Python controller library for Tor - Documentation
4e004c9
Group:          Documentation
4e004c9
4e004c9
%description doc
4e004c9
Stem is a python controller library for Tor.
4e004c9
It uses Tor’s control protocol to help developers program against the
4e004c9
Tor process.
4e004c9
4e004c9
This package contains documentation files for Stem.
4e004c9
4e004c9
%prep
9296b4a
%autosetup -n %{pkgname}-1.4.1
4e004c9
4e004c9
4e004c9
%build
9296b4a
%py2_build
4e004c9
%if 0%{?with_python3}
9296b4a
%py3_build
4e004c9
%endif
4e004c9
pushd docs
9296b4a
%make_build html
9296b4a
%make_build text
9296b4a
%make_build man
4e004c9
popd
4e004c9
4e004c9
%install
f21a5e0
%py2_install
f21a5e0
%if 0%{?with_python3}
6403298
%py3_install
4e004c9
%endif
6403298
find docs/_build -name .buildinfo -delete
6403298
install -D -m 0644 docs/_build/man/%{pkgname}.1 %{buildroot}%{_mandir}/man1/%{pkgname}.1
1f29a75
sed -e 's,^#!/usr/bin/python2,#!/usr/bin/python3,' -i %{buildroot}%{_bindir}/tor-prompt
4e004c9
Juan Orti Alcaine 6162fcd
%check
d0d558d
#%%{__python2} run_tests.py --unit
d0d558d
#%%if 0%%{?with_python3}
d0d558d
#%%{__python3} run_tests.py --unit
d0d558d
#%%endif
Juan Orti Alcaine 6162fcd
9296b4a
%files -n python2-%{pkgname}
Juan Orti Alcaine b0ce340
%license LICENSE
Juan Orti Alcaine 32c6931
%{python2_sitelib}/%{pkgname}
Juan Orti Alcaine 32c6931
%{python2_sitelib}/%{pkgname}-*.egg-info
4e004c9
4e004c9
%if 0%{?with_python3}
9296b4a
%files -n python3-%{pkgname}
Juan Orti Alcaine b0ce340
%license LICENSE
f21a5e0
%{_bindir}/tor-prompt
Juan Orti Alcaine 32c6931
%{python3_sitelib}/%{pkgname}
Juan Orti Alcaine 32c6931
%{python3_sitelib}/%{pkgname}-*.egg-info
4e004c9
%endif
4e004c9
4e004c9
%files doc
6403298
%doc docs/_build/html docs/_build/text
Juan Orti Alcaine b0ce340
%license LICENSE
Juan Orti Alcaine 32c6931
%{_mandir}/man1/%{pkgname}.1*
4e004c9
4e004c9
%changelog
1f29a75
* Sat Feb 20 2016 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.4.1b-10
1f29a75
- Fix python3 shebang (RHBZ #1310323)
1f29a75
fc21909
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1b-9
fc21909
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fc21909
d0d558d
* Thu Dec 10 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.4.1b-8
d0d558d
- Disable ckecks again
d0d558d
6403298
* Mon Nov 30 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.4.1b-7
6403298
- Re-enable checks
6403298
- Don't copy source to %%py3dir
6403298
- Leave only python3 version of tor-prompt script
6403298
fd6dfd8
* Wed Nov 25 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.4.1b-6
fd6dfd8
- Checks are causing problems. Disable them for now.
fd6dfd8
f21a5e0
* Wed Nov 25 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.4.1b-5
f21a5e0
- Rename file to python2-tor-prompt
f21a5e0
7f47e99
* Tue Nov 24 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.4.1b-4
7f47e99
- Rebuild for Python 3.5 again
7f47e99
9296b4a
* Sun Nov 15 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.4.1b-3
9296b4a
- Use python_provide macro
9296b4a
- Create symbolic links to tor-prompt
9296b4a
a9c8ee7
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1b-2
a9c8ee7
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
a9c8ee7
83ece6a
* Wed Jun 17 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.4.1b-1
83ece6a
- Version 1.4.1b
83ece6a
Juan Orti Alcaine 25651bf
* Mon May 18 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.4.1-1
Juan Orti Alcaine 25651bf
- Version 1.4.1
Juan Orti Alcaine 25651bf
Juan Orti Alcaine 59a972c
* Wed May 13 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.4.0-2
Juan Orti Alcaine 59a972c
- Skip integration tests
Juan Orti Alcaine 59a972c
Juan Orti Alcaine 5e95d00
* Wed May 13 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.4.0-1
Juan Orti Alcaine 5e95d00
- Version 1.4.0
Juan Orti Alcaine 5e95d00
Juan Orti Alcaine b0ce340
* Thu Apr 09 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.3.0-3
Juan Orti Alcaine b0ce340
- Use license macro
Juan Orti Alcaine b0ce340
Juan Orti Alcaine 6162fcd
* Wed Dec 24 2014 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.3.0-2
Juan Orti Alcaine 6162fcd
- Run tests
Juan Orti Alcaine 6162fcd
Juan Orti Alcaine 32c6931
* Tue Dec 23 2014 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.3.0-1
Juan Orti Alcaine 32c6931
- Version 1.3.0
Juan Orti Alcaine 32c6931
- Add documentation in text format
Juan Orti Alcaine 32c6931
b3f934b
* Sat Jun 14 2014 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.2.2-2
b3f934b
- Rename tor-prompt to python3-tor-prompt in python3 subpackage
b3f934b
1480106
* Thu Jun 12 2014 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.2.2-1
1480106
- Version 1.2.2
1480106
a469090
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-3
a469090
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a469090
1d1da1c
* Fri May 09 2014 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.1.1-2
1d1da1c
- Rebuilt for F21 Python 3.4
1d1da1c
Juan Orti Alcaine 9184924
* Sun Nov 10 2013 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.1.1-1
Juan Orti Alcaine 9184924
- Version 1.1.1
Juan Orti Alcaine 9184924
Juan Orti Alcaine a2386fe
* Tue Oct 15 2013 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.1.0-1
Juan Orti Alcaine a2386fe
- Version 1.1.0
Juan Orti Alcaine a2386fe
7cc3fe2
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-5
7cc3fe2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7cc3fe2
4e004c9
* Sun Apr 28 2013 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.0.1-4
4e004c9
- Enable parallel make
4e004c9
4e004c9
* Sun Apr 28 2013 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.0.1-3
4e004c9
- Add doc subpackage
4e004c9
4e004c9
* Sun Apr 07 2013 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.0.1-2
4e004c9
- Update Source URL
4e004c9
4e004c9
* Wed Mar 27 2013 Juan Orti Alcaine <j.orti.alcaine@gmail.com> - 1.0.1-1
4e004c9
- Add python3 subpackage
4e004c9
- Update to 1.0.1
4e004c9
4e004c9
* Wed Mar 27 2013 Juan Orti Alcaine <j.orti.alcaine@gmail.com> - 1.0.0-1
4e004c9
- Version 1.0.0
4e004c9
4e004c9
* Tue Feb 26 2013 Juan Orti Alcaine <j.orti.alcaine@gmail.com> - 0-0.2.20130226gitbe9a532
4e004c9
- Update source code
4e004c9
4e004c9
* Sun Jan 13 2013 Juan Orti Alcaine <j.orti.alcaine@gmail.com> - 0-0.1.20130113git
4e004c9
- Initial packaging