diff --git a/python-xmod.spec b/python-xmod.spec index 7a289fcb3a1b7fa7ef77bfad9aa9942165eaf80d..10d04797f54b992973b75dd4afa46d46a704f572 100644 --- a/python-xmod.spec +++ b/python-xmod.spec @@ -1,14 +1,15 @@ %global _empty_manifest_terminate_build 0 Name: python-xmod -Version: 1.4.0 +Version: 1.8.1 Release: 1 Summary: Create and recursively fill a temporary directory License: MIT URL: https://github.com/rec/xmod -Source0: https://files.pythonhosted.org/packages/96/ef/ddfc9926e0e5a6e2b8a0bb08ac0e9f976ce53712f0d59fa673e7031dd00f/xmod-1.4.0.tar.gz +Source0: https://files.pythonhosted.org/packages/source/x/xmod/xmod-%{version}.tar.gz BuildArch: noarch -Patch0: remove-requires-dek.patch +BuildRequires: python3-pip python3-hatchling python3-hatch-vcs python3-wheel +BuildRequires: python3-poetry-core %description ``xmod`` is a tiny library that extends a module to do things that normally @@ -31,46 +32,30 @@ Provides: python3-xmod-doc only a class could do - handy for modules that "just do one thing". %prep -%autosetup -n xmod-1.4.0 -p1 +%autosetup -n xmod-%{version} -p1 %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-xmod -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python3-xmod +%{python3_sitelib}/xmod* -%files help -f doclist.lst + +%files help %{_docdir}/* %changelog +* Tue Mar 05 2024 xu_ping <707078654@qq.com> - 1.8.1-1 +- Update to 1.8.1 + * Tue Apr 25 2023 xu_ping <707078654@qq.com> - 1.4.0-1 - Update to 1.4.0 diff --git a/remove-requires-dek.patch b/remove-requires-dek.patch deleted file mode 100644 index 93902b19b5c66e5b71b3c2eed06a94d8de48148a..0000000000000000000000000000000000000000 --- a/remove-requires-dek.patch +++ /dev/null @@ -1,45 +0,0 @@ -diff --git a/PKG-INFO b/PKG-INFO -index 41701ca..7b1beef 100644 ---- a/PKG-INFO -+++ b/PKG-INFO -@@ -13,7 +13,6 @@ Classifier: Programming Language :: Python :: 3.8 - Classifier: Programming Language :: Python :: 3.9 - Classifier: Programming Language :: Python :: 3.10 - Classifier: Programming Language :: Python :: 3.11 --Requires-Dist: dek (>=1.0.2,<2.0.0) - Description-Content-Type: text/markdown - - Callable modules! Indexable modules!? -diff --git a/pyproject.toml b/pyproject.toml -index 48bc54b..6c6fccd 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -16,7 +16,6 @@ readme = "README.md" - - [tool.poetry.dependencies] - python = "^3.7" --dek = "^1.0.2" - - [tool.poetry.group.dev.dependencies] - coverage = "^7.1.0" -diff --git a/setup.py b/setup.py -index 697456f..940c4be 100644 ---- a/setup.py -+++ b/setup.py -@@ -3,8 +3,6 @@ from setuptools import setup - - modules = \ - ['xmod'] --install_requires = \ --['dek>=1.0.2,<2.0.0'] - - setup_kwargs = { - 'name': 'xmod', -@@ -17,7 +15,6 @@ setup_kwargs = { - 'maintainer_email': 'None', - 'url': 'None', - 'py_modules': modules, -- 'install_requires': install_requires, - 'python_requires': '>=3.7,<4.0', - } - diff --git a/xmod-1.4.0.tar.gz b/xmod-1.4.0.tar.gz deleted file mode 100644 index 2ecee3bd5ea338b9e194d406be060e5745413bc6..0000000000000000000000000000000000000000 Binary files a/xmod-1.4.0.tar.gz and /dev/null differ diff --git a/xmod-1.8.1.tar.gz b/xmod-1.8.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..d130d0d4917c5d601f2760d64f0cab9316848ded Binary files /dev/null and b/xmod-1.8.1.tar.gz differ