forked from pool/python-aiosmtpd
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:
committed by
Git OBS Bridge
parent
0a2fdd43b5
commit
bab7a6a95c
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user