From 854fd209dc892ffce00d579b3cf0d84405551a9d Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 12 May 2024 10:35:02 +0200 Subject: [PATCH] rebuilt with meson to install pkg-conf file [release 3.48.2-3mamba;Sat May 11 2024] --- pygobject.spec | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/pygobject.spec b/pygobject.spec index bb798d3..3e30148 100644 --- a/pygobject.spec +++ b/pygobject.spec @@ -2,7 +2,7 @@ Name: pygobject Version: 3.48.2 -Release: 2mamba +Release: 3mamba Summary: A convenient wrapper for the GObject+ library for use in Python programs Group: System/Libraries Vendor: openmamba @@ -18,7 +18,6 @@ BuildRequires: libcairo-devel BuildRequires: libffi-devel BuildRequires: libglib-devel BuildRequires: libpython311-devel -BuildRequires: python3.11dist(pycairo) ## AUTOBUILDREQ-END BuildRequires: python-meson-py3 BuildRequires: python3-devel >= 3.11.5-3mamba @@ -46,40 +45,32 @@ Obsoletes: pygobject-devel < 3.48.2 %setup -q %build -CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel +%meson + +%meson_build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%{__python} -m installer --destdir=%{buildroot} dist/*.whl - -#%if "%{?with_pyver}" != "3" -## Rename any conflicting file outside of python site packages tree -#for f in %{_bindir}/pdm; do -# mv %{buildroot}${f}{,-%{?pyappend}} -#done -#%endi - -%ifarch x86_64 aarch64 -[ -e %{buildroot}%{_prefix}/lib/pkgconfig ] && { - mv %{buildroot}%{_prefix}/lib/pkgconfig %{buildroot}%{_libdir} -} -%endif +%meson_install %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %{?pyappend} %defattr(-,root,root) -%dir %{python_sitearch}/pygobject-%{version}.dist-info -%{python_sitearch}/pygobject-%{version}.dist-info/* +%{_includedir}/pygobject-3.0/pygobject.h +%{python3_sitearch}/PyGObject-%{version}.egg-info %dir %{python_sitearch}/gi %{python_sitearch}/gi/* %dir %{python_sitearch}/pygtkcompat %{python_sitearch}/pygtkcompat/* -%{_includedir}/python*/pygobject/pygobject-3.0/pygobject.h +%{_libdir}/pkgconfig/pygobject-3.0.pc %doc COPYING %changelog +* Sat May 11 2024 Silvan Calarco 3.48.2-3mamba +- rebuilt with meson to install pkg-conf file + * Tue May 07 2024 Silvan Calarco 3.48.2-2mamba - pygobject-py3: add legacy provide for pygobject-devel