5956a44
# This package has a circular dependency with pyutil.
5956a44
# Enable the bootstrap conditional to break the cycle.
dbb6c7f
%bcond_with bootstrap
5956a44
66b2226
Name:           python-zbase32
66b2226
Version:        1.1.5
331d65e
Release:        34%{?dist}
66b2226
Summary:        A base32 encoder/decoder
66b2226
License:        BSD and LGPLv2
66b2226
URL:            http://allmydata.org/trac/zbase32
66b2226
Source0:        http://pypi.python.org/packages/source/z/zbase32/zbase32-%{version}.tar.gz
3c0d417
Patch1:         0001-port-to-Python-3.patch
3c0d417
Patch2:         0002-expect-binary-data-to-be-bytes-not-str.patch
66b2226
BuildArch:      noarch
fcb9347
f5070a1
%global _description\
fcb9347
An alternate base32 encoder (not RFC 3548 compliant).
fcb9347
f5070a1
%description %_description
f5070a1
3c0d417
%package -n python3-zbase32
3c0d417
Summary: %summary
3c0d417
BuildRequires:  python3-devel
3c0d417
BuildRequires:  python3-setuptools
204aae3
%if %{with bootstrap}
204aae3
%{?python_disable_dependency_generator}
204aae3
%else
3c0d417
BuildRequires:  python3-pyutil
3c0d417
Requires:       python3-pyutil
5956a44
%endif
3c0d417
%{?python_provide:%python_provide python3-zbase32}
3c0d417
3c0d417
%description -n python3-zbase32 %_description
3c0d417
fcb9347
%prep
1d159db
%setup -q -n zbase32-%{version}
3c0d417
%patch1 -p1
760fe29
%patch2 -p1
4f2fc96
%py3_shebang_fix .
fcb9347
fcb9347
%build
1d159db
%py3_build
fcb9347
fcb9347
%install
1d159db
%py3_install
fcb9347
3c0d417
chmod 0755 %{buildroot}%{python3_sitelib}/zbase32/test/test_zbase32.py
3c0d417
chmod 0755 %{buildroot}%{python3_sitelib}/zbase32/zbase32.py
fcb9347
fcb9347
%check
5956a44
%if ! %{with bootstrap}
1d159db
%{__python3} setup.py test
5956a44
%endif
fcb9347
3c0d417
%files -n python3-zbase32
3c0d417
%doc README DESIGN TODO
3c0d417
%{python3_sitelib}/zbase32
3c0d417
%{python3_sitelib}/zbase32-%{version}-py%{python3_version}.egg-info
3c0d417
fcb9347
%changelog
331d65e
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-34
331d65e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
331d65e
2b179c1
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-33
2b179c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
2b179c1
59e853b
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-32
59e853b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
59e853b
daf0478
* Thu Jul 20 2023 Python Maint <python-maint@redhat.com> - 1.1.5-31
daf0478
- Rebuilt for Python 3.12
daf0478
5f89331
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.1.5-30
5f89331
- Bootstrap for Python 3.12
5f89331
36f7110
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-29
36f7110
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
36f7110
0956a7c
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-28
0956a7c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
0956a7c
bb4b08f
* Thu Jun 23 2022 Python Maint <python-maint@redhat.com> - 1.1.5-27
bb4b08f
- Rebuilt for Python 3.11
bb4b08f
09ae17d
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.1.5-26
09ae17d
- Bootstrap for Python 3.11
09ae17d
a2eeb60
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-25
a2eeb60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
a2eeb60
b9049ff
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-24
b9049ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
b9049ff
6d955bd
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1.5-23
6d955bd
- Rebuilt for Python 3.10
6d955bd
c515041
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1.5-22
c515041
- Bootstrap for Python 3.10
c515041
36a122b
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-21
36a122b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
36a122b
308c087
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-20
308c087
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
308c087
3e5618f
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.5-19
3e5618f
- Rebuilt for Python 3.9
3e5618f
32914cd
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.5-18
32914cd
- Bootstrap for Python 3.9
32914cd
5a3a76b
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-17
5a3a76b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5a3a76b
a550e61
* Sun Nov 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.5-16
dbb6c7f
- Rebuilt for Python 3.8
4bed34b
f2122a2
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-15
f2122a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f2122a2
618f924
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-14
618f924
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
618f924
1d159db
* Wed Jan 09 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.5-13
1d159db
- Subpackage python2-zbase32 has been removed
1d159db
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
1d159db
3c0d417
* Mon Aug 27 2018 Dan Callaghan <dcallagh@redhat.com> - 1.1.5-12
3c0d417
- Added Python 3 subpackage
3c0d417
9ec7c5d
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-11
9ec7c5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9ec7c5d
19eacf6
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.1.5-10
19eacf6
- Update Python 2 dependency declarations to new packaging standards
19eacf6
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
19eacf6
7568539
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-9
7568539
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7568539
f5070a1
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.1.5-8
f5070a1
- Python 2 binary package renamed to python2-zbase32
f5070a1
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
f5070a1
80c5200
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-7
80c5200
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
80c5200
c1fe104
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-6
c1fe104
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c1fe104
7d122a0
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-5
7d122a0
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
7d122a0
aa7838f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-4
aa7838f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
aa7838f
527bf08
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-3
527bf08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
527bf08
435b3f8
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-2
435b3f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
435b3f8
66b2226
* Mon Dec 30 2013 Christopher Meng <rpm@cicku.me> - 1.1.5-1
66b2226
- Update to 1.1.5
66b2226
349b0bc
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-5
349b0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
349b0bc
f76a8e1
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-4
f76a8e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f76a8e1
61889c0
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-3
61889c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
61889c0
b4a3a71
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-2
b4a3a71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b4a3a71
d9b996a
* Wed Feb 09 2011 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.1.3-1
d9b996a
- Upstream released new version
d9b996a
d3d9720
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-8
d3d9720
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d3d9720
0b242c1
* Tue Jul 27 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 1.1.2-7
0b242c1
- pyutil is in. Re-enable tests. Re-add Requires: pyutil
0b242c1
6d93260
* Tue Jul 27 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 1.1.2-6
6d93260
- Also comment out Requires: pyutil
6d93260
c1b292a
* Tue Jul 27 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 1.1.2-5
c1b292a
- Disable tests. We need to bootstrap against pyutil
c1b292a
65eb21c
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.1.2-4
65eb21c
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
65eb21c
6b345fe
* Thu Jun 24 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.1.2-3
6b345fe
- Re-diff patch
6b345fe
c9309ea
* Thu Jun 24 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.1.2-2
c9309ea
- Re-add patch
c9309ea
3960818
* Thu Jun 24 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.1.2-1
3960818
- Upstream released new version
3960818
5d0b295
* Sun Feb 21 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.1.1-4
5d0b295
- Require pyutil now it's in
5d0b295
fcb9347
* Tue Feb 09 2010 Ruben Kerkhof 
fcb9347
- Stop setuptools from looking for setuptools_darcs
fcb9347
fcb9347
* Mon Feb 01 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.1.1-2
fcb9347
- Disable dependency on pyutil until that's approved (#560457)
fcb9347
fcb9347
* Sun Jan 31 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.1.1-1
fcb9347
- Initial import
fcb9347