fix Mageia
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=209
This commit is contained in:
parent
924b4b753a
commit
2b31e73c7a
@ -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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user