From e36fc4d3526bab2b12535041a7f9513e744de5a3 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Fri, 2 Feb 2018 12:26:45 +0100 Subject: [PATCH] Fix broken cmake for Qt library --- appstream-broken-qt-cmake.patch | 15 +++++++++++++++ appstream.spec | 8 ++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 appstream-broken-qt-cmake.patch diff --git a/appstream-broken-qt-cmake.patch b/appstream-broken-qt-cmake.patch new file mode 100644 index 0000000..254305e --- /dev/null +++ b/appstream-broken-qt-cmake.patch @@ -0,0 +1,15 @@ +diff --git a/qt/cmake/AppStreamQtConfig.cmake.in b/qt/cmake/AppStreamQtConfig.cmake.in +index aa61e82..b64a4f5 100644 +--- a/qt/cmake/AppStreamQtConfig.cmake.in ++++ b/qt/cmake/AppStreamQtConfig.cmake.in +@@ -32,8 +32,8 @@ add_library(AppStreamQt SHARED IMPORTED) + set_target_properties(AppStreamQt PROPERTIES + INTERFACE_INCLUDE_DIRECTORIES "${PACKAGE_PREFIX_DIR}/include/" + INTERFACE_LINK_LIBRARIES "Qt5::Core" +- IMPORTED_LOCATION_DEBUG "@LIBDIR_FULL@/libAppStreamQt.so.${AppStreamQt_VERSION}" +- IMPORTED_SONAME_DEBUG "libAppStreamQt.${AppStreamQt_VERSION_MAJOR}" ++ IMPORTED_LOCATION "@LIBDIR_FULL@/libAppStreamQt.so.${AppStreamQt_VERSION}" ++ IMPORTED_SONAME "libAppStreamQt.${AppStreamQt_VERSION_MAJOR}" + ) + + #################################################################################### diff --git a/appstream.spec b/appstream.spec index 14f6b2e..f7d54a6 100644 --- a/appstream.spec +++ b/appstream.spec @@ -2,10 +2,10 @@ # Vala/Vapi support ( upstream disabled by default, probably explains why it the build breaks often ) %global vala 1 -Summary: Utilities to generate, maintain and access the AppStream database +Summary: Utilities to generate, maintain and access the AppStream database Name: appstream Version: 0.11.8 -Release: 1%{?dist} +Release: 2%{?dist} # lib LGPLv2+, tools GPLv2+ License: GPLv2+ and LGPLv2+ @@ -14,6 +14,7 @@ URL: https://github.com/ximion/appstream Source0: http://www.freedesktop.org/software/appstream/releases/AppStream-%{version}.tar.xz ## upstream patches (lookaside cache) +Patch0: appstream-broken-qt-cmake.patch ## upstreamable patches @@ -181,6 +182,9 @@ mv %{buildroot}%{_datadir}/metainfo/*.xml \ %changelog +* Fri Feb 02 2018 Jan Grulich - 0.11.8-2 +- Fix broken cmake for Qt library + * Fri Jan 26 2018 Rex Dieter - 0.11.8-1 - 0.11.8