14
0

Accepting request 806794 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/806794
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-webassets?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal
2020-05-18 08:12:14 +00:00
committed by Git OBS Bridge
parent bc1d1b9b4d
commit 0be75d7d11
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 18 07:25:35 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Thu Feb 6 14:17:00 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@@ -36,6 +36,8 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@@ -55,16 +57,23 @@ sed -i -e 's:e.message:e.args[0]:g' tests/test_filters.py
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/webassets
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG="en_US.UTF8"
%pytest
%post
%python_install_alternative webassets
%postun
%python_uninstall_alternative webassets
%files %{python_files}
%license LICENSE
%doc AUTHORS CHANGES README.rst
%python3_only %{_bindir}/webassets
%python_alternative %{_bindir}/webassets
%{python_sitelib}/*
%changelog