forked from pool/python-wptools
Accepting request 806797 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/806797 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wptools?expand=0&rev=24
This commit is contained in:
committed by
Git OBS Bridge
parent
ca254b95c2
commit
0e1607f9eb
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 18 07:25:38 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- %python3_only -> %python_alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 14 14:50:13 UTC 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-wptools
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -34,6 +34,8 @@ Requires: python-certifi >= 2017.7.27.1
|
||||
Requires: python-html2text >= 2016.9.19
|
||||
Requires: python-lxml >= 3.8.0
|
||||
Requires: python-pycurl >= 7.43.0
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -58,12 +60,19 @@ sed -E -i "1{/^#!\/usr\/bin.*python/d}" scripts/wptool.py
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/wptool
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%post
|
||||
%python_install_alternative wptool
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative wptool
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc HISTORY.rst README.rst
|
||||
%python3_only %{_bindir}/wptool
|
||||
%python_alternative %{_bindir}/wptool
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user