%global srcname justbytes Name: python-%{srcname} Version: 0.6 Release: 3%{?dist} Summary: A library for handling computation with address ranges in bytes License: GPLv2 URL: http://pypi.python.org/pypi/%{srcname} Source0: https://pypi.python.org/packages/source/j/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch %description A library for handling computations with address ranges. The library also offers a configurable way to extract the representation of a value. %package -n python2-%{srcname} Summary: A library for handling computation with address ranges in bytes %{?python_provide:%python_provide python2-%{srcname}} BuildRequires: python2-devel BuildRequires: python-setuptools Requires: python2-justbases Requires: python-six %description -n python2-%{srcname} A library for handling computations with address ranges. The library also offers a configurable way to extract the representation of a value. %package -n python3-%{srcname} Summary: A module for handling computation with address ranges in bytes %{?python_provide:%python_provide python3-%{srcname}} BuildRequires: python3-devel BuildRequires: python3-setuptools Requires: python3-justbases Requires: python3-six %description -n python3-%{srcname} A library for handling computations with address ranges. The library also offers a configurable way to extract the representation of a value. %prep %autosetup -n %{srcname}-%{version} rm -rf justbytes.egg-info %build %py2_build %py3_build %install %py2_install %py3_install %files -n python2-%{srcname} %license LICENSE %doc README.rst %{python2_sitelib}/justbytes/ %{python2_sitelib}/justbytes-%{version}-*.egg-info %files -n python3-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/justbytes/ %{python3_sitelib}/justbytes-%{version}-*.egg-info %changelog * Wed Mar 23 2016 mulhern - 0.6 - Initial release