From f8d93fd219fb40ef76f28770ae2e19627342dc053d15b703bd002513ea2c0695 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 27 Oct 2022 22:51:18 +0000 Subject: [PATCH] - Clean up SPEC file. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pympler?expand=0&rev=18 --- python-Pympler.changes | 5 +++++ python-Pympler.spec | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/python-Pympler.changes b/python-Pympler.changes index b69a8a4..d1fc9bc 100644 --- a/python-Pympler.changes +++ b/python-Pympler.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 27 22:51:11 UTC 2022 - Matej Cepl + +- Clean up SPEC file. + ------------------------------------------------------------------- Thu Oct 27 12:15:13 UTC 2022 - Matej Cepl diff --git a/python-Pympler.spec b/python-Pympler.spec index 09fd293..c4e0570 100644 --- a/python-Pympler.spec +++ b/python-Pympler.spec @@ -35,6 +35,7 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch +Requires: python-tk %python_subpackages %description @@ -52,6 +53,9 @@ can easily be identified. # Remove bundled bottle (gh#pympler/pympler#148) rm pympler/util/bottle.py +# Remove unnecessary shebang +sed -i '1{\@^#!%{_bindir}/env python@d}' pympler/asizeof.py + %build %python_build @@ -69,6 +73,7 @@ skiptests+=" or test_findgarbage or test_prune or test_get_tree" %files %{python_files} %license LICENSE %doc README.md -%{python_sitelib}/* +%{python_sitelib}/pympler +%{python_sitelib}/Pympler-%{version}*-info %changelog