forked from pool/python-tap.py
Accepting request 807144 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/807144 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tap.py?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
369f1ef210
commit
1098038e89
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 19 08:03:11 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 11 12:59:42 UTC 2020 - pgajdos@suse.com
|
Wed Mar 11 12:59:42 UTC 2020 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@@ -31,6 +31,8 @@ BuildRequires: %{python_module setuptools}
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
Recommends: python-PyYAML
|
Recommends: python-PyYAML
|
||||||
Recommends: python-more-itertools
|
Recommends: python-more-itertools
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@@ -55,17 +57,27 @@ export LANG=en_US.UTF-8
|
|||||||
%install
|
%install
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/tap
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/tappy
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative tap
|
||||||
|
%python_install_alternative tappy
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative tap
|
||||||
|
%python_uninstall_alternative tappy
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc AUTHORS README.md
|
%doc AUTHORS README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python3_only %{_bindir}/tappy
|
%python_alternative %{_bindir}/tappy
|
||||||
%python3_only %{_bindir}/tap
|
%python_alternative %{_bindir}/tap
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user