15
0

Accepting request 809553 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/809553
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiosmtpd?expand=0&rev=5
This commit is contained in:
Tomáš Chvátal
2020-05-28 07:34:03 +00:00
committed by Git OBS Bridge
parent 0a2fdd43b5
commit bab7a6a95c
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 27 09:36:02 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Thu Jan 2 07:32:50 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -33,6 +33,8 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-atpublic
Requires: user(nobody)
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module atpublic}
@@ -54,16 +56,23 @@ cp %{SOURCE1} .
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/aiosmtpd
%python_expand rm -r %{buildroot}%{$python_sitelib}/examples
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%post
%python_install_alternative aiosmtpd
%postun
%python_uninstall_alternative aiosmtpd
%files %{python_files}
%doc README.rst
%license LICENSE-2.0.txt
%python3_only %{_bindir}/aiosmtpd
%python_alternative %{_bindir}/aiosmtpd
%{python_sitelib}/*
%changelog