14
0

Accepting request 806811 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/806811
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wptools?expand=0&rev=12
This commit is contained in:
2020-05-19 12:47:02 +00:00
committed by Git OBS Bridge
2 changed files with 16 additions and 2 deletions

View File

@@ -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> Mon Oct 14 14:50:13 UTC 2019 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-wptools # 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 # 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
@@ -34,6 +34,8 @@ Requires: python-certifi >= 2017.7.27.1
Requires: python-html2text >= 2016.9.19 Requires: python-html2text >= 2016.9.19
Requires: python-lxml >= 3.8.0 Requires: python-lxml >= 3.8.0
Requires: python-pycurl >= 7.43.0 Requires: python-pycurl >= 7.43.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -58,12 +60,19 @@ sed -E -i "1{/^#!\/usr\/bin.*python/d}" scripts/wptool.py
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/wptool
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative wptool
%postun
%python_uninstall_alternative wptool
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc HISTORY.rst README.rst %doc HISTORY.rst README.rst
%python3_only %{_bindir}/wptool %python_alternative %{_bindir}/wptool
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog