Pull in mingw sub-packages & remove obsolete ldconfig scriptlets
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
f9b6f1b084
commit
322e287926
@ -1,8 +1,13 @@
|
||||
# -*- rpm-spec -*-
|
||||
|
||||
%global with_mingw 0
|
||||
%if 0%{?fedora}
|
||||
%global with_mingw 0%{!?_without_mingw:1}
|
||||
%endif
|
||||
|
||||
Name: libvirt-glib
|
||||
Version: 4.0.0
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: libvirt glib integration for events
|
||||
License: LGPLv2+
|
||||
URL: https://libvirt.org/
|
||||
@ -18,6 +23,16 @@ BuildRequires: vala
|
||||
BuildRequires: gettext
|
||||
BuildRequires: gtk-doc
|
||||
|
||||
%if %{with_mingw}
|
||||
BuildRequires: mingw32-filesystem
|
||||
BuildRequires: mingw32-glib2
|
||||
BuildRequires: mingw32-libvirt
|
||||
|
||||
BuildRequires: mingw64-filesystem
|
||||
BuildRequires: mingw64-glib2
|
||||
BuildRequires: mingw64-libvirt
|
||||
%endif
|
||||
|
||||
%package devel
|
||||
Summary: libvirt glib integration for events development files
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
@ -63,6 +78,59 @@ objects
|
||||
This package provides development header files and libraries for
|
||||
managing virtualization host objects
|
||||
|
||||
%if %{with_mingw}
|
||||
%package -n mingw32-libvirt-glib
|
||||
Summary: MingwGW Windows libvirt-gconfig virtualization library
|
||||
BuildArch: noarch
|
||||
Requires: pkgconfig
|
||||
|
||||
%package -n mingw32-libvirt-gconfig
|
||||
Summary: MingwGW Windows libvirt-gconfig virtualization library
|
||||
BuildArch: noarch
|
||||
Requires: pkgconfig
|
||||
|
||||
%package -n mingw32-libvirt-gobject
|
||||
Summary: MingwGW Windows libvirt-gobject virtualization library
|
||||
BuildArch: noarch
|
||||
Requires: pkgconfig
|
||||
|
||||
%package -n mingw64-libvirt-glib
|
||||
Summary: MingwGW Windows libvirt-gconfig virtualization library
|
||||
BuildArch: noarch
|
||||
Requires: pkgconfig
|
||||
|
||||
%package -n mingw64-libvirt-gconfig
|
||||
Summary: MingwGW Windows libvirt-gconfig virtualization library
|
||||
BuildArch: noarch
|
||||
Requires: pkgconfig
|
||||
|
||||
%package -n mingw64-libvirt-gobject
|
||||
Summary: MingwGW Windows libvirt-gobject virtualization library
|
||||
BuildArch: noarch
|
||||
Requires: pkgconfig
|
||||
|
||||
%description -n mingw32-libvirt-glib
|
||||
MinGW Windows libvirt-glib virtualization library.
|
||||
|
||||
%description -n mingw32-libvirt-gconfig
|
||||
MinGW Windows libvirt-gconfig virtualization library.
|
||||
|
||||
%description -n mingw32-libvirt-gobject
|
||||
MinGW Windows libvirt-gobject virtualization library.
|
||||
|
||||
|
||||
%description -n mingw64-libvirt-glib
|
||||
MinGW Windows libvirt-glib virtualization library.
|
||||
|
||||
%description -n mingw64-libvirt-gconfig
|
||||
MinGW Windows libvirt-gconfig virtualization library.
|
||||
|
||||
%description -n mingw64-libvirt-gobject
|
||||
MinGW Windows libvirt-gobject virtualization library.
|
||||
|
||||
%{?mingw_debug_package}
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1
|
||||
@ -71,20 +139,27 @@ managing virtualization host objects
|
||||
%meson -Drpath=disabled
|
||||
%meson_build
|
||||
|
||||
%if %{with_mingw}
|
||||
%mingw_meson -Drpath=disabled -Ddocs=disabled -Dintrospection=disabled -Dvapi=disabled
|
||||
%mingw_ninja
|
||||
%endif
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
%if %{with_mingw}
|
||||
%mingw_ninja_install
|
||||
|
||||
%mingw_debug_install_post
|
||||
|
||||
%mingw_find_lang libvirt-glib
|
||||
%endif
|
||||
|
||||
%check
|
||||
%meson_test
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%ldconfig_scriptlets -n libvirt-gconfig
|
||||
|
||||
%ldconfig_scriptlets -n libvirt-gobject
|
||||
|
||||
%files -f %{name}.lang
|
||||
%doc README COPYING AUTHORS NEWS
|
||||
%{_libdir}/libvirt-glib-1.0.so.*
|
||||
@ -137,7 +212,92 @@ managing virtualization host objects
|
||||
%{_datadir}/vala/vapi/libvirt-gobject-1.0.deps
|
||||
%{_datadir}/vala/vapi/libvirt-gobject-1.0.vapi
|
||||
|
||||
%if %{with_mingw}
|
||||
%files -n mingw32-libvirt-glib -f mingw32-libvirt-glib.lang
|
||||
%doc README COPYING AUTHORS NEWS
|
||||
%{mingw32_bindir}/libvirt-glib-1.0-0.dll
|
||||
|
||||
%{mingw32_libdir}/libvirt-glib-1.0.dll.a
|
||||
|
||||
%{mingw32_libdir}/pkgconfig/libvirt-glib-1.0.pc
|
||||
|
||||
%dir %{mingw32_includedir}/libvirt-glib-1.0
|
||||
%dir %{mingw32_includedir}/libvirt-glib-1.0/libvirt-glib
|
||||
%{mingw32_includedir}/libvirt-glib-1.0/libvirt-glib/libvirt-glib.h
|
||||
%{mingw32_includedir}/libvirt-glib-1.0/libvirt-glib/libvirt-glib-*.h
|
||||
|
||||
%files -n mingw64-libvirt-glib -f mingw64-libvirt-glib.lang
|
||||
%doc README COPYING AUTHORS NEWS
|
||||
%{mingw64_bindir}/libvirt-glib-1.0-0.dll
|
||||
|
||||
%{mingw64_libdir}/libvirt-glib-1.0.dll.a
|
||||
|
||||
%{mingw64_libdir}/pkgconfig/libvirt-glib-1.0.pc
|
||||
|
||||
%dir %{mingw64_includedir}/libvirt-glib-1.0
|
||||
%dir %{mingw64_includedir}/libvirt-glib-1.0/libvirt-glib
|
||||
%{mingw64_includedir}/libvirt-glib-1.0/libvirt-glib/libvirt-glib.h
|
||||
%{mingw64_includedir}/libvirt-glib-1.0/libvirt-glib/libvirt-glib-*.h
|
||||
|
||||
|
||||
|
||||
%files -n mingw32-libvirt-gconfig
|
||||
%{mingw32_bindir}/libvirt-gconfig-1.0-0.dll
|
||||
|
||||
%{mingw32_libdir}/libvirt-gconfig-1.0.dll.a
|
||||
|
||||
%{mingw32_libdir}/pkgconfig/libvirt-gconfig-1.0.pc
|
||||
|
||||
%dir %{mingw32_includedir}/libvirt-gconfig-1.0
|
||||
%dir %{mingw32_includedir}/libvirt-gconfig-1.0/libvirt-gconfig
|
||||
%{mingw32_includedir}/libvirt-gconfig-1.0/libvirt-gconfig/libvirt-gconfig.h
|
||||
%{mingw32_includedir}/libvirt-gconfig-1.0/libvirt-gconfig/libvirt-gconfig-*.h
|
||||
|
||||
%files -n mingw64-libvirt-gconfig
|
||||
%{mingw64_bindir}/libvirt-gconfig-1.0-0.dll
|
||||
|
||||
%{mingw64_libdir}/libvirt-gconfig-1.0.dll.a
|
||||
|
||||
%{mingw64_libdir}/pkgconfig/libvirt-gconfig-1.0.pc
|
||||
|
||||
%dir %{mingw64_includedir}/libvirt-gconfig-1.0
|
||||
%dir %{mingw64_includedir}/libvirt-gconfig-1.0/libvirt-gconfig
|
||||
%{mingw64_includedir}/libvirt-gconfig-1.0/libvirt-gconfig/libvirt-gconfig.h
|
||||
%{mingw64_includedir}/libvirt-gconfig-1.0/libvirt-gconfig/libvirt-gconfig-*.h
|
||||
|
||||
|
||||
|
||||
%files -n mingw32-libvirt-gobject
|
||||
%{mingw32_bindir}/libvirt-gobject-1.0-0.dll
|
||||
|
||||
%{mingw32_libdir}/libvirt-gobject-1.0.dll.a
|
||||
|
||||
%{mingw32_libdir}/pkgconfig/libvirt-gobject-1.0.pc
|
||||
|
||||
%dir %{mingw32_includedir}/libvirt-gobject-1.0
|
||||
%dir %{mingw32_includedir}/libvirt-gobject-1.0/libvirt-gobject
|
||||
%{mingw32_includedir}/libvirt-gobject-1.0/libvirt-gobject/libvirt-gobject.h
|
||||
%{mingw32_includedir}/libvirt-gobject-1.0/libvirt-gobject/libvirt-gobject-*.h
|
||||
|
||||
%files -n mingw64-libvirt-gobject
|
||||
%{mingw64_bindir}/libvirt-gobject-1.0-0.dll
|
||||
|
||||
%{mingw64_libdir}/libvirt-gobject-1.0.dll.a
|
||||
|
||||
%{mingw64_libdir}/pkgconfig/libvirt-gobject-1.0.pc
|
||||
|
||||
%dir %{mingw64_includedir}/libvirt-gobject-1.0
|
||||
%dir %{mingw64_includedir}/libvirt-gobject-1.0/libvirt-gobject
|
||||
%{mingw64_includedir}/libvirt-gobject-1.0/libvirt-gobject/libvirt-gobject.h
|
||||
%{mingw64_includedir}/libvirt-gobject-1.0/libvirt-gobject/libvirt-gobject-*.h
|
||||
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Aug 8 2022 Daniel P. Berrangé <berrange@redhat.com> - 4.0.0-6
|
||||
- Pull in mingw sub-packages
|
||||
- Remove obsolete ldconfig scripts
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user