diff --git a/Pint-0.20.1.tar.gz b/Pint-0.20.1.tar.gz deleted file mode 100644 index 5ea89d6..0000000 Binary files a/Pint-0.20.1.tar.gz and /dev/null differ diff --git a/Pint-0.22.tar.gz b/Pint-0.22.tar.gz new file mode 100644 index 0000000..f55a9e4 Binary files /dev/null and b/Pint-0.22.tar.gz differ diff --git a/python-pint.spec b/python-pint.spec index db716b6..35d08fd 100644 --- a/python-pint.spec +++ b/python-pint.spec @@ -1,11 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-pint -Version: 0.20.1 +Version: 0.22 Release: 1 Summary: Physical quantities module License: BSD-3-Clause URL: https://github.com/hgrecco/pint -Source0: https://files.pythonhosted.org/packages/f3/d1/56923579866231eb4e61f86f4728ccd84fc2add7ad111ee25e4b64df47ec/Pint-0.20.1.tar.gz +Source0: https://files.pythonhosted.org/packages/2c/4b/f06c9975298765c64ac9ca6f36be072e65e1437a03a472f5fabc5327ef4e/Pint-0.22.tar.gz BuildArch: noarch Requires: python3-numpy @@ -24,11 +24,11 @@ It is licensed under BSD. %package -n python3-pint Summary: Physical quantities module -Provides: python-pint +Provides: python-pint = %{version}-%{release} BuildRequires: python3-devel BuildRequires: python3-pbr BuildRequires: python3-pip -BuildRequires: python3-setuptools +BuildRequires: python3-flit BuildRequires: python3-setuptools_scm BuildRequires: python3-wheel BuildRequires: python3-toml @@ -63,43 +63,26 @@ It is licensed under BSD. %autosetup -n Pint-%{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-pint -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python3-pint +%{_bindir}/pint-convert +%{python3_sitelib}/* -%files help -f doclist.lst +%files help %{_docdir}/* %changelog +* Thu Jun 01 2023 jiangxinyu - 0.22-1 +- Update package to version 0.22 + * Tue Dec 06 2022 liukuo - 0.20.1-1 - Upgrade version to 0.20.1