Adrian Schröter 2018-09-19 09:24:14 +00:00 committed by Git OBS Bridge
parent 924b4b753a
commit 2b31e73c7a

View File

@ -35,7 +35,7 @@ BuildRequires: bzr
BuildRequires: git-core BuildRequires: git-core
BuildRequires: mercurial BuildRequires: mercurial
BuildRequires: subversion BuildRequires: subversion
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version} %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version} || 0%{?mageia}
%define py_compile(O) \ %define py_compile(O) \
find %1 -name '*.pyc' -exec rm -f {} \\; \ find %1 -name '*.pyc' -exec rm -f {} \\; \
python -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1 \ python -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1 \