From cec30606249c950c5dc0a711c71ec16b23a38a83 Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Fri, 2 Nov 2018 14:08:31 +0900 Subject: [PATCH] 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 --- packaging/python-cairo.spec | 20 +++++++++++++++----- setup.py | 2 +- 2 files changed, 16 insertions(+), 6 deletions(-) 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")) -- 2.7.4