From: biao716.wang Date: Mon, 9 Jul 2018 02:25:05 +0000 (+0800) Subject: fix build error with rpm upgrade, change macro to python_sitearch X-Git-Tag: accepted/tizen/5.0/unified/20181102.025950^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4956da904a8830cd3f43341e05c74a9a93ea35f;p=platform%2Fupstream%2Fpython-cairo.git fix build error with rpm upgrade, change macro to python_sitearch Change-Id: Ifdf6950b351169ce7a11eb3cfd9ccbe193024ab2 (cherry picked from commit 4ad02cec20653362906250bd97a6020b5a773c41) --- diff --git a/packaging/python-cairo.spec b/packaging/python-cairo.spec index 9c2dd9f..cf829c0 100644 --- a/packaging/python-cairo.spec +++ b/packaging/python-cairo.spec @@ -37,9 +37,9 @@ export CFLAGS='%{optflags}' %install ./waf install --destdir=%{buildroot} # waf is broken and generated byte-code that references the build root, see http://code.google.com/p/waf/issues/detail?id=986 -%py_compile %{buildroot}/%{py_sitedir} -%py_compile -O %{buildroot}/%{py_sitedir} -%fdupes %{buildroot}/%{py_sitedir} +%py_compile %{buildroot}/%{python_sitearch} +%py_compile -O %{buildroot}/%{python_sitearch} +%fdupes %{buildroot}/%{python_sitearch} %files %manifest %{name}.manifest