python-justbytes/python-justbytes.spec
2016-12-19 18:20:37 +01:00

82 lines
2.2 KiB
RPMSpec

%global srcname justbytes
Name: python-%{srcname}
Version: 0.10
Release: 2%{?dist}
Summary: A library for handling computation with address ranges in bytes
License: GPLv2
URL: http://pypi.python.org/pypi/%{srcname}
Source0: https://pypi.io/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: python2-setuptools
Requires: python2-justbases
Requires: python2-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
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.10-2
- Rebuild for Python 3.6
* Wed Aug 10 2016 mulhern <amulhern@redhat.com> - 0.10
- New release
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Wed Mar 23 2016 mulhern <amulhern@redhat.com> - 0.6
- Initial release