Juan Orti Alcaine 1b4fbe
%global srcname stem
Juan Orti Alcaine 1b4fbe
%global _description\
Juan Orti Alcaine 1b4fbe
Stem is a Python controller library that you can use to interact with Tor.\
Juan Orti Alcaine 1b4fbe
With it you can write scripts and applications with capabilities similar\
Juan Orti Alcaine 1b4fbe
to nyx.\
Juan Orti Alcaine 1b4fbe
\
Juan Orti Alcaine 1b4fbe
From a technical standpoint, Stem is a Python implementation of Tor's\
Juan Orti Alcaine 1b4fbe
directory and control specifications.
4e004c
4e004c
Name:           python-stem
c1f7f7
Version:        1.7.1
Juan Orti Alcaine a82b86
Release:        1%{?dist}
4e004c
Summary:        Python controller library for Tor
4e004c
# All source code is LGPLv3 except stem/util/ordereddict.py which is MIT
4e004c
License:        LGPLv3 and MIT
4e004c
URL:            https://stem.torproject.org/
Juan Orti Alcaine 1b4fbe
Source0:        https://files.pythonhosted.org/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz
4e004c
# https://www.torproject.org/docs/signing-keys.html.en
Juan Orti Alcaine 1b4fbe
Source1:        https://files.pythonhosted.org/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz.asc
4e004c
4e004c
BuildArch:      noarch
4e004c
BuildRequires:  python2-devel
4e004c
BuildRequires:  python3-devel
Juan Orti Alcaine 1b4fbe
# Doc building
Juan Orti Alcaine 1b4fbe
BuildRequires:  python2-sphinx
Juan Orti Alcaine 1b4fbe
# Test disabled
Juan Orti Alcaine 1b4fbe
#BuildRequires:  python2-mock
Juan Orti Alcaine 1b4fbe
#BuildRequires:  python2-crypto
Juan Orti Alcaine 1b4fbe
#BuildRequires:  python2-pytest-flakes
Juan Orti Alcaine 1b4fbe
#BuildRequires:  python2-pytest-pep8
Juan Orti Alcaine 1b4fbe
#BuildRequires:  python3-sphinx
Juan Orti Alcaine 1b4fbe
#BuildRequires:  python3-mock
Juan Orti Alcaine 1b4fbe
#BuildRequires:  python3-crypto
Juan Orti Alcaine 1b4fbe
#BuildRequires:  python3-pytest-flakes
Juan Orti Alcaine 1b4fbe
#BuildRequires:  python3-pytest-pep8
Juan Orti Alcaine 1b4fbe
Juan Orti Alcaine 1b4fbe
%description %_description
Juan Orti Alcaine 1b4fbe
Juan Orti Alcaine 1b4fbe
%package -n python2-%{srcname}
Juan Orti Alcaine 1b4fbe
Summary:        %{summary}
Juan Orti Alcaine 1b4fbe
%{?python_provide:%python_provide python2-%{srcname}}
9296b4
Suggests:       %{name}-doc = %{version}-%{release}
9296b4
Juan Orti Alcaine 1b4fbe
%description -n python2-%{srcname} %_description
9296b4
Juan Orti Alcaine 1b4fbe
%package -n python3-%{srcname}
Juan Orti Alcaine 1b4fbe
Summary:        %{summary}
Juan Orti Alcaine 1b4fbe
%{?python_provide:%python_provide python3-%{srcname}}
9296b4
Suggests:       %{name}-doc = %{version}-%{release}
4e004c
Juan Orti Alcaine 1b4fbe
%description -n python3-%{srcname} %_description
4e004c
4e004c
%package doc
Juan Orti Alcaine 1b4fbe
Summary:        %{summary}
4e004c
Juan Orti Alcaine 1b4fbe
%description doc %_description
4e004c
4e004c
%prep
Juan Orti Alcaine a82b86
%autosetup -n %{srcname}-%{version}
4e004c
4e004c
%build
9296b4
%py2_build
9296b4
%py3_build
4e004c
pushd docs
9296b4
%make_build html
9296b4
%make_build text
9296b4
%make_build man
4e004c
popd
4e004c
4e004c
%install
f21a5e
%py2_install
640329
%py3_install
Juan Orti Alcaine 1b4fbe
sed -e 's,^#!/usr/bin/python2$,#!/usr/bin/python3,' -i %{buildroot}%{_bindir}/tor-prompt
640329
find docs/_build -name .buildinfo -delete
Juan Orti Alcaine 1b4fbe
install -D -m 0644 docs/_build/man/%{srcname}.1 %{buildroot}%{_mandir}/man1/%{srcname}.1
4e004c
6162fc
%check
Juan Orti Alcaine 1b4fbe
# Tests disabled for now
Juan Orti Alcaine 1b4fbe
#%%{__python2} run_tests.py --unit
Juan Orti Alcaine 1b4fbe
#%%{__python3} run_tests.py --unit
6162fc
Juan Orti Alcaine 1b4fbe
%files -n python2-%{srcname}
b0ce34
%license LICENSE
Juan Orti Alcaine 1b4fbe
%{python2_sitelib}/%{srcname}
Juan Orti Alcaine 1b4fbe
%{python2_sitelib}/%{srcname}-*.egg-info
4e004c
Juan Orti Alcaine 1b4fbe
%files -n python3-%{srcname}
b0ce34
%license LICENSE
f21a5e
%{_bindir}/tor-prompt
Juan Orti Alcaine 1b4fbe
%{python3_sitelib}/%{srcname}
Juan Orti Alcaine 1b4fbe
%{python3_sitelib}/%{srcname}-*.egg-info
4e004c
4e004c
%files doc
Juan Orti Alcaine a82b86
%doc README.md docs/_build/html docs/_build/text
b0ce34
%license LICENSE
Juan Orti Alcaine 1b4fbe
%{_mandir}/man1/%{srcname}.1*
4e004c
4e004c
%changelog
c1f7f7
* Thu Dec 27 2018 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.7.1-1
c1f7f7
- Version 1.7.1
c1f7f7
Juan Orti Alcaine a82b86
* Wed Oct 10 2018 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.7.0-1
Juan Orti Alcaine a82b86
- Version 1.7.0
Juan Orti Alcaine a82b86
- Drop patch merged upstream
Juan Orti Alcaine a82b86
Marcel Haerry 7bbfdb
* Tue Jul 17 2018 mh <mh+fedora@scrit.ch> - 1.6.0-5
Marcel Haerry 7bbfdb
- Make it build on python 3.7
Marcel Haerry 7bbfdb
c2d5b0
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-4
c2d5b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c2d5b0
6d2fa6
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.6.0-3
6d2fa6
- Rebuilt for Python 3.7
6d2fa6
b07ff8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
b07ff8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b07ff8
Juan Orti Alcaine 1b4fbe
* Tue Nov 07 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.6.0-1
Juan Orti Alcaine 1b4fbe
- Version 1.6.0
Juan Orti Alcaine 1b4fbe
f1b5a2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-4
f1b5a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f1b5a2
01b788
* Sat Jul 01 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.5.4-3
01b788
- Python3 changes
01b788
3ace95
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-2
3ace95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3ace95
63cca1
* Sat Jan 07 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.5.4-1
63cca1
- Version 1.5.4
63cca1
36ea62
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.5.3-2
36ea62
- Rebuild for Python 3.6
36ea62
055751
* Mon Nov 28 2016 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.5.3-1
055751
- Version 1.5.3
055751
1f29a7
* Sat Feb 20 2016 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.4.1b-10
1f29a7
- Fix python3 shebang (RHBZ #1310323)
1f29a7
fc2190
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1b-9
fc2190
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fc2190
d0d558
* Thu Dec 10 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.4.1b-8
d0d558
- Disable ckecks again
d0d558
640329
* Mon Nov 30 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.4.1b-7
640329
- Re-enable checks
640329
- Don't copy source to %%py3dir
640329
- Leave only python3 version of tor-prompt script
640329
fd6dfd
* Wed Nov 25 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.4.1b-6
fd6dfd
- Checks are causing problems. Disable them for now.
fd6dfd
f21a5e
* Wed Nov 25 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.4.1b-5
f21a5e
- Rename file to python2-tor-prompt
f21a5e
7f47e9
* Tue Nov 24 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.4.1b-4
7f47e9
- Rebuild for Python 3.5 again
7f47e9
9296b4
* Sun Nov 15 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.4.1b-3
9296b4
- Use python_provide macro
9296b4
- Create symbolic links to tor-prompt
9296b4
a9c8ee
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1b-2
a9c8ee
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
a9c8ee
83ece6
* Wed Jun 17 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.4.1b-1
83ece6
- Version 1.4.1b
83ece6
25651b
* Mon May 18 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.4.1-1
25651b
- Version 1.4.1
25651b
59a972
* Wed May 13 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.4.0-2
59a972
- Skip integration tests
59a972
5e95d0
* Wed May 13 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.4.0-1
5e95d0
- Version 1.4.0
5e95d0
b0ce34
* Thu Apr 09 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.3.0-3
b0ce34
- Use license macro
b0ce34
6162fc
* Wed Dec 24 2014 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.3.0-2
6162fc
- Run tests
6162fc
32c693
* Tue Dec 23 2014 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.3.0-1
32c693
- Version 1.3.0
32c693
- Add documentation in text format
32c693
b3f934
* Sat Jun 14 2014 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.2.2-2
b3f934
- Rename tor-prompt to python3-tor-prompt in python3 subpackage
b3f934
148010
* Thu Jun 12 2014 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.2.2-1
148010
- Version 1.2.2
148010
a46909
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-3
a46909
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a46909
1d1da1
* Fri May 09 2014 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.1.1-2
1d1da1
- Rebuilt for F21 Python 3.4
1d1da1
918492
* Sun Nov 10 2013 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.1.1-1
918492
- Version 1.1.1
918492
a2386f
* Tue Oct 15 2013 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.1.0-1
a2386f
- Version 1.1.0
a2386f
7cc3fe
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-5
7cc3fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7cc3fe
4e004c
* Sun Apr 28 2013 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.0.1-4
4e004c
- Enable parallel make
4e004c
4e004c
* Sun Apr 28 2013 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.0.1-3
4e004c
- Add doc subpackage
4e004c
4e004c
* Sun Apr 07 2013 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.0.1-2
4e004c
- Update Source URL
4e004c
4e004c
* Wed Mar 27 2013 Juan Orti Alcaine <j.orti.alcaine@gmail.com> - 1.0.1-1
4e004c
- Add python3 subpackage
4e004c
- Update to 1.0.1
4e004c
4e004c
* Wed Mar 27 2013 Juan Orti Alcaine <j.orti.alcaine@gmail.com> - 1.0.0-1
4e004c
- Version 1.0.0
4e004c
4e004c
* Tue Feb 26 2013 Juan Orti Alcaine <j.orti.alcaine@gmail.com> - 0-0.2.20130226gitbe9a532
4e004c
- Update source code
4e004c
4e004c
* Sun Jan 13 2013 Juan Orti Alcaine <j.orti.alcaine@gmail.com> - 0-0.1.20130113git
4e004c
- Initial packaging