%global _empty_manifest_terminate_build 0
Name:		python-sqids
Version:	0.5.2
Release:	3
Summary:	Generate YouTube-like ids from numbers.
License:	MIT
URL:		https://sqids.org/python
Source0:	https://files.pythonhosted.org/packages/33/5b/98c1b37109210631875092d9e7cb7aef3fda2f03780dd999fe5854afa5f3/sqids-0.5.2.tar.gz
BuildArch:	noarch


%description
Sqids Python

%package -n python3-sqids
Summary:	Generate YouTube-like ids from numbers.
Provides:	python-sqids
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-pip
BuildRequires:	python3-wheel
%description -n python3-sqids
Sqids Python

%prep
%autosetup -n sqids-0.5.2

%build
%pyproject_build

%install
%pyproject_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}
touch filelist.lst
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-sqids -f filelist.lst
%{python3_sitelib}/*


%changelog
* Wed Jul 15 2026 peiliya <peiliya@kylinos.cn> - 0.5.2-3
- Fix Source0 URL and %autosetup dir to 0.5.2
* Wed Jul 15 2026 peiliya <peiliya@kylinos.cn> - 0.5.2-2
- Remove obsolete source tarball sqids-0.5.1.tar.gz
* Wed Jul 15 2026 peiliya <peiliya@kylinos.cn> - 0.5.2-1
- Update to 0.5.2
* Thu May 08 2025 Python_Bot <Python_Bot@openeuler.org> - 0.5.1-1
- Package Spec generated