rebuilt with meson to install pkg-conf file [release 3.48.2-3mamba;Sat May 11 2024]

This commit is contained in:
Silvan Calarco 2024-05-12 10:35:02 +02:00
parent 0c107df6e7
commit 854fd209dc

View File

@ -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 <silvan.calarco@mambasoft.it> 3.48.2-3mamba
- rebuilt with meson to install pkg-conf file
* Tue May 07 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 3.48.2-2mamba
- pygobject-py3: add legacy provide for pygobject-devel