%global pypi_name pluginlib %global sum A framework for creating and importing plugins in Python %global desc Pluginlib is a Python framework for creating and importing plugins.\ Pluginlib makes creating plugins for your project simple. %bcond_without python3 Name: python-%{pypi_name} Version: 0.9.1 Release: 5%{?dist} Summary: %{sum} License: MPL-2.0 URL: https://github.com/Rockhopper-Technologies/pluginlib Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %if %{with python3} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools %endif %if 0%{?with_python3_other} BuildRequires: python%{python3_other_pkgversion}-devel BuildRequires: python%{python3_other_pkgversion}-setuptools %endif %description %{desc} # Python 3 package %if %{with python3} %package -n python%{python3_pkgversion}-%{pypi_name} Summary: %{sum} %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} Requires: python%{python3_pkgversion}-setuptools %description -n python%{python3_pkgversion}-%{pypi_name} %{desc} %endif # Python 3 other package %if 0%{?with_python3_other} %package -n python%{python3_other_pkgversion}-%{pypi_name} Summary: %{sum} %{?python_provide:%python_provide python%{python3_other_pkgversion}-%{pypi_name}} Requires: python%{python3_other_pkgversion}-setuptools %description -n python%{python3_other_pkgversion}-%{pypi_name} %{desc} %endif %prep %autosetup -p0 -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %if %{with python3} %py3_build %endif %if 0%{?with_python3_other} %py3_other_build %endif %install %if 0%{?with_python3_other} %py3_other_install %endif %if %{with python3} %py3_install %endif %check %if %{with python3} %{__python3} -m unittest %endif %if 0%{?with_python3_other} %{__python3_other} -m unittest %endif %if %{with python3} %files -n python%{python3_pkgversion}-%{pypi_name} %doc README* %license LICENSE %{python3_sitelib}/pluginlib* %endif %if 0%{?with_python3_other} %files -n python%{python3_other_pkgversion}-%{pypi_name} %doc README* %license LICENSE %{python3_other_sitelib}/pluginlib* %endif %changelog * Sat Apr 13 2024 Miroslav Suchý - 0.9.1-5 - convert license to SPDX * Fri Jan 26 2024 Fedora Release Engineering - 0.9.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.9.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.9.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jul 05 2023 Avram Lubkin - 0.9.1-1 - Update to 0.9.1 (#2214432) - Drop Python 2 from spec * Tue Jun 13 2023 Python Maint - 0.9.0-5 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.9.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.9.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.9.0-2 - Rebuilt for Python 3.11 * Wed Mar 30 2022 Avram Lubkin - 0.9.0-1 - Update to 0.9.0 (#2054005) * Fri Jan 21 2022 Fedora Release Engineering - 0.8.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.8.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.8.2-2 - Rebuilt for Python 3.10 * Sat Feb 20 2021 Avram Lubkin - 0.8.2-1 - 0.8.2 Release * Wed Jan 27 2021 Fedora Release Engineering - 0.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Jan 17 2021 Avram Lubkin - 0.8.1-1 - 0.8.1 Release * Wed Jul 29 2020 Fedora Release Engineering - 0.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jun 19 2020 Avram Lubkin - 0.8.0-1 - 0.8.0 Release * Tue May 26 2020 Miro Hrončok - 0.7.0-2 - Rebuilt for Python 3.9 * Sat May 02 2020 Avram Lubkin - 0.7.0-1 - 0.7.0 Release * Thu Jan 30 2020 Fedora Release Engineering - 0.6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Oct 08 2019 Avram Lubkin - 0.6.2-1 - 0.6.2 Release * Thu Oct 03 2019 Miro Hrončok - 0.6.1-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.6.1-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.6.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Aug 07 2018 Avram Lubkin - 0.6.1-1 - 0.6.1 Release * Sat Aug 04 2018 Avram Lubkin - 0.6.0-2 - EL6 build requirements should only apply to Python 2 * Mon Jul 23 2018 Avram Lubkin - 0.6.0-1 - 0.6.0 Release * Mon Jul 23 2018 Avram Lubkin - 0.5.1-2 - Change with_pythonX to use bcond_with(out) - Make files sections more specific * Mon Jul 23 2018 Avram Lubkin - 0.5.1-1 - Initial package.