9f8e3cec创建于 2025年9月4日历史提交
%global _empty_manifest_terminate_build 0
Name:		python-fire
Version:	0.7.1
Release:	1
Summary:	A library for automatically generating command line interfaces.
License:	Apache-2.0
URL:		https://github.com/google/python-fire
Source0:	https://github.com/google/python-fire/archive/refs/tags/%{name}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	python3-pip python3-wheel

%description
Python Fire is a library for automatically generating command line interfaces
(CLIs) with a single line of code.

%package -n python3-fire
Summary:	A library for automatically generating command line interfaces.
Provides:	python-fire = %{version}-%{release}
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
%description -n python3-fire
Python Fire is a library for automatically generating command line interfaces
(CLIs) with a single line of code.

%package help
Summary:	Development documents and examples for fire
Provides:	python3-fire-doc
%description help
Documentation for python3-fire.

%prep
%autosetup -n %{name}-%{version}

%build
%py3_build

%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
	find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
	find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
	find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
	find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
	find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .

%files -n python3-fire -f filelist.lst
%dir %{python3_sitelib}/*

%files help -f doclist.lst
%{_docdir}/*

%changelog
* Wed Aug 13 2025 lvfei <lvfei@kylinos.cn> - 0.7.1-1
- update to 0.7.1
- Use Neutral theme for IPython Inspector, supporting newer IPython
- Call inspectutils.GetClassAttrsDict on component
- Move to pyproject.toml, adding wheel support in pypi

* Tue Dec 24 2024 sqfu <dev01203@linx-info.com> - 0.7.0-1
- update to 0.7.0
- adding GH dependabot
- Bump the pip group with 2 updates
- Update hypothesis requirement from <6.62.0 to <6.100.0 in /.github/scripts

* Mon Jan 16 2023 wangjunqi <wangjunqi@kylinos.cn> - 0.5.0-1
- Update package to version 0.5.0

* Fri Jul 16 2021 Kou Wenqi <kouwenqi@kylinos.cn> - 0.4.0-1
- Init package