From b5037051d6aa91948c63cc56cb6fdec3891696f9 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Tue, 20 Oct 2020 07:22:02 -0700 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/libvirt-dbus#63e972d46b19eeed45ac410715e8077eaa0d099c --- .gitignore | 4 ++ libvirt-dbus.spec | 99 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 104 insertions(+) create mode 100644 libvirt-dbus.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..91596e7 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,4 @@ +*.rpm +.build*.log +/libvirt-dbus-*.tar.gz +/libvirt-dbus-*.tar.xz diff --git a/libvirt-dbus.spec b/libvirt-dbus.spec new file mode 100644 index 0000000..67073c1 --- /dev/null +++ b/libvirt-dbus.spec @@ -0,0 +1,99 @@ +# -*- rpm-spec -*- + +%global meson_version 0.49.0 +%global glib2_version 2.44.0 +%global libvirt_version 3.0.0 +%global libvirt_glib_version 0.0.7 +%global system_user libvirtdbus + +Name: libvirt-dbus +Version: 1.4.0 +Release: 2%{?dist} +Summary: libvirt D-Bus API binding +License: LGPLv2+ +URL: https://libvirt.org/ +Source0: https://libvirt.org/sources/dbus/%{name}-%{version}.tar.xz + +BuildRequires: gcc +BuildRequires: meson >= %{meson_version} +BuildRequires: glib2-devel >= %{glib2_version} +BuildRequires: libvirt-devel >= %{libvirt_version} +BuildRequires: libvirt-glib-devel >= %{libvirt_glib_version} +%if 0%{?rhel} == 7 +BuildRequires: python36-docutils +%else +BuildRequires: python3-docutils +%endif + +Requires: dbus +Requires: glib2 >= %{glib2_version} +Requires: libvirt-libs >= %{libvirt_version} +Requires: libvirt-glib >= %{libvirt_glib_version} +Requires: polkit + +Requires(pre): shadow-utils + +%description +This package provides D-Bus API for libvirt + +%prep +%autosetup + +%build +%meson +%meson_build + +%install +%meson_install + +%pre +getent group %{system_user} >/dev/null || groupadd -r %{system_user} +getent passwd %{system_user} >/dev/null || \ + useradd -r -g %{system_user} -d / -s /sbin/nologin \ + -c "Libvirt D-Bus bridge" %{system_user} +exit 0 + +%files +%doc AUTHORS.rst NEWS.rst +%license COPYING +%{_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* + +%changelog +* Tue Jul 28 2020 Fedora Release Engineering - 1.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jun 05 2020 Pavel Hrdina - 1.4.0-1 +- Update to 1.4.0 release + +* Wed Jan 29 2020 Fedora Release Engineering - 1.3.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 1.3.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 1.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Jan 21 2019 Pavel Hrdina - 1.3.0-1 +- Update to 1.3.0 release + +* Wed Aug 29 2018 Pavel Hrdina - 1.2.0-1 +- Update to 1.2.0 release + +* Fri Jul 13 2018 Fedora Release Engineering - 1.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Jun 28 2018 Pavel Hrdina - 1.1.0-1 +- Update to 1.1.0 release + +* Thu May 17 2018 Pavel Hrdina - 1.0.0-1 +- Update to 1.0.0 release + +* Tue Mar 27 2018 Pavel Hrdina - 0.0.1-1 +- Initial RPM build diff --git a/sources b/sources new file mode 100644 index 0000000..8323895 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libvirt-dbus-1.4.0.tar.xz) = 978e3fc8de6f36e18cd3141440a36ff64cf214202388c753f519294e87b8b9beaf9cc1c0dc04a7506e3b0ac383ebbb57e38b95512839d57a70816e85e59a873d