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
%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}
Cflags: -I${prefix}/include/pycairo
Libs:
""" % {
- "prefix": self.install_base,
+ "prefix": "/usr",
"version": PYCAIRO_VERSION,
"py_version": sys.version_info[0]}).encode("utf-8"))