commit 87ec5c2b190ffb3327fd2ae964641f68294acdce40854011b32873e1601a871e Author: Adrian Schröter Date: Fri May 3 16:03:21 2024 +0200 Sync from SUSE:SLFO:Main libvirt-dbus revision 9c3a09263af9c7de783e8421c6f83be6 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/_service b/_service new file mode 100644 index 0000000..98c4c80 --- /dev/null +++ b/_service @@ -0,0 +1,18 @@ + + + libvirt-dbus + v1.4.1 + git + disable + https://gitlab.com/libvirt/libvirt-dbus.git + @PARENT_TAG@ + [v]?([^\+]+)(.*) + \1 + enable + + + *.tar + xz + + + diff --git a/libvirt-dbus-1.4.1.tar.xz b/libvirt-dbus-1.4.1.tar.xz new file mode 100644 index 0000000..e2c0875 --- /dev/null +++ b/libvirt-dbus-1.4.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94b3c868237e44d456c095c4d0891fd6a4e74d80b0715da053e8e1df9dbe6c7f +size 58772 diff --git a/libvirt-dbus.changes b/libvirt-dbus.changes new file mode 100644 index 0000000..d20e648 --- /dev/null +++ b/libvirt-dbus.changes @@ -0,0 +1,59 @@ +------------------------------------------------------------------- +Sun Mar 20 19:19:13 UTC 2022 - Callum Farmer + +- Avoid self cycle due to user + +------------------------------------------------------------------- +Fri Mar 11 14:15:03 UTC 2022 - Callum Farmer + +- Add CONFIG parameter to %sysusers_generate_pre + +------------------------------------------------------------------- +Fri Mar 11 01:09:18 UTC 2022 - jfehlig@suse.com + +- Update to version 1.4.1: + * Release of libvirt-dbus 1.4.1 + * tests: allow running our tests against installed libvirt-dbus + * tests: report proper error if `abs_top_builddir` is not defined + * gitlab: use --fatal-meson-warnings in builds + * meson: add git_werror option and only set if -Dwerror is not set + * meson: honour meson warning_level setting + * gitlab: adapt to use meson for libvirt-glib build + * ci: refresh containers for CentOS-8 PowerTools repo rename + * gitlab: replace "libvirt-" prefix with "ci-" in dockerfiles + * gitlab: refresh containers with lcitool for fully minimized base + * Dropped patches: libvirt-dbus-systemd.diff +- Add source service file +- Change system-user-libvirt-dbus subpackage to noarch +- Require libvirt group in system-user-libvirt-dbus subpackage + bsc#1196968 + +------------------------------------------------------------------- +Wed May 26 22:40:40 UTC 2021 - James Fehlig + +- Add libvirtdbus user to libvirt group + boo#1182538 + +------------------------------------------------------------------- +Mon Nov 9 17:44:00 UTC 2020 - James Fehlig + +- Fix syntax errors in system-user-libvirt-dbus.conf + boo#1178530 + +------------------------------------------------------------------- +Mon Oct 5 13:55:52 UTC 2020 - Ludwig Nussel + +- Actually require sysuser package +- Backport patch from git to autostart dbus interface using systemd + (libvirt-dbus-systemd.diff) + +------------------------------------------------------------------- +Tue Jul 7 22:43:10 UTC 2020 - James Fehlig + +- spec: Switch from explicitly adding user:group to sysuser + mechanism + +------------------------------------------------------------------- +Wed Jun 17 09:49:59 UTC 2020 - Ludwig Nussel + +- initial package version 1.4.0 diff --git a/libvirt-dbus.spec b/libvirt-dbus.spec new file mode 100644 index 0000000..8db60be --- /dev/null +++ b/libvirt-dbus.spec @@ -0,0 +1,97 @@ +# +# spec file for package libvirt-dbus +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: libvirt-dbus +Version: 1.4.1 +Release: 0 +Summary: D-Bus API binding for libvirt +License: LGPL-2.1-or-later +URL: https://libvirt.org/ +Source0: %{name}-%{version}.tar.xz +Source1: system-user-%{name}.conf +BuildRequires: gcc +BuildRequires: meson +BuildRequires: polkit +BuildRequires: python3-docutils +BuildRequires: sysuser-tools +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(libvirt) +BuildRequires: pkgconfig(libvirt-glib-1.0) +BuildRequires: pkgconfig(systemd) +Requires: polkit +Requires(pre): user(libvirtdbus) +#!BuildIgnore: user(libvirtdbus) + +%description +This package provides D-Bus API for libvirt + +%package -n system-user-libvirt-dbus +Summary: System user for libvirt-dbus +Requires(pre): group(libvirt) +BuildArch: noarch +%sysusers_requires + +%description -n system-user-libvirt-dbus +System user for libvirt-dbus. + +%prep +%autosetup -p1 + +%build +%meson -Dinit_script=systemd +%meson_build +%sysusers_generate_pre %{SOURCE1} system-user-%{name} system-user-%{name}.conf + +%install +%meson_install +mkdir -p %{buildroot}%{_sysusersdir} +install -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/system-user-%{name}.conf +ln -s service %{buildroot}%{_sbindir}/rclibvirt-dbus + +%pre +%service_add_pre libvirt-dbus.service + +%post +%service_add_post libvirt-dbus.service + +%preun +%service_del_preun libvirt-dbus.service + +%postun +%service_del_postun libvirt-dbus.service + +%pre -n system-user-%{name} -f system-user-%{name}.pre + +%files +%doc NEWS.rst +%license COPYING +%{_sbindir}/rclibvirt-dbus +%{_sbindir}/libvirt-dbus +%{_datadir}/dbus-1/services/org.libvirt.service +%{_datadir}/dbus-1/system-services/org.libvirt.service +%{_datadir}/dbus-1/system.d/org.libvirt.conf +%{_datadir}/dbus-1/interfaces/org.libvirt.*.xml +%{_datadir}/polkit-1/rules.d/libvirt-dbus.rules +%{_mandir}/man8/libvirt-dbus.8%{?ext_man} +%{_unitdir}/libvirt-dbus.service +%{_userunitdir}/libvirt-dbus.service + +%files -n system-user-%{name} +%{_sysusersdir}/system-user-%{name}.conf + +%changelog diff --git a/system-user-libvirt-dbus.conf b/system-user-libvirt-dbus.conf new file mode 100644 index 0000000..e262dbf --- /dev/null +++ b/system-user-libvirt-dbus.conf @@ -0,0 +1,4 @@ +# Type Name ID GECOS [HOME] +u libvirtdbus - "Libvirt D-Bus bridge" +g libvirtdbus - +m libvirtdbus libvirt