From: DongHun Kwak Date: Fri, 2 Nov 2018 05:08:31 +0000 (+0900) Subject: Bump to python-cairo 1.17.1 X-Git-Tag: accepted/tizen/5.5/unified/20191031.013005^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F92%2F192292%2F1;p=platform%2Fupstream%2Fpython-cairo.git Bump to python-cairo 1.17.1 [Model] All [BinType] AP [Customer] OPEN [Issue#] N/A [Request] N/A [Occurrence Version] N/A [Problem] version upgrade [Cause & Measure] [Checking Method] [Team] Open Source Management and Setting Part [Developer] dh0128.kwak [Solution company] Samsung [Change Type] N/A Change-Id: I4f151e5437f64e2228fff783c1939dbd33ec2182 Signed-off-by: DongHun Kwak --- diff --git a/packaging/python-cairo.spec b/packaging/python-cairo.spec index cf829c0..dd2da80 100644 --- a/packaging/python-cairo.spec +++ b/packaging/python-cairo.spec @@ -1,5 +1,5 @@ Name: python-cairo -Version: 1.10.0 +Version: 1.17.1 Release: 0 Summary: Python Bindings for Cairo License: LGPL-2.1+ or MPL-1.1 @@ -31,12 +31,22 @@ cp %{SOURCE1001} . %build export CFLAGS='%{optflags}' -./waf configure --prefix=%{_prefix} --libdir=%{_libdir} -./waf build +%{__python} setup.py build %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 +mkdir -p %{buildroot}/%{python_sitearch}/cairo +%{__python} setup.py install --skip-build \ + --install-base=%{buildroot} \ + --install-lib=%{buildroot}%{python_sitearch} \ + --install-purelib=%{buildroot}%{_libdir} \ + --install-scripts=%{buildroot}%{_bindir} \ + --install-headers=%{buildroot}%{_includedir} \ + --install-data=%{buildroot}%{_usr} +rm -f %{buildroot}/%{python_sitearch}/*.egg-info +rm -rf %{buildroot}/%{python_sitearch}/cairo/include +rm -f %{buildroot}/%{python_sitearch}/cairo/*.pyi +rm -f %{buildroot}/%{python_sitearch}/cairo/*.typed + %py_compile %{buildroot}/%{python_sitearch} %py_compile -O %{buildroot}/%{python_sitearch} %fdupes %{buildroot}/%{python_sitearch} diff --git a/setup.py b/setup.py index 395883a..e5302d7 100755 --- a/setup.py +++ b/setup.py @@ -335,7 +335,7 @@ Requires: cairo Cflags: -I${prefix}/include/pycairo Libs: """ % { - "prefix": self.install_base, + "prefix": "/usr", "version": PYCAIRO_VERSION, "py_version": sys.version_info[0]}).encode("utf-8"))