14
0

Accepting request 1284397 from devel:languages:python

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1284397
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pymilter?expand=0&rev=7
This commit is contained in:
2025-06-11 14:21:50 +00:00
committed by Git OBS Bridge
2 changed files with 15 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 10 09:04:00 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 5 18:22:42 UTC 2024 - Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net> Tue Mar 5 18:22:42 UTC 2024 - Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pymilter # spec file for package python-pymilter
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# Copyright (c) 2018 Neal Gompa <ngompa13@gmail.com>. # Copyright (c) 2018 Neal Gompa <ngompa13@gmail.com>.
# #
# All modifications and additions to the file contributed by third parties # 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 # we don't want to provide private python extension libs
%global __provides_exclude_from ^(%{python2_sitearch}/.*\\.so|%{python3_sitearch}/.*\\.so)$ %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... # 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 Name: python-pymilter
Version: 1.0.5 Version: 1.0.5
Release: 0 Release: 0
@@ -34,7 +32,9 @@ Source1: tmpfiles-python-pymilter.conf
Patch1: 0001-Remove-calls-to-the-deprecated-method-assertEquals.patch Patch1: 0001-Remove-calls-to-the-deprecated-method-assertEquals.patch
BuildRequires: %{python_module bsddb3} BuildRequires: %{python_module bsddb3}
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: %{pythons} BuildRequires: %{pythons}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@@ -64,10 +64,10 @@ This package contains the common files used for pymilter.
%autosetup -n pymilter-pymilter-%{version} -p1 %autosetup -n pymilter-pymilter-%{version} -p1
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
mkdir -p %{buildroot}%{_localstatedir}/log/milter mkdir -p %{buildroot}%{_localstatedir}/log/milter
mkdir -p %{buildroot}%{_libexecdir}/milter mkdir -p %{buildroot}%{_libexecdir}/milter
@@ -84,7 +84,11 @@ rm test.py testpolicy.py
%files %{python_files} %files %{python_files}
%doc README.md ChangeLog NEWS TODO CREDITS sample.py template.py %doc README.md ChangeLog NEWS TODO CREDITS sample.py template.py
%license COPYING %license COPYING
%{python_sitearch}/* %{python_sitearch}/Milter
%{python_sitearch}/milter.cpython*
%{python_sitearch}/mime.py
%{python_sitearch}/pymilter-%{version}*-info
%pycache_only %{python_sitearch}/__pycache__/mime*
%files -n pymilter-common %files -n pymilter-common
%license COPYING %license COPYING