forked from pool/python-topy
Accepting request 806914 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/806914 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-topy?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
6b2d50c19e
commit
ae959a1d28
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 18 09:10:33 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Mar 16 17:01:42 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
Sat Mar 16 17:01:42 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-topy
|
# spec file for package python-topy
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -30,6 +30,8 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-beautifulsoup4
|
Requires: python-beautifulsoup4
|
||||||
Requires: python-regex >= 2016.07.14
|
Requires: python-regex >= 2016.07.14
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module beautifulsoup4}
|
BuildRequires: %{python_module beautifulsoup4}
|
||||||
@@ -50,16 +52,23 @@ sed -i '1 { /^#!/ d }' topy/topy.py
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/topy
|
||||||
%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
|
||||||
%python_exec setup.py test
|
%python_exec setup.py test
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative topy
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative topy
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%python3_only %{_bindir}/topy
|
%python_alternative %{_bindir}/topy
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user