From 8436ed2c3a8535275ef7a7f5bcf24d208c2c4ae9f09d5d611dd4cabe13087c27 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 16 Jun 2025 06:22:31 +0000 Subject: [PATCH] - Switch to pyroject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-scrypt?expand=0&rev=24 --- python-scrypt.changes | 5 +++++ python-scrypt.spec | 15 ++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/python-scrypt.changes b/python-scrypt.changes index 39b6a73..df25046 100644 --- a/python-scrypt.changes +++ b/python-scrypt.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 16 06:12:21 UTC 2025 - Steve Kowalik + +- Switch to pyroject macros. + ------------------------------------------------------------------- Tue Oct 29 22:18:21 UTC 2024 - Dirk Müller diff --git a/python-scrypt.spec b/python-scrypt.spec index b0b446d..d908dae 100644 --- a/python-scrypt.spec +++ b/python-scrypt.spec @@ -1,7 +1,7 @@ # # spec file for package python-scrypt # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,7 +25,9 @@ License: BSD-2-Clause URL: https://github.com/holgern/py-scrypt Source0: https://files.pythonhosted.org/packages/source/s/scrypt/scrypt-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: gcc @@ -43,10 +45,10 @@ dos2unix -R README.rst scrypt/*.py sed -i '1{/^#!/ d}' scrypt/*.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check @@ -55,9 +57,8 @@ sed -i '1{/^#!/ d}' scrypt/*.py %files %{python_files} %doc README.rst %license LICENSE -%pycache_only %{python_sitearch}/scrypt/__pycache__ -%{python_sitearch}/_scrypt*.so -%{python_sitearch}/scrypt/ -%{python_sitearch}/scrypt-%{version}-py%{python_version}.egg-info +%{python_sitearch}/_scrypt.cpython-*-linux-gnu.so +%{python_sitearch}/scrypt +%{python_sitearch}/scrypt-%{version}.dist-info %changelog