diff --git a/numpoly-1.2.11.tar.gz b/numpoly-1.2.11.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..4bb432894c2864bc8b7bb0a0ab41abf1b0c8ad9c Binary files /dev/null and b/numpoly-1.2.11.tar.gz differ diff --git a/numpoly-1.2.8.tar.gz b/numpoly-1.2.8.tar.gz deleted file mode 100644 index cc3532b0b8df175e0a8daf69ce618fa2880c9121..0000000000000000000000000000000000000000 Binary files a/numpoly-1.2.8.tar.gz and /dev/null differ diff --git a/python-numpoly.spec b/python-numpoly.spec index 743d68ea04521bffce6517d0bc7a9ff15c5d3c3a..9ab4c8775f4de307b07317a0942726370c648d3d 100644 --- a/python-numpoly.spec +++ b/python-numpoly.spec @@ -1,12 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-numpoly -Version: 1.2.8 +Version: 1.2.11 Release: 1 Summary: Polynomials as a numpy datatype License: BSD-2-Clause URL: https://github.com/jonathf/numpoly -Source0: https://files.pythonhosted.org/packages/f8/34/c60130899a66711d46c725d885376839f5ef213db0a0a1f8aa31cc09ab4f/numpoly-1.2.8.tar.gz -Source1: setup.py +Source0: https://files.pythonhosted.org/packages/0a/39/85a0d30f63c29b83caa510ad343c13aa0e4e58c5debe44e07afac0587928/numpoly-1.2.11.tar.gz BuildArch: noarch @@ -18,7 +17,9 @@ arrays of polynomials based on numpy.ndarray objects. Summary: Polynomials as a numpy datatype Provides: python-numpoly = %{version}-%{release} BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-flit Requires: python3-numpy %description -n python3-numpoly Numpoly is a generic library for creating, manipulating and evaluating @@ -33,46 +34,27 @@ arrays of polynomials based on numpy.ndarray objects. %prep %autosetup -n numpoly-%{version} -cp %{SOURCE1} ./ %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-numpoly -f filelist.lst -%dir %{python3_sitelib}/* - -%files help -f doclist.lst + +%files -n python3-numpoly +%{python3_sitelib}/* + +%files help %{_docdir}/* %changelog +* Thu Oct 26 2023 jiangxinyu - 1.2.11-1 +- Update package to version 1.2.11 + * Wed Jun 21 2023 chendexi - 1.2.8-1 - Update package to version 1.2.8 diff --git a/setup.py b/setup.py deleted file mode 100644 index 33537a638ea8923b28d7569becda43e45ff37203..0000000000000000000000000000000000000000 --- a/setup.py +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env python - -from setuptools import setup - -if __name__ == "__main__": - setup( - name = "numpoly", - version = "1.2.5", -)