Juan Orti Alcaine 1b4fbed
%global srcname stem
Juan Orti Alcaine 1b4fbed
%global _description\
Juan Orti Alcaine 1b4fbed
Stem is a Python controller library that you can use to interact with Tor.\
Juan Orti Alcaine 1b4fbed
With it you can write scripts and applications with capabilities similar\
Juan Orti Alcaine 1b4fbed
to nyx.\
Juan Orti Alcaine 1b4fbed
\
Juan Orti Alcaine 1b4fbed
From a technical standpoint, Stem is a Python implementation of Tor's\
Juan Orti Alcaine 1b4fbed
directory and control specifications.
db5206c
db5206c
# Enable tests conditionally
db5206c
# https://bugzilla.redhat.com/show_bug.cgi?id=1797690
db5206c
# https://github.com/torproject/stem/issues/71
dceea13
%if 0%{?fedora} > 32 || 0%{?rhel} > 5
d7050be
%global tests_enabled 0
dceea13
%else
dceea13
%global tests_enabled 1
d7050be
%endif
4e004c9
5ad2beb
Name: python-stem
0659ddc
Version: 1.8.2
e8320a6
Release: 6%{?dist}
5ad2beb
Summary: Python controller library for Tor
4e004c9
# All source code is LGPLv3 except stem/util/ordereddict.py which is MIT
5ad2beb
License: LGPLv3 and MIT
5ad2beb
URL: https://stem.torproject.org/
0659ddc
Source0: %{pypi_source}
5ad2beb
BuildArch: noarch
c297e4a
BuildRequires: make
5ad2beb
BuildRequires: python3-devel
bab420a
BuildRequires: python3-setuptools
Juan Orti Alcaine 1b4fbed
# Doc building
5ad2beb
BuildRequires: python3-sphinx
ff4bd9c
BuildRequires: python3-sphinx-autodoc-typehints
Juan Orti Alcaine 61d4890
# Testing
d7050be
%if %{?tests_enabled}
5ad2beb
BuildRequires: python3-mock
5ad2beb
BuildRequires: python3-cryptography
5ad2beb
BuildRequires: python3-pyflakes
5ad2beb
BuildRequires: python3-pycodestyle
d7050be
%endif
Juan Orti Alcaine 1b4fbed
Juan Orti Alcaine 1b4fbed
%description %_description
Juan Orti Alcaine 1b4fbed
Juan Orti Alcaine 1b4fbed
%package -n python3-%{srcname}
5ad2beb
Summary: %{summary}
5ad2beb
%py_provides python3-%{srcname}
5ad2beb
Suggests: %{name}-doc = %{version}-%{release}
4e004c9
Juan Orti Alcaine 1b4fbed
%description -n python3-%{srcname} %_description
4e004c9
4e004c9
%package doc
5ad2beb
Summary: %{summary}
4e004c9
Juan Orti Alcaine 1b4fbed
%description doc %_description
4e004c9
4e004c9
%prep
7437e3b
%autosetup -n %{srcname}-%{version} -p 1
4e004c9
4e004c9
%build
9296b4a
%py3_build
4e004c9
pushd docs
9296b4a
%make_build html
9296b4a
%make_build text
9296b4a
%make_build man
4e004c9
popd
4e004c9
4e004c9
%install
6403298
%py3_install
5ad2beb
%py3_shebang_fix %{buildroot}%{_bindir}/tor-prompt
6403298
find docs/_build -name .buildinfo -delete
Juan Orti Alcaine 1b4fbed
install -D -m 0644 docs/_build/man/%{srcname}.1 %{buildroot}%{_mandir}/man1/%{srcname}.1
4e004c9
Juan Orti Alcaine 6162fcd
%check
d7050be
%if %{?tests_enabled}
d7050be
%{__python3} run_tests.py --unit
d7050be
%endif
4e004c9
Juan Orti Alcaine 1b4fbed
%files -n python3-%{srcname}
Juan Orti Alcaine b0ce340
%license LICENSE
f21a5e0
%{_bindir}/tor-prompt
Juan Orti Alcaine 1b4fbed
%{python3_sitelib}/%{srcname}
Juan Orti Alcaine 1b4fbed
%{python3_sitelib}/%{srcname}-*.egg-info
4e004c9
4e004c9
%files doc
Juan Orti Alcaine 61d4890
%doc README.md docs/_build/html docs/_build/text
Juan Orti Alcaine b0ce340
%license LICENSE
Juan Orti Alcaine 1b4fbed
%{_mandir}/man1/%{srcname}.1*
4e004c9
4e004c9
%changelog
e8320a6
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.2-6
e8320a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
e8320a6
3064604
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.2-5
3064604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
3064604
d6c9371
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.2-4
d6c9371
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
d6c9371
bab420a
* Thu Jul 06 2023 Juan Orti Alcaine <jortialc@redhat.com> - 1.8.2-3
bab420a
- Add BR: python3-setuptools
bab420a
c3e2979
* Thu Jun 29 2023 Python Maint <python-maint@redhat.com> - 1.8.2-2
c3e2979
- Rebuilt for Python 3.12
c3e2979
0659ddc
* Wed Jun 21 2023 Juan Orti Alcaine <jortialc@redhat.com> - 1.8.2-1
0659ddc
- Version 1.8.2 (RHBZ#2212681)
0659ddc
d1e5f78
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-2
d1e5f78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
d1e5f78
7437e3b
* Thu Sep 29 2022 Juan Orti Alcaine <jortialc@redhat.com> - 1.8.1-1
7437e3b
- Version 1.8.1 (RHBZ#2130675)
7437e3b
232d946
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0^20220701git7cfd6f7-19
232d946
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
232d946
3c5e17e
* Fri Jul 01 2022 Juan Orti Alcaine <jortialc@redhat.com> - 1.8.0^20220701git7cfd6f7-18
3c5e17e
- Cherry-pick some patches on top of 1.8.0 for python3.11 compatibility
3c5e17e
c510196
* Wed Jun 29 2022 Juan Orti Alcaine <jortialc@redhat.com> - 1.8.0^20220627git4e3917c-17
c510196
- Increase stem package version
c510196
ff4bd9c
* Mon Jun 27 2022 Juan Orti Alcaine <jortialc@redhat.com> - 1.8.0^20220627git4e3917c-16
ff4bd9c
- Update to git commit 4e3917c
ff4bd9c
e571d92
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.8.0-15
e571d92
- Rebuilt for Python 3.11
e571d92
dad9c05
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-14
dad9c05
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
dad9c05
0616a89
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-13
0616a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
0616a89
ba9d300
* Mon Jun 07 2021 Python Maint <python-maint@redhat.com> - 1.8.0-12
ba9d300
- Rebuilt for Python 3.10
ba9d300
5ad2beb
* Sat Jun 05 2021 Juan Orti Alcaine <jortialc@redhat.com> - 1.8.0-11
5ad2beb
- Use py_provides and py3_shebang_fix macros
5ad2beb
478724d
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.8.0-10
478724d
- Rebuilt for Python 3.10
478724d
4f17e85
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-9
4f17e85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
4f17e85
dceea13
* Tue Aug 04 2020 Juan Orti Alcaine <jortialc@redhat.com> - 1.8.0-8
dceea13
- Fix distribution release check in spec file
dceea13
db5206c
* Mon Aug 03 2020 Juan Orti Alcaine <jortialc@redhat.com> - 1.8.0-7
db5206c
- Disable tests in epel8
db5206c
d7050be
* Mon Aug 03 2020 Juan Orti Alcaine <jortialc@redhat.com> - 1.8.0-6
d7050be
- Enable tests conditionally
d7050be
d0e9093
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-5
d0e9093
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d0e9093
ce8b034
* Sun May 31 2020 Juan Orti Alcaine <jortialc@redhat.com> - 1.8.0-4
ce8b034
- Disable tests for now (RHBZ#1797690)
ce8b034
d197de2
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.8.0-3
d197de2
- Rebuilt for Python 3.9
d197de2
95ac562
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-2
95ac562
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
95ac562
0ebfedf
* Sun Jan 05 2020 Juan Orti Alcaine <jortialc@redhat.com> - 1.8.0-1
0ebfedf
- Version 1.8.0
0ebfedf
90f049d
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7.1-6
90f049d
- Rebuilt for Python 3.8.0rc1 (#1748018)
90f049d
9a75c02
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7.1-5
9a75c02
- Rebuilt for Python 3.8
9a75c02
1bd6b59
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-4
1bd6b59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
1bd6b59
65b0321
* Sat Jul 13 2019 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.7.1-3
65b0321
- Add patch to fix build on Python 3.8
65b0321
45639d3
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-2
45639d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
45639d3
a69559a
* Thu Dec 27 2018 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.7.1-1
a69559a
- Version 1.7.1
a69559a
Juan Orti Alcaine 61d4890
* Wed Oct 10 2018 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.7.0-1
Juan Orti Alcaine 61d4890
- Version 1.7.0
Juan Orti Alcaine 61d4890
- Drop python2 subpackage
Juan Orti Alcaine 61d4890
- Drop patch merged upstream
Juan Orti Alcaine 61d4890
- Enable tests
Juan Orti Alcaine 61d4890
Marcel Haerry 7bbfdb5
* Tue Jul 17 2018 mh <mh+fedora@scrit.ch> - 1.6.0-5
Marcel Haerry 7bbfdb5
- Make it build on python 3.7
Marcel Haerry 7bbfdb5
c2d5b08
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-4
c2d5b08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c2d5b08
6d2fa67
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.6.0-3
6d2fa67
- Rebuilt for Python 3.7
6d2fa67
b07ff83
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
b07ff83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b07ff83
Juan Orti Alcaine 1b4fbed
* Tue Nov 07 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.6.0-1
Juan Orti Alcaine 1b4fbed
- Version 1.6.0
Juan Orti Alcaine 1b4fbed
f1b5a2c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-4
f1b5a2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f1b5a2c
01b7888
* Sat Jul 01 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.5.4-3
01b7888
- Python3 changes
01b7888
3ace953
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-2
3ace953
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3ace953
63cca13
* Sat Jan 07 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.5.4-1
63cca13
- Version 1.5.4
63cca13
36ea627
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.5.3-2
36ea627
- Rebuild for Python 3.6
36ea627
055751d
* Mon Nov 28 2016 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.5.3-1
055751d
- Version 1.5.3
055751d
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