forked from pool/python-pymilter
Accepting request 697819 from home:pgajdos
- version update to 1.0.4 - cleanup unused files, additional platform support - Minor doc updates - patch step for python3 no longer required in build - turn the test suite on - deleted patches - pymilter-dns_dsn.patch (upstreamed) OBS-URL: https://build.opensuse.org/request/show/697819 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymilter?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
b57e220417
commit
3453651f12
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pymilter
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 Neal Gompa <ngompa13@gmail.com>.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -13,7 +13,7 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
@@ -28,14 +28,13 @@ Summary: Python interface to the sendmail milter API
|
||||
License: GPL-2.0-or-later
|
||||
Group: Development/Languages/Python
|
||||
Name: python-pymilter
|
||||
Version: 1.0.2
|
||||
Version: 1.0.4
|
||||
Release: 0
|
||||
URL: http://www.bmsi.com/python/milter.html
|
||||
Source0: https://github.com/sdgathman/pymilter/archive/pymilter-%{version}.tar.gz
|
||||
Source1: tmpfiles-python-pymilter.conf
|
||||
# Backported patch for Python 3
|
||||
Patch0: pymilter-dns_dsn.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: sendmail-devel >= 8.13
|
||||
@@ -67,9 +66,6 @@ This package contains the common files used for pymilter.
|
||||
%prep
|
||||
%autosetup -n pymilter-pymilter-%{version} -p1
|
||||
|
||||
# Patch from within the source tree (*sigh*)...
|
||||
patch -p1 -b -z .py3 <milter.patch
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
@@ -83,6 +79,11 @@ install -m 0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
||||
|
||||
%fdupes %{buildroot}%{python_sitearch}/*
|
||||
|
||||
%check
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
|
||||
$python -m unittest discover
|
||||
}
|
||||
|
||||
%files %{python_files}
|
||||
%doc README ChangeLog NEWS TODO CREDITS sample.py milter-template.py
|
||||
%license COPYING
|
||||
|
Reference in New Issue
Block a user