forked from pool/python-pymilter
Accepting request 1155367 from home:jaimeMF:branches:devel:languages:python
- Actually run the correct tests - Fix the fdupes call - Add 0001-Remove-calls-to-the-deprecated-method-assertEquals.patch OBS-URL: https://build.opensuse.org/request/show/1155367 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymilter?expand=0&rev=15
This commit is contained in:
@@ -30,6 +30,8 @@ License: GPL-2.0-or-later
|
||||
URL: https://www.bmsi.com/python/milter.html
|
||||
Source0: https://github.com/sdgathman/pymilter/archive/pymilter-%{version}.tar.gz
|
||||
Source1: tmpfiles-python-pymilter.conf
|
||||
# PATCH-FIX-UPSTREAM: https://github.com/sdgathman/pymilter/pull/57
|
||||
Patch1: 0001-Remove-calls-to-the-deprecated-method-assertEquals.patch
|
||||
BuildRequires: %{python_module bsddb3}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -72,10 +74,12 @@ mkdir -p %{buildroot}%{_libexecdir}/milter
|
||||
mkdir -p %{buildroot}%{_tmpfilesdir}
|
||||
install -m 0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
||||
|
||||
%fdupes %{buildroot}%{python_sitearch}
|
||||
%python_expand %fdupes %{buildroot}/%{$python_sitearch}
|
||||
|
||||
%check
|
||||
%pyunittest_arch -v -k "not testPolicy"
|
||||
# remove tests that don't work
|
||||
rm test.py testpolicy.py
|
||||
%pyunittest_arch -v
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md ChangeLog NEWS TODO CREDITS sample.py template.py
|
||||
|
Reference in New Issue
Block a user