From 1f9a74affa4c6e1f8efe5356a52a9d93a8a3db82f27d99d0a5806db1f4447f04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 10 Jun 2025 09:06:16 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymilter?expand=0&rev=17 --- python-pymilter.changes | 5 +++++ python-pymilter.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-pymilter.changes b/python-pymilter.changes index 37ffe03..88d5321 100644 --- a/python-pymilter.changes +++ b/python-pymilter.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 10 09:04:00 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Mar 5 18:22:42 UTC 2024 - Jaime Marquínez Ferrándiz diff --git a/python-pymilter.spec b/python-pymilter.spec index 3709f1d..0e346c4 100644 --- a/python-pymilter.spec +++ b/python-pymilter.spec @@ -1,7 +1,7 @@ # # spec file for package python-pymilter # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2018 Neal Gompa . # # All modifications and additions to the file contributed by third parties @@ -20,8 +20,6 @@ # we don't want to provide private python extension libs %global __provides_exclude_from ^(%{python2_sitearch}/.*\\.so|%{python3_sitearch}/.*\\.so)$ # Python 2 module isn't building properly and we don't really need it right now anyway... -%global skip_python2 1 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pymilter Version: 1.0.5 Release: 0 @@ -34,7 +32,9 @@ Source1: tmpfiles-python-pymilter.conf Patch1: 0001-Remove-calls-to-the-deprecated-method-assertEquals.patch BuildRequires: %{python_module bsddb3} BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: %{pythons} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -64,10 +64,10 @@ This package contains the common files used for pymilter. %autosetup -n pymilter-pymilter-%{version} -p1 %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install mkdir -p %{buildroot}%{_localstatedir}/log/milter mkdir -p %{buildroot}%{_libexecdir}/milter @@ -84,7 +84,8 @@ rm test.py testpolicy.py %files %{python_files} %doc README.md ChangeLog NEWS TODO CREDITS sample.py template.py %license COPYING -%{python_sitearch}/* +%{python_sitearch}/Milter +%{python_sitearch}/pymilter-%{version}*-info %files -n pymilter-common %license COPYING