From e1b9941462b82f208b814fc2f6e7f369bcda11a0 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 4 May 2020 11:32:22 +0200 Subject: [PATCH] Exclude __pycache__ files from flatpak build This caused the LibreOffice flatpak build to fail, so follow the common workaround of just excluding for now any __pycache__ files from flatpak builds, where they are apparently not generated. --- libvoikko.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libvoikko.spec b/libvoikko.spec index f5d1262..5322646 100644 --- a/libvoikko.spec +++ b/libvoikko.spec @@ -103,7 +103,9 @@ install -pm 0644 python/libvoikko.py $RPM_BUILD_ROOT%{python3_sitelib}/ %files -n python3-libvoikko %{python3_sitelib}/%{name}.py* +%if ! 0%{?flatpak} %{python3_sitelib}/__pycache__/* +%endif %changelog * Wed Jan 29 2020 Fedora Release Engineering - 4.1.1-6