diff --git a/kdegraphics-mobipocket-4.12.0-qmobipocket_kde4_includes_hint.patch b/kdegraphics-mobipocket-4.12.0-qmobipocket_kde4_includes_hint.patch new file mode 100644 index 0000000..cf74ca5 --- /dev/null +++ b/kdegraphics-mobipocket-4.12.0-qmobipocket_kde4_includes_hint.patch @@ -0,0 +1,12 @@ +diff -up kdegraphics-mobipocket-4.12.0/QMobipocketConfig.cmake.kde_includes_hint kdegraphics-mobipocket-4.12.0/QMobipocketConfig.cmake +--- kdegraphics-mobipocket-4.12.0/QMobipocketConfig.cmake.kde_includes_hint 2013-11-04 14:42:18.000000000 -0600 ++++ kdegraphics-mobipocket-4.12.0/QMobipocketConfig.cmake 2013-12-30 18:35:15.532983870 -0600 +@@ -5,7 +5,7 @@ get_filename_component( _currentDir ${_ + + # find the full paths to the library and the includes: + find_path(QMOBIPOCKET_INCLUDE_DIR qmobipocket/mobipocket.h +- HINTS ${_currentDir}/include ++ HINTS ${_currentDir}/include ${KDE4_INCLUDE_DIR} + NO_DEFAULT_PATH) + + find_library(QMOBIPOCKET_LIBRARY qmobipocket diff --git a/kdegraphics-mobipocket.spec b/kdegraphics-mobipocket.spec index 8959e8f..a897f30 100644 --- a/kdegraphics-mobipocket.spec +++ b/kdegraphics-mobipocket.spec @@ -1,7 +1,7 @@ Name: kdegraphics-mobipocket Summary: A collection of plugins to handle mobipocket files Version: 4.12.0 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ URL: https://projects.kde.org/projects/kde/kdegraphics/mobipocket @@ -13,6 +13,9 @@ URL: https://projects.kde.org/projects/kde/kdegraphics/mobipocket %endif Source0: http://download.kde.org/%{stable}/%{version}/src/%{name}-%{version}.tar.xz +## upstreamable patches +Patch50: kdegraphics-mobipocket-4.12.0-qmobipocket_kde4_includes_hint.patch + BuildRequires: desktop-file-utils BuildRequires: kdelibs4-devel >= %{version} BuildRequires: pkgconfig(libstreams) @@ -46,6 +49,8 @@ Requires: qmobipocket%{?_isa} = %{version}-%{release} %prep %setup -q +%patch50 -p1 -b .qmobipocket_kde4_includes_hint + %build mkdir -p %{_target_platform} @@ -80,6 +85,9 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %changelog +* Mon Dec 30 2013 Rex Dieter - 4.12.0-2 +- qmobipocket_kde4_includes_hint.patch + * Wed Dec 18 2013 Rex Dieter - 4.12.0-1 - 4.12.0