%global libname zbase32
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: python-%{libname}
Version: 1.1.2
Release: 8%{?dist}
Summary: A base32 encoder/decoder
Group: Development/Tools
License: BSD and LGPLv2
URL: http://allmydata.org/trac/%{libname}
Source0: http://pypi.python.org/packages/source/z/%{libname}/%{libname}-%{version}.tar.gz
Patch0: zbase32-disable-darcs.patch
BuildArch: noarch
Requires: pyutil
BuildRequires: python-devel, python-argparse, python-setuptools, pyutil
%description
An alternate base32 encoder (not RFC 3548 compliant).
%prep
%setup -q -n %{libname}-%{version}
# stop setuptools from looking for setuptools_darcs
%patch0 -p1
%build
%{__python} setup.py build
%install
python setup.py install -O1 --skip-build --root %{buildroot}
chmod 0755 %{buildroot}%{python_sitelib}/%{libname}/test/test_%{libname}.py
chmod 0755 %{buildroot}%{python_sitelib}/%{libname}/%{libname}.py
%check
python setup.py test
%files
%defattr(-,root,root,-)
%doc README
%{python_sitelib}/%{libname}
%{python_sitelib}/%{libname}-%{version}-*.egg-info
%changelog
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Tue Jul 27 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 1.1.2-7
- pyutil is in. Re-enable tests. Re-add Requires: pyutil
* Tue Jul 27 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 1.1.2-6
- Also comment out Requires: pyutil
* Tue Jul 27 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 1.1.2-5
- Disable tests. We need to bootstrap against pyutil
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.1.2-4
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
* Thu Jun 24 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.1.2-3
- Re-diff patch
* Thu Jun 24 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.1.2-2
- Re-add patch
* Thu Jun 24 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.1.2-1
- Upstream released new version
* Sun Feb 21 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.1.1-4
- Require pyutil now it's in
* Tue Feb 09 2010 Ruben Kerkhof <ruben@rubenkerkhof.com 1.1.1-3
- Stop setuptools from looking for setuptools_darcs
* Mon Feb 01 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.1.1-2
- Disable dependency on pyutil until that's approved (#560457)
* Sun Jan 31 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.1.1-1
- Initial import