fix build error with rpm upgrade, change macro to python_sitearch 43/186643/1 accepted/tizen/5.0/unified/20181102.025950 accepted/tizen/unified/20180903.151009 submit/tizen/20180830.013628 submit/tizen_5.0/20181101.000007
authorbiao716.wang <biao716.wang@samsung.com>
Mon, 9 Jul 2018 02:25:05 +0000 (10:25 +0800)
committerDonghun Kwak <dh0128.kwak@samsung.com>
Mon, 13 Aug 2018 05:22:44 +0000 (05:22 +0000)
Change-Id: Ifdf6950b351169ce7a11eb3cfd9ccbe193024ab2
(cherry picked from commit 4ad02cec20653362906250bd97a6020b5a773c41)

packaging/python-cairo.spec

index 9c2dd9f..cf829c0 100644 (file)
@@ -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