From 28277420d889539bc7d76a4cb20a964e3b6eacbd3684f87bcfb20907efb7db6b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 2 Dec 2020 22:12:06 +0000 Subject: [PATCH] Accepting request 852726 from home:bnavigator:branches:devel:languages:python - compile cache for all python3 flavors gh#openSUSE/python-rpm-macros#66 OBS-URL: https://build.opensuse.org/request/show/852726 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jaraco.functools?expand=0&rev=15 --- python-jaraco.functools.changes | 6 ++++++ python-jaraco.functools.spec | 3 +++ 2 files changed, 9 insertions(+) diff --git a/python-jaraco.functools.changes b/python-jaraco.functools.changes index 906e1c3..907ea7a 100644 --- a/python-jaraco.functools.changes +++ b/python-jaraco.functools.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Dec 2 21:54:54 UTC 2020 - Benjamin Greiner + +- compile cache for all python3 flavors + gh#openSUSE/python-rpm-macros#66 + ------------------------------------------------------------------- Thu Sep 17 11:33:01 UTC 2020 - Dirk Mueller diff --git a/python-jaraco.functools.spec b/python-jaraco.functools.spec index ed33d3a..9cbbf95 100644 --- a/python-jaraco.functools.spec +++ b/python-jaraco.functools.spec @@ -57,8 +57,11 @@ rm -rf jaraco.functools.egg-info %python_expand rm %{buildroot}%{$python_sitelib}/jaraco/__init__.py +%{?python_compileall} +%{!?python_compileall: # if we haven no python_compileall we are for sure still without multiple python3 flavors. %py3_compile %{buildroot}%{python3_sitelib}/jaraco/ %py3_compile -O %{buildroot}%{python3_sitelib}/jaraco/ +} %python_expand %fdupes %{buildroot}%{$python_sitelib}