From fab5321fb9f10194987cb38186fca75640c203d472da3db721dff65ad6d13b60 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 9 Jan 2020 19:02:12 +0000 Subject: [PATCH] Accepting request 762536 from home:TheBlackCat:branches:devel:languages:python - Drop python2 subpackage due to dependencies dropping python2. OBS-URL: https://build.opensuse.org/request/show/762536 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requirements-detector?expand=0&rev=8 --- python-requirements-detector.changes | 5 +++++ python-requirements-detector.spec | 14 +++----------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/python-requirements-detector.changes b/python-requirements-detector.changes index 206e781..0ef16f9 100644 --- a/python-requirements-detector.changes +++ b/python-requirements-detector.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 9 18:56:36 UTC 2020 - Todd R + +- Drop python2 subpackage due to dependencies dropping python2. + ------------------------------------------------------------------- Tue May 21 20:07:52 UTC 2019 - Todd R diff --git a/python-requirements-detector.spec b/python-requirements-detector.spec index b2a5aa9..26de9c4 100644 --- a/python-requirements-detector.spec +++ b/python-requirements-detector.spec @@ -1,7 +1,7 @@ # # spec file for package python-requirements-detector # -# 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 @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 %define oldpython python Name: python-requirements-detector Version: 0.6 @@ -39,8 +40,6 @@ BuildArch: noarch %ifpython3 Conflicts: %{oldpython}-requirements-detector < 0.6 %endif -Requires(post): update-alternatives -Requires(postun): update-alternatives %python_subpackages @@ -60,22 +59,15 @@ depends on. %install %python_install -%python_clone -a %{buildroot}%{_bindir}/detect-requirements %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %python_expand PYTHONPATH=%{buildroot}%{$pthon_sitelib} nosetests-%{$python_bin_suffix} -%post -%python_install_alternative detect-requirements - -%postun -%python_uninstall_alternative detect-requirements - %files %{python_files} %doc README.md %license LICENSE %{python_sitelib}/* -%python_alternative %{_bindir}/detect-requirements +%python3_only %{_bindir}/detect-requirements %changelog