Initial import after review (rhbz#1559786)

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina 2018-03-26 14:57:36 +02:00
parent 85efeae78a
commit 979120c89b
4 changed files with 65 additions and 3 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*.rpm
.build*.log
/libvirt-dbus-*.tar.gz

View File

@ -1,3 +0,0 @@
# libvirt-dbus
The libvirt-dbus package

61
libvirt-dbus.spec Normal file
View File

@ -0,0 +1,61 @@
# -*- rpm-spec -*-
%global glib2_version 2.44.0
%global libvirt_version 1.2.8
%global libvirt_glib_version 0.0.7
%global system_user libvirtdbus
Name: libvirt-dbus
Version: 0.0.1
Release: 1%{?dist}
Summary: libvirt D-Bus API binding
License: LGPLv2+
URL: https://libvirt.org/
Source0: https://libvirt.org/sources/dbus/%{name}-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: glib2-devel >= %{glib2_version}
BuildRequires: libvirt-devel >= %{libvirt_version}
BuildRequires: libvirt-glib-devel >= %{libvirt_glib_version}
Requires: dbus
Requires: glib2 >= %{glib2_version}
Requires: libvirt-glib >= %{libvirt_glib_version}
Requires: libvirt-libs >= %{libvirt_version}
Requires: polkit
Requires(pre): shadow-utils
%description
This package provides D-Bus API for libvirt
%prep
%autosetup
%build
%configure
%make_build
%install
%make_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 README.md HACKING.md AUTHORS NEWS
%license COPYING
%{_sysconfdir}/polkit-1/rules.d/libvirt-dbus.rules
%{_bindir}/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
%changelog
* Tue Mar 27 2018 Pavel Hrdina <phrdina@redhat.com> - 0.0.1-1
- Initial RPM build

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (libvirt-dbus-0.0.1.tar.gz) = 5fb62b1e20f12a3bc12044b7109778d8bd7e4d3c04022842e4b44aeadaf3e59294bb4a54f5be52eb376bb5aef2a75467934bf5088e844c7d4290807f5dfa7323