From caf8c067e370b97f260332aae7d6e32ccb4794e7 Mon Sep 17 00:00:00 2001 From: James Antill Date: Thu, 26 May 2022 13:37:02 -0400 Subject: [PATCH] Auto sync2gitlab import of python-justbytes-0.14-2.el8.src.rpm --- .gitignore | 1 + EMPTY | 1 - python-justbytes.spec | 124 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 126 insertions(+), 1 deletion(-) create mode 100644 .gitignore delete mode 100644 EMPTY create mode 100644 python-justbytes.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c50215a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/justbytes-0.14.tar.gz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/python-justbytes.spec b/python-justbytes.spec new file mode 100644 index 0000000..d6319c3 --- /dev/null +++ b/python-justbytes.spec @@ -0,0 +1,124 @@ +%global srcname justbytes + +%if 0%{?rhel} > 7 +# Disable python2 build by default +%bcond_with python2 +%else +%bcond_without python2 +%endif + +Name: python-%{srcname} +Version: 0.14 +Release: 2%{?dist} +Summary: Library for handling computation with address ranges in bytes + +License: LGPLv2+ +URL: http://pypi.python.org/pypi/justbytes +Source0: https://pypi.io/packages/source/%(n=%{srcname}; echo ${n:0:1})/%{srcname}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch + +%global _description \ +A library for handling computations with address ranges. The library also offers\ +a configurable way to extract the representation of a value. + +%description %{_description} + +%if %{with python2} +%package -n python2-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python2-%{srcname}} +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-pytest +BuildRequires: python2-hypothesis +BuildRequires: python2-justbases +BuildRequires: python2-six +Requires: python2-justbases +Requires: python2-six + +%description -n python2-%{srcname} %{_description} + +Python 2 version. +%endif # with python2 + +%package -n python3-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pytest +BuildRequires: python3-hypothesis +BuildRequires: python3-justbases +BuildRequires: python3-six +Requires: python3-justbases +Requires: python3-six + +%description -n python3-%{srcname} %{_description} + +Python 3 version. + +%prep +%autosetup -n %{srcname}-%{version} +rm -rf justbytes.egg-info + +%build +%if %{with python2} +%py2_build +%endif # with python2 +%py3_build + +%install +%if %{with python2} +%py2_install +%endif # with python2 +%py3_install + +%check +%if %{with python2} +PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} -v tests +%endif # with python2 +PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v tests + +%if %{with python2} +%files -n python2-%{srcname} +%license LICENSE +%doc README.rst +%{python2_sitelib}/justbytes/ +%{python2_sitelib}/justbytes-%{version}-*.egg-info/ +%endif # with python2 + +%files -n python3-%{srcname} +%license LICENSE +%doc README.rst +%{python3_sitelib}/justbytes/ +%{python3_sitelib}/justbytes-%{version}-*.egg-info/ + +%changelog +* Wed May 06 2020 Dennis Keefe - 0.14-2 +- Update to 0.14 +- Resolves: rhbz#1824225 + +* Fri Jun 08 2018 Charalampos Stratakis - 0.11-2 +- Conditionalize the python2 subpackage + +* Mon Jan 08 2018 Igor Gnatenko - 0.11-1 +- Update to 0.11 + +* Thu Jul 27 2017 Fedora Release Engineering - 0.10-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.10-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro HronĨok - 0.10-2 +- Rebuild for Python 3.6 + +* Wed Aug 10 2016 mulhern - 0.10 +- New release + +* Tue Jul 19 2016 Fedora Release Engineering - 0.7-2 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Wed Mar 23 2016 mulhern - 0.6 +- Initial release diff --git a/sources b/sources new file mode 100644 index 0000000..1008656 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (justbytes-0.14.tar.gz) = e9fa700e835b76d08536f0991664e22d38fcb4ba5909e37b67fba31575a7531803a0dce9d201fb97a72376c084fa2891ed58b7de1b1dd96a0ec874eb01ee4f9b