Accepting request 577191 from home:dimstar:Factory

- Own %{_sysconfdir}/dbus-1/system.d and %{_sysconfdir}/dbus-1: in
  the past systemd happened to install things there and 'own' the
  directory for us, but that was just a coincidence.
- Replace systemd BuildRequires with pkgconfig(systemd), allowing
  OBS to pick systemd-mini for the build.

Addresses the build failure seen in openSUSE:Factory:
[   46s] tuned-2.8.0-2.3.noarch.rpm: directories not owned by a package:
[   46s]  - /etc/dbus-1
[   46s]  - /etc/dbus-1/system.d

OBS-URL: https://build.opensuse.org/request/show/577191
OBS-URL: https://build.opensuse.org/package/show/Base:System/tuned?expand=0&rev=48
This commit is contained in:
Denisart Benjamin 2018-02-22 11:41:28 +00:00 committed by Git OBS Bridge
parent 21bbd5cfee
commit 87c81f4b36
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Feb 16 09:07:59 UTC 2018 - dimstar@opensuse.org
- Own %{_sysconfdir}/dbus-1/system.d and %{_sysconfdir}/dbus-1: in
the past systemd happened to install things there and 'own' the
directory for us, but that was just a coincidence.
- Replace systemd BuildRequires with pkgconfig(systemd), allowing
OBS to pick systemd-mini for the build.
-------------------------------------------------------------------
Thu Nov 16 09:55:47 UTC 2017 - jloeser@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package tuned
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -43,7 +43,7 @@ Patch5: check_for_cpupower.patch
BuildRequires: bash-completion
BuildRequires: desktop-file-utils
BuildRequires: python
BuildRequires: systemd
BuildRequires: pkgconfig(systemd)
Requires: %{_bindir}/cpupower
Requires: dbus-1-python
Requires: ethtool
@ -223,6 +223,8 @@ sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' %{_sysconfdir}/tuned/active_profile
%config(noreplace) %{_sysconfdir}/tuned/cpu-partitioning-variables.conf
%config(noreplace) %{_sysconfdir}/tuned/tuned-main.conf
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/tuned/bootcmdline
%dir %{_sysconfdir}/dbus-1
%dir %{_sysconfdir}/dbus-1/system.d
%config %{_sysconfdir}/dbus-1/system.d/com.redhat.tuned.conf
%{_sysconfdir}/grub.d
%{_tmpfilesdir}/tuned.conf