2,3c2,3
< Version:       4.1.0
< Release:       4mamba
---
> Version:       5.0.0
> Release:       1mamba
10,13c10
< Source:        http://virt-manager.org/download/sources/virt-manager/virt-manager-%{version}.tar.gz
< Patch0:        virt-manager-1.0.1-fix-changing-graphics-type.patch
< Patch1:        virt-manager-1.3.1-disable-packagekit.patch
< Patch2:        virt-manager-1.4.0-fix-italian-translation.patch
---
> Source:        https://releases.pagure.org/virt-manager/virt-manager-%{version}.tar.xz
14a12
> BuildArch:     noarch
55,57d52
< #%patch0 -p1
< #%patch1 -p1
< #%patch2 -p1
60c55,57
< CFLAGS="%{optflags}" %{__python3} setup.py build
---
> %meson
> 
> %meson_build
64,75c61
< %{__python3} setup.py \
<     --no-update-icon-cache --no-compile-schemas install \
<    --root="%{buildroot}" \
<    --install-headers=%{_includedir}/python%{python3_version} \
<    --install-lib=%{python3_sitearch}
< 
< # Replace '#!/usr/bin/env python3' with '#!/usr/bin/python3'
< # The format is ideal for upstream, but not a distro. See:
< # https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython
< for f in $(find %{buildroot} -type f -executable -print); do
<     sed -i "1 s|^#\!/usr/bin/env python3|#\!%{__python3}|" $f || :
< done
---
> %meson_install
79,80d64
< #rm -fr %{buildroot}/var/scrollkeeper
< 
84,97d67
< %post
< if [ $1 -ge 1 ]; then
<    glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
<    update-desktop-database -q %{_datadir}/applications 
< fi
< exit 0
< 
< %postun
< if [ $1 -eq 0 ]; then
<    glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
<    update-desktop-database -q %{_datadir}/applications 
< fi 
< exit 0
< 
101d70
< #%{_bindir}/virt-convert
114,115d82
< #%dir %{_datadir}/virt-manager/virtconv
< #%{_datadir}/virt-manager/virtconv/*.py
123d89
< #%{_mandir}/man1/virt-convert.1*
128d93
< # ChangeLog NEWS README TODO
130a96,98
> * Sat Dec 28 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.0-1mamba
> - update to 5.0.0
> 
