diff --git a/babelfish-0.6.0.tar.gz b/babelfish-0.6.0.tar.gz deleted file mode 100644 index d529b7a60cbd42a673fdae33ee0bac35163647f6..0000000000000000000000000000000000000000 Binary files a/babelfish-0.6.0.tar.gz and /dev/null differ diff --git a/babelfish-0.6.1.tar.gz b/babelfish-0.6.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b1ff0138abb970ed71067a9caf17291861717f15 Binary files /dev/null and b/babelfish-0.6.1.tar.gz differ diff --git a/python-babelfish.spec b/python-babelfish.spec index 92a3c5683325b5f40a28343e3586a6cac70dd298..36b9d3dd55d094b6a44aea73c66c71adffa04c40 100644 --- a/python-babelfish.spec +++ b/python-babelfish.spec @@ -1,14 +1,13 @@ %global _empty_manifest_terminate_build 0 Name: python-babelfish -Version: 0.6.0 +Version: 0.6.1 Release: 1 Summary: A module to work with countries and languages License: BSD-3-Clause URL: https://github.com/Diaoul/babelfish -Source0: https://files.pythonhosted.org/packages/02/0d/e72bf59672ebceae99cd339106df2b0d59964e00a04f7286ae9279d9da6c/babelfish-0.6.0.tar.gz +Source0: https://files.pythonhosted.org/packages/source/b/babelfish/babelfish-%{version}.tar.gz BuildArch: noarch - %description A module to work with countries and languages @@ -16,7 +15,10 @@ A module to work with countries and languages Summary: A module to work with countries and languages Provides: python-babelfish BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-flit +BuildRequires: python3-poetry-core %description -n python3-babelfish A module to work with countries and languages @@ -30,43 +32,27 @@ A module to work with countries and languages %autosetup -n babelfish-%{version} %build -%py3_build +%pyproject_build %install -%py3_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} -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-babelfish -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python3-babelfish +%{python3_sitelib}/* -%files help -f doclist.lst +%files help %{_docdir}/* %changelog +* Wed Nov 06 2024 jiangxinyu - 0.6.1-1 +- Update package to version 0.6.1 + * Drop python 3.6 (EOL) and add 3.10 and 3.11 + * Replace pkg_resources with importlib + * Fri Sep 30 2022 guozhengxin - 0.6.0-1 - Upgrade package to version 0.6.0