Fix broken cmake for Qt library

This commit is contained in:
Jan Grulich 2018-02-02 12:26:45 +01:00
parent c07d8f258f
commit e36fc4d352
2 changed files with 21 additions and 2 deletions

View File

@ -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}"
)
####################################################################################

View File

@ -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 <jgrulich@redhat.com> - 0.11.8-2
- Fix broken cmake for Qt library
* Fri Jan 26 2018 Rex Dieter <rdieter@fedoraproject.org> - 0.11.8-1
- 0.11.8