From 0ff46e20383e32b160bd597e690964583241df93 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 11 Oct 2024 09:40:17 +0200 Subject: [PATCH] rebuilt with meson to provide devel package [release 1.27.0-2mamba;Fri Oct 11 2024] --- pycairo.spec | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/pycairo.spec b/pycairo.spec index 7a40b6f..6984f9c 100644 --- a/pycairo.spec +++ b/pycairo.spec @@ -1,6 +1,6 @@ Name: pycairo -Version: 1.26.1 -Release: 1mamba +Version: 1.27.0 +Release: 2mamba Summary: Python bindings for cairo Group: System/Libraries/Python Vendor: openmamba @@ -22,10 +22,11 @@ Python bindings for cairo. %package devel Summary: Static libraries and headers for %{name} Group: Development/Libraries +Requires: pycairo-py3 = %{?epoch:%epoch:}%{version}-%{release} %description devel Python 3 bindings for cairo. -This package contains static libraries and header files need for development. +This package contains static libraries and header files needed for development. %if "%{?with_pyver}" %pyver_package @@ -35,40 +36,40 @@ This package contains static libraries and header files need for development. %setup -q -n pycairo-%{version} %build -CFLAGS="%{optflags}" %{__python} setup.py build +%meson \ + -Dpython=%{__python} + +%meson_build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%{__python} setup.py install \ - -O1 --skip-build \ - --root="%{buildroot}" \ - --install-headers=%{python_inc} \ - --install-lib=%{python_sitearch} \ - --record=%{name}.filelist - -sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist - -%ifarch x86_64 aarch64 -[ -e %{buildroot}%{_prefix}/lib/pkgconfig ] && mv %{buildroot}%{_prefix}/lib/pkgconfig %{buildroot}%{_libdir}/pkgconfig -%endif +%meson_install %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%files %{?pyappend} -f %{name}.filelist +%files %{?pyappend} %defattr(-,root,root) -%dir %{python_sitearch}/pycairo-%{version}-py*.egg-info -%{python_sitearch}/pycairo-%{version}-py*.egg-info/* -%{python_sitearch}/cairo/include/py*cairo.h -%doc COPYING +%dir %{python_sitearch}/pycairo-%{version}.dist-info +%{python_sitearch}/pycairo-%{version}.dist-info/* +%dir %{python_sitearch}/cairo +%{python_sitearch}/cairo/* +%doc COPYING* %files devel %defattr(-,root,root) -%{_includedir}/* -%{_libdir}/pkgconfig/*.pc +%dir %{_includedir}/pycairo +%{_includedir}/pycairo/* +%{_libdir}/pkgconfig/py3cairo.pc %doc NEWS %changelog +* Fri Oct 11 2024 Silvan Calarco 1.27.0-2mamba +- rebuilt with meson to provide devel package + +* Fri Oct 11 2024 Silvan Calarco 1.27.0-1mamba +- update to 1.27.0 + * Fri Jun 21 2024 Automatic Build System 1.26.1-1mamba - automatic version update by autodist