%if 0%{?fedora} || 0%{?rhel} > 7 %bcond_with python2 %bcond_without python3 %else %bcond_without python2 %bcond_with python3 %endif %global pypi_name cradox Name: python-%{pypi_name} Version: 2.1.0 Release: 24%{?dist} Summary: Python libraries for the Ceph librados library with use cython instead of ctypes License: LGPLv2 URL: https://github.com/sileht/pycradox Source0: https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz ExcludeArch: i686 armv7hl %description Python libraries for the Ceph librados library with use cython instead of ctypes %if %{with python2} %package -n python2-%{pypi_name} Summary: Python libraries for the Ceph librados library with use cython instead of ctypes %{?python_provide:%python_provide python2-%{pypi_name}} BuildRequires: python2-devel BuildRequires: python2-setuptools BuildRequires: python2-pbr BuildRequires: python2-Cython BuildRequires: python2-jinja2 BuildRequires: python2-pifpaf BuildRequires: librados2-devel BuildRequires: gcc Requires: python2-Cython %description -n python2-%{pypi_name} Python libraries for the Ceph librados library with use cython instead of ctypes %endif %if %{with python3} %package -n python3-%{pypi_name} Summary: Python libraries for the Ceph librados library with use cython instead of ctypes %{?python_provide:%python_provide python3-%{pypi_name}} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pbr BuildRequires: python3-Cython BuildRequires: python3-jinja2 BuildRequires: python3-pifpaf BuildRequires: librados2-devel BuildRequires: gcc Requires: python3-Cython %description -n python3-%{pypi_name} Python libraries for the Ceph librados library with use cython instead of ctypes %endif %prep %autosetup -n %{pypi_name}-%{version} %build %if %{with python2} %py2_build %endif %if %{with python3} %py3_build %endif %install %if 0%{with python3} %py3_install %endif %if %{with python2} %py2_install %endif %if %{with python2} %files -n python2-%{pypi_name} %doc README.rst %license LICENSE %{python2_sitearch}/cradox.so %{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info %exclude %{_usrsrc}/debug/* %exclude %{_libdir}/debug/* %endif %if %{with python3} %files -n python3-%{pypi_name} %doc README.rst %license LICENSE %{python3_sitearch}/cradox.*.so %{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %endif %changelog * Fri Jul 19 2024 Fedora Release Engineering - 2.1.0-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jun 10 2024 Python Maint - 2.1.0-23 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 2.1.0-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2.1.0-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 2.1.0-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jul 19 2023 Python Maint - 2.1.0-19 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 2.1.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 2.1.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 15 2022 Python Maint - 2.1.0-16 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 2.1.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 2.1.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 2.1.0-13 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 2.1.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Aug 01 2020 Fedora Release Engineering - 2.1.0-11 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 2.1.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 2.1.0-9 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 2.1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Aug 19 2019 Miro Hrončok - 2.1.0-7 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 2.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Apr 29 2019 Javier Peña - 2.1.0-5 - Exclude i686 and armv7hl arches from build, since Ceph does it too * Sat Feb 02 2019 Fedora Release Engineering - 2.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Sep 24 2018 Javier Peña - 2.1.0-3 - Removed python2 subpackage from Fedora 30+ (bz#1632335) * Tue Aug 07 2018 Javier Peña - 2.1.0-2 - Upstream 2.1.0 - Fixed for rawhide builds (bz#1605642) * Fri Jul 13 2018 Fedora Release Engineering - 1.3.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.3.2-6 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 1.3.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Jan 16 2018 Iryna Shcherbina - 1.3.2-4 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Thu Aug 03 2017 Fedora Release Engineering - 1.3.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon May 22 2017 Javier Peña - 1.3.2-1 - Updated to upstream version 1.3.2 * Sat Feb 11 2017 Fedora Release Engineering - 1.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 1.3.0-2 - Rebuild for Python 3.6 * Wed Sep 28 2016 Javier Peña - 1.3.0-1 - Updated to upstream version 1.3.0 * Mon Aug 1 2016 Javier Peña - 1.1.8-3 - Removed gcc from BuildRequires * Fri Jun 10 2016 jpena - 1.1.8-2 - Fixed explicit lib dependencies - Fixed license and source * Thu Apr 21 2016 jpena - 1.1.8-1 - Initial package.