diff --git a/.gitignore b/.gitignore index e69de29..f2e847b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/justbases-0.6.tar.gz diff --git a/python-justbases.spec b/python-justbases.spec new file mode 100644 index 0000000..4f1b93d --- /dev/null +++ b/python-justbases.spec @@ -0,0 +1,70 @@ +%global srcname justbases +Name: python-%{srcname} +Version: 0.6 +Release: 1%{?dist} +Summary: A small library for precise conversion between arbitrary bases + +License: GPLv2 +URL: http://pypi.python.org/pypi/justbases +Source0: https://pypi.python.org/packages/source/j/%{srcname}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch + +%description +A small library for precise conversion between arbitrary bases and native +Python numbers. + +%package -n python2-%{srcname} +Summary: A small library for precise conversion between arbitrary bases +%{?python_provide:%python_provide python2-%{srcname}} + +BuildRequires: python2-devel +BuildRequires: python-setuptools + +Requires: python-six + +%description -n python2-%{srcname} +A small library for precise conversion between arbitrary bases and native +Python numbers. + + +%package -n python3-%{srcname} +Summary: A small library for precise conversion between arbitrary bases +%{?python_provide:%python_provide python3-%{srcname}} + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +Requires: python3-six + +%description -n python3-%{srcname} +A small library for precise conversion between arbitrary bases and native +Python numbers. + +%prep +%autosetup -n %{srcname}-%{version} +rm -rf justbases.egg-info + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%files -n python2-%{srcname} +%license LICENSE +%doc README.rst +%{python2_sitelib}/justbases/ +%{python2_sitelib}/justbases-%{version}-*.egg-info + +%files -n python3-%{srcname} +%license LICENSE +%doc README.rst +%{python3_sitelib}/justbases/ +%{python3_sitelib}/justbases-%{version}-*.egg-info + +%changelog +* Wed Mar 16 2016 mulhern - 0.6 +- Initial release diff --git a/sources b/sources index e69de29..6e21f6b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e0d603b185dbca47e427d2c82439ab10 justbases-0.6.tar.gz