352c045
%global srcname justbases
352c045
Name:       python-%{srcname}
6cf142a
Version:    0.9
3745a6a
Release:    2%{?dist}
352c045
Summary:    A small library for precise conversion between arbitrary bases
352c045
6cf142a
License:    GPLv2+
352c045
URL:        http://pypi.python.org/pypi/justbases
6cf142a
Source0:    https://pypi.io/packages/source/j/%{srcname}/%{srcname}-%{version}.tar.gz
352c045
352c045
BuildArch:  noarch
352c045
352c045
%description
352c045
A small library for precise conversion between arbitrary bases and native
352c045
Python numbers.
352c045
352c045
%package -n python2-%{srcname}
352c045
Summary:    A small library for precise conversion between arbitrary bases
352c045
%{?python_provide:%python_provide python2-%{srcname}}
352c045
352c045
BuildRequires:  python2-devel
6cf142a
BuildRequires:  python2-setuptools
352c045
6cf142a
Requires: python2-six
352c045
352c045
%description -n python2-%{srcname}
352c045
A small library for precise conversion between arbitrary bases and native
352c045
Python numbers.
352c045
352c045
352c045
%package -n python3-%{srcname}
352c045
Summary:    A small library for precise conversion between arbitrary bases
352c045
%{?python_provide:%python_provide python3-%{srcname}}
352c045
352c045
BuildRequires:  python3-devel
352c045
BuildRequires:  python3-setuptools
352c045
352c045
Requires: python3-six
352c045
352c045
%description -n python3-%{srcname}
352c045
A small library for precise conversion between arbitrary bases and native
352c045
Python numbers.
352c045
352c045
%prep
352c045
%autosetup -n %{srcname}-%{version}
352c045
rm -rf justbases.egg-info
352c045
352c045
%build
352c045
%py2_build
352c045
%py3_build
352c045
352c045
%install
352c045
%py2_install
352c045
%py3_install
352c045
352c045
%files -n python2-%{srcname}
352c045
%license LICENSE
352c045
%doc README.rst
352c045
%{python2_sitelib}/justbases/
352c045
%{python2_sitelib}/justbases-%{version}-*.egg-info
352c045
352c045
%files -n python3-%{srcname}
352c045
%license LICENSE
352c045
%doc README.rst
352c045
%{python3_sitelib}/justbases/
352c045
%{python3_sitelib}/justbases-%{version}-*.egg-info
352c045
352c045
%changelog
3745a6a
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.9-2
3745a6a
- Rebuild for Python 3.6
3745a6a
6cf142a
* Tue Aug 2 2016 mulhern <amulhern@redhat.com> - 0.9
6cf142a
- New release
6cf142a
2611c23
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
2611c23
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2611c23
352c045
* Wed Mar 16 2016 mulhern <amulhern@redhat.com> - 0.6
352c045
- Initial release