From f0a6eb7c3ee6c1c213e7e41269ed9296404de41d0399d90f3813e01067151203 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 27 May 2020 10:11:14 +0000 Subject: [PATCH] Accepting request 809243 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/809243 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-easydev?expand=0&rev=7 --- python-easydev.changes | 5 +++++ python-easydev.spec | 33 ++++++++++++++++++++++----------- 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/python-easydev.changes b/python-easydev.changes index 40a2895..707da39 100644 --- a/python-easydev.changes +++ b/python-easydev.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 26 06:34:04 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Fri Sep 13 08:20:09 UTC 2019 - Tomáš Chvátal diff --git a/python-easydev.spec b/python-easydev.spec index d44c778..6f02236 100644 --- a/python-easydev.spec +++ b/python-easydev.spec @@ -1,7 +1,7 @@ # # spec file for package python-easydev # -# 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 @@ -23,11 +23,19 @@ Release: 0 Summary: Common utilities to ease the development of Python packages License: BSD-3-Clause Group: Development/Languages/Python -Url: https://github.com/cokelaer/easydev +URL: https://github.com/cokelaer/easydev Source: https://files.pythonhosted.org/packages/source/e/easydev/easydev-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-colorama +Requires: python-colorlog +Requires: python-pexpect +Requires: python-setuptools +Requires(post): update-alternatives +Requires(postun): update-alternatives +Recommends: python-line_profiler +BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module colorama} BuildRequires: %{python_module colorlog} @@ -38,13 +46,6 @@ BuildRequires: %{python_module pexpect} BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module pytest} # /SECTION -Requires: python-colorama -Requires: python-colorlog -Requires: python-pexpect -Requires: python-setuptools -Recommends: python-line_profiler -BuildArch: noarch - %python_subpackages %description @@ -63,13 +64,23 @@ rm -r easydev/share/__pycache__ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/easydev_buildPackage +%python_clone -a %{buildroot}%{_bindir}/browse %python_expand %fdupes %{buildroot}%{$python_sitelib} +%post +%python_install_alternative easydev_buildPackage +%python_install_alternative browse + +%postun +%python_uninstall_alternative easydev_buildPackage +%python_uninstall_alternative browse + %files %{python_files} %doc README.rst %license COPYING -%python3_only %{_bindir}/browse -%python3_only %{_bindir}/easydev_buildPackage +%python_alternative %{_bindir}/browse +%python_alternative %{_bindir}/easydev_buildPackage %{python_sitelib}/* %changelog