From 400c0f8209a889a1c8d4c6ee930c182ecfaef203ea478aa8705cbbf4936eeb72 Mon Sep 17 00:00:00 2001
From: Raymond Wooninck <tittiatcoke@gmail.com>
Date: Thu, 12 May 2016 07:43:02 +0000
Subject: [PATCH] Accepting request 394272 from
 home:jengelh:branches:KDE:Frameworks5

- Drop unnecessary manual library require
- Avoid /bin/sh invocation for simple ldconfig calls

OBS-URL: https://build.opensuse.org/request/show/394272
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/AppStream?expand=0&rev=19
---
 AppStream.changes |  6 ++++++
 AppStream.spec    | 13 ++++---------
 2 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/AppStream.changes b/AppStream.changes
index efb7bd3..251f5ee 100644
--- a/AppStream.changes
+++ b/AppStream.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Sun May  8 19:25:29 UTC 2016 - jengelh@inai.de
+
+- Drop unnecessary manual library require
+- Avoid /bin/sh invocation for simple ldconfig calls
+
 -------------------------------------------------------------------
 Fri May  6 17:25:56 UTC 2016 - mailaender@opensuse.org
 
diff --git a/AppStream.spec b/AppStream.spec
index a92e569..c919e03 100644
--- a/AppStream.spec
+++ b/AppStream.spec
@@ -39,7 +39,6 @@ BuildRequires:  pkgconfig(vapigen)
 BuildRequires:  pkgconfig(xapian-core)
 BuildRequires:  pkgconfig(yaml-0.1)
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-Requires:       libappstream3
 
 %description
 AppStream-Core makes it easy to access application information from the
@@ -134,17 +133,13 @@ make
 
 %find_lang appstream %{name}.lang
 
-%post -n libappstream3
-/sbin/ldconfig
+%post -n libappstream3 -p /sbin/ldconfig
 
-%postun -n libappstream3
-/sbin/ldconfig
+%postun -n libappstream3 -p /sbin/ldconfig
 
-%post -n libAppstreamQt1
-/sbin/ldconfig
+%post -n libAppstreamQt1 -p /sbin/ldconfig
 
-%postun -n libAppstreamQt1
-/sbin/ldconfig
+%postun -n libAppstreamQt1 -p /sbin/ldconfig
 
 %files lang -f %{name}.lang