diff --git a/fire-0.5.0.tar.gz b/fire-0.5.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..3108902f1faa4ed088d4b1bc9dc1f647979fe39c Binary files /dev/null and b/fire-0.5.0.tar.gz differ diff --git a/python-fire.spec b/python-fire.spec new file mode 100644 index 0000000000000000000000000000000000000000..14acf4edb30cb349bbdb18b3ad0ba70c485ede67 --- /dev/null +++ b/python-fire.spec @@ -0,0 +1,55 @@ +%define anolis_release 1 +%global pypi_name fire +%global pypi_version 0.5.0 + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: %{anolis_release}%{?dist} +Summary: A library for automatically generating command line interfaces + +License: Apache Software License +URL: https://github.com/google/python-fire +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(six) +BuildRequires: python3dist(termcolor) + +%description +Python Fire is a library for automatically generating command line interfaces +(CLIs) with a single line of code.It will turn any Python module, class, +object, function, etc. into a CLI. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3dist(six) +Requires: python3dist(termcolor) +%description -n python3-%{pypi_name} +Python Fire is a library for automatically generating command line interfaces +(CLIs) with a single line of code.It will turn any Python module, class, +object, function, etc. into a CLI. + +%prep +%autosetup -n %{pypi_name}-%{pypi_version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info + +%changelog +* Thu Jan 18 2024 Zhongling He - 0.5.0-1 +- Initial package. \ No newline at end of file