forked from pool/python-pymilter
- Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymilter?expand=0&rev=17
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
@@ -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,8 @@ 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}/pymilter-%{version}*-info
|
||||||
|
|
||||||
%files -n pymilter-common
|
%files -n pymilter-common
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
Reference in New Issue
Block a user