From 4c10e0a116fb757756a68f94eb3a0fa86c7566737aee6c3ca8cb0c91cd36e1e3 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 31 May 2024 22:34:32 +0000 Subject: [PATCH] - Clean up SPEC file. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tblib?expand=0&rev=17 --- python-tblib.changes | 5 +++++ python-tblib.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-tblib.changes b/python-tblib.changes index 32e38da..0b49517 100644 --- a/python-tblib.changes +++ b/python-tblib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 31 22:34:24 UTC 2024 - Matej Cepl + +- Clean up SPEC file. + ------------------------------------------------------------------- Fri May 17 09:22:14 UTC 2024 - Markéta Machová diff --git a/python-tblib.spec b/python-tblib.spec index 9ce2610..58b8a07 100644 --- a/python-tblib.spec +++ b/python-tblib.spec @@ -34,19 +34,20 @@ Group: Development/Languages/Python URL: https://github.com/ionelmc/python-tblib Source: https://files.pythonhosted.org/packages/source/t/tblib/tblib-%{version}.tar.gz # PATCH-FIX-UPSTREAM https://github.com/ionelmc/python-tblib/pull/77 vendore reraise() from six -Patch: vendore-reraise-from-six.patch +Patch0: vendore-reraise-from-six.patch # PATCH-FIX-UPSTREAM https://github.com/ionelmc/python-tblib/issues/74 More aggressive location stripping. Ref #74. -Patch: more-aggressive-location-stripping.patch +Patch0: more-aggressive-location-stripping.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildArch: noarch %if %{with test} BuildRequires: %{python_module Twisted} BuildRequires: %{python_module pytest} BuildRequires: %{python_module tblib == %{version}} %endif -BuildArch: noarch - %python_subpackages %description @@ -72,11 +73,11 @@ the pickle support. %autosetup -p1 -n tblib-%{version} %build -%python_build +%pyproject_wheel %install %if !%{with test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif