%global _empty_manifest_terminate_build 0
Name:		python-agate-dbf
Version:	0.2.4
Release:	1
Summary:	agate-dbf adds read support for dbf files to agate.
License:	MIT
URL:		https://github.com/wireservice/agate-dbf
Source0:	https://files.pythonhosted.org/packages/source/a/agate-dbf/agate_dbf-%{version}.tar.gz
BuildArch:	noarch

%description
Adds read support for DBF files to agate

%package -n python3-agate-dbf
Summary:	agate-dbf adds read support for dbf files to agate.
Provides:	python-agate-dbf = %{version}-%{release}
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
%description -n python3-agate-dbf
Adds read support for DBF files to agate

%package help
Summary:	Development documents and examples for agate-dbf
Provides:	python3-agate-dbf-doc
%description help
Adds read support for DBF files to agate

%prep
%autosetup -n agate_dbf-%{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
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-agate-dbf -f filelist.lst
%dir %{python3_sitelib}/*

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

%changelog
* Mon Dec 29 2025 yyli <dev01209@linx-info.com> - 0.2.4-1
- Update package to version 0.2.4
- Add Python 3.13 and 3.14 support. Drop support for end-of-life versions 3.8 and 3.9

* Tue Oct 15 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 0.2.3-1
- Update package to version 0.2.3
- Drop support for Python 2.7, 3.4, 3.5
  Upgrade actions. Add dependabot.yml

* Thu Apr 21 2022 liqiuyu <liqiuyu@kylinos.cn> - 0.2.2-2
- Add zlib to buildrequires 

* Mon Dec 06 2021 Python_Bot <Python_Bot@openeuler.org> - 0.2.2-1
- Package Init