Upgrade to 4.0.0

Use meson rebuild
This commit is contained in:
weijin-deng 2021-06-30 10:57:21 +08:00
parent 6e44b6800c
commit beaca98c2a
4 changed files with 32 additions and 15 deletions

Binary file not shown.

View File

@ -0,0 +1,12 @@
diff -rup libvirt-glib-4.0.0.orig/meson.build libvirt-glib-4.0.0.new/meson.build
--- libvirt-glib-4.0.0.orig/meson.build 2021-02-15 12:23:04.609036200 +0000
+++ libvirt-glib-4.0.0.new/meson.build 2021-02-15 14:50:24.838971022 +0000
@@ -175,8 +175,6 @@ cc_flags += [
'-Wbuiltin-declaration-mismatch',
'-Wbuiltin-macro-redefined',
'-Wcannot-profile',
- '-Wcast-align',
- '-Wcast-align=strict',
'-Wcast-function-type',
'-Wchar-subscripts',
'-Wclobbered',

BIN
libvirt-glib-4.0.0.tar.xz Normal file

Binary file not shown.

View File

@ -1,11 +1,14 @@
Name: libvirt-glib Name: libvirt-glib
Version: 1.0.0 Version: 4.0.0
Release: 8 Release: 1
Summary: libvirt glib integration for events Summary: libvirt glib integration for events
License: LGPLv2+ License: LGPLv2+
URL: http://libvirt.org/ URL: http://libvirt.org/
Source0: ftp://libvirt.org/libvirt/glib/%{name}-%{version}.tar.gz Source0: https://libvirt.org/sources/glib/%{name}-%{version}.tar.xz
BuildRequires: glib2-devel >= 2.36.0 libvirt-devel >= 1.1.1 gobject-introspection-devel libxml2-devel libtool vala-tools intltool BuildRequires: glib2-devel >= 2.48.0 libvirt-devel >= 1.2.8 gobject-introspection-devel
BuildRequires: libxml2-devel >= 2.9.1 vala gettext gtk-doc meson
Patch0: libvirt-glib-4.0.0-cast-align.patch
Provides: libvirt-gconfig libvirt-gobject Provides: libvirt-gconfig libvirt-gobject
Obsoletes: libvirt-gconfig libvirt-gobject Obsoletes: libvirt-gconfig libvirt-gobject
@ -24,30 +27,27 @@ This package provides development header files and libraries for integration bet
%prep %prep
%setup -q %autosetup -p1
%build %build
%configure --enable-introspection %meson -Drpath=disabled -Dintrospection=enabled
%make_build %meson_build
%install %install
rm -rf $RPM_BUILD_ROOT %meson_install
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-g*a %delete_la_and_a
%find_lang %{name} %find_lang %{name}
%check %check
if ! make %{?_smp_mflags} check; then %meson_test
cat tests/test-suite.log || true
exit 1
fi
%ldconfig_post %ldconfig_post
%ldconfig_postun %ldconfig_postun
%files -f %{name}.lang %files -f %{name}.lang
%doc README COPYING AUTHORS ChangeLog NEWS %doc README COPYING AUTHORS NEWS
%{_libdir}/libvirt-g*-1.0.so.* %{_libdir}/libvirt-g*-1.0.so.*
%{_libdir}/girepository-1.0/LibvirtG*-1.0.typelib %{_libdir}/girepository-1.0/LibvirtG*-1.0.typelib
@ -63,5 +63,10 @@ fi
%{_datadir}/vala/vapi/libvirt-g* %{_datadir}/vala/vapi/libvirt-g*
%changelog %changelog
* Wed Jun 30 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 4.0.0-1
- Upgrade to 4.0.0
- Use meson rebuild
- Add libvirt-glib-4.0.0-cast-align.patch
* Sat Nov 30 2019 chenzhenyu <chenzhenyu13@huawei.com> - 1.0.0-8 * Sat Nov 30 2019 chenzhenyu <chenzhenyu13@huawei.com> - 1.0.0-8
- Package init - Package init