From 98f7d2aeac9f46435d6c60b60824d0cd1631492132cc064f7c6ae488d4c7e3e3 Mon Sep 17 00:00:00 2001
From: Ondrej Holecek <oholecek@suse.com>
Date: Fri, 31 Jul 2015 09:48:13 +0000
Subject: [PATCH] Accepting request 319725 from home:dimstar:Factory

- Add pkgconfig(udev) BuildRequires: we explicitly expect udev.pc
  to be present to define _udevrulesdir.

This helps with the changes done in systemd 222.

OBS-URL: https://build.opensuse.org/request/show/319725
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/pulseaudio?expand=0&rev=157
---
 pulseaudio.changes | 6 ++++++
 pulseaudio.spec    | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/pulseaudio.changes b/pulseaudio.changes
index 552be6e..bbb8cb3 100644
--- a/pulseaudio.changes
+++ b/pulseaudio.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Fri Jul 31 09:40:24 UTC 2015 - dimstar@opensuse.org
+
+- Add pkgconfig(udev) BuildRequires: we explicitly expect udev.pc
+  to be present to define _udevrulesdir.
+
 -------------------------------------------------------------------
 Thu Jul 23 12:38:33 CEST 2015 - tiwai@suse.de
 
diff --git a/pulseaudio.spec b/pulseaudio.spec
index 69aebd9..ad5fab7 100644
--- a/pulseaudio.spec
+++ b/pulseaudio.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package pulseaudio
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 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
@@ -84,6 +84,7 @@ BuildRequires:  pkgconfig(ice)
 BuildRequires:  pkgconfig(json) >= 0.11
 BuildRequires:  pkgconfig(sbc) >= 1.0
 BuildRequires:  pkgconfig(sm)
+BuildRequires:  pkgconfig(udev)
 BuildRequires:  pkgconfig(x11)
 BuildRequires:  pkgconfig(x11-xcb)
 BuildRequires:  pkgconfig(xcb)
@@ -346,7 +347,7 @@ export CFLAGS="$RPM_OPT_FLAGS -fPIE"
         --disable-bluez5 \
 %endif
         --with-udev-rules-dir=%{_udevrulesdir}
-        
+
 make %{?_smp_mflags} V=1
 make doxygen
 
@@ -537,7 +538,6 @@ exit 0
 %{_libexecdir}/systemd/user/%{name}.service
 %{_libexecdir}/systemd/user/%{name}.socket
 
-
 %if %{defined suse_version}
 %config(noreplace) %{_fwdefdir}/pulseaudio-server
 %endif