%global pretty_name FireflyAlgorithm %global new_name fireflyalgorithm %global _description %{expand: Implementation of Firefly Algorithm (FA) for optimization.} Name: python-%{new_name} Version: 0.0.4 Release: 2%{?dist} Summary: Implementation of Firefly Algorithm in Python License: MIT URL: https://github.com/firefly-cpp/%{pretty_name} Source0: %{url}/archive/%{version}/%{pretty_name}-%{version}.tar.gz BuildArch: noarch Provides: python-FireflyAlgorithm = %{version}-%{release} Obsoletes: python-FireflyAlgorithm < 0.0.4-2 %description %_description %package -n python3-%{new_name} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools Provides: python3-FireflyAlgorithm = %{version}-%{release} Obsoletes: python3-FireflyAlgorithm < 0.0.4-2 %description -n python3-%{new_name} %_description %prep %autosetup -n %{pretty_name}-%{version} %build %py3_build %install %py3_install %files -n python3-%{new_name} %license LICENSE %doc README.md %{python3_sitelib}/%{pretty_name}-%{version}-py%{python3_version}.egg-info %pycached %{python3_sitelib}/%{pretty_name}.py %changelog * Mon Apr 19 2021 Iztok Fister Jr. - 0.0.4-2 - Initial package - Previous package python-FireflyAlgorithm will be retired