Bump to python-cairo 1.17.1 92/192292/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.013005 accepted/tizen/5.5/unified/mobile/hotfix/20201027.071946 accepted/tizen/5.5/unified/wearable/hotfix/20201027.104522 accepted/tizen/unified/20181107.082119 accepted/tizen/unified/20181107.082231 submit/tizen/20181106.062940 submit/tizen/20181107.002150 submit/tizen_5.5/20191031.000008 submit/tizen_5.5_mobile_hotfix/20201026.185108 submit/tizen_5.5_wearable_hotfix/20201026.184308 tizen_5.5.m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Fri, 2 Nov 2018 05:08:31 +0000 (14:08 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Fri, 2 Nov 2018 05:08:31 +0000 (14:08 +0900)
[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 <dh0128.kwak@samsung.com>
packaging/python-cairo.spec
setup.py

index cf829c0..dd2da80 100644 (file)
@@ -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}
index 395883a..e5302d7 100755 (executable)
--- 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"))