Fix finding taglib in F29
This commit is contained in:
parent
1dbca2522b
commit
59a7d0f3e5
|
@ -14,6 +14,7 @@ Summary: Efficient KDE ID3 tag editor
|
|||
License: GPLv2+
|
||||
URL: http://kid3.sourceforge.net/
|
||||
Source0: http://downloads.sourceforge.net/kid3/%{name}-%{version}.tar.gz
|
||||
Patch0: taglib-find-fix.patch
|
||||
|
||||
%if %{with kf5}
|
||||
BuildRequires: kf5-kio-devel
|
||||
|
@ -71,7 +72,7 @@ built without KDE dependencies.
|
|||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup -p1
|
||||
|
||||
|
||||
%build
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
diff -up kid3-3.7.0/src/plugins/taglibmetadata/cmake/modules/FindTagLib.cmake.fixtaglibfinder kid3-3.7.0/src/plugins/taglibmetadata/cmake/modules/FindTagLib.cmake
|
||||
--- kid3-3.7.0/src/plugins/taglibmetadata/cmake/modules/FindTagLib.cmake.fixtaglibfinder 2019-01-10 02:26:00.919524813 +0330
|
||||
+++ kid3-3.7.0/src/plugins/taglibmetadata/cmake/modules/FindTagLib.cmake 2019-01-10 02:26:18.557339294 +0330
|
||||
@@ -28,7 +28,7 @@ else()
|
||||
if(NOT ${TAGLIB_VERSION} VERSION_LESS 1.9.1)
|
||||
# Extract library name and path from TAGLIB_LDFLAGS, which has
|
||||
# the format "-L/usr/lib -ltag"
|
||||
- string(REGEX MATCH "-L *([^ ]+) +-l *([^ ]+)" _match ${TAGLIB_LDFLAGS})
|
||||
+ string(REGEX MATCH "-l *([^ ]+)" _match ${TAGLIB_LDFLAGS})
|
||||
if(_match)
|
||||
find_library(TAGLIB_LIBRARY NAMES ${CMAKE_MATCH_2}
|
||||
HINTS ${CMAKE_MATCH_1}
|
Loading…
Reference in New Issue