diff --git a/kf5-kfilemetadata.spec b/kf5-kfilemetadata.spec index 164cd02..2da753c 100644 --- a/kf5-kfilemetadata.spec +++ b/kf5-kfilemetadata.spec @@ -6,6 +6,7 @@ %if 0%{?fedora} %global ebook 1 %global poppler 1 +%global taglib 1 %endif Name: kf5-%{framework} @@ -38,7 +39,9 @@ BuildRequires: pkgconfig(exiv2) >= 0.20 %if 0%{?poppler} BuildRequires: pkgconfig(poppler-qt5) %endif -BuildRequires: pkgconfig(taglib) +%if 0%{?taglib} +BuildRequires: pkgconfig(taglib) >= 1.9 +%endif BuildRequires: qt5-qtbase-devel %if 0%{?ffmpeg} BuildRequires: ffmpeg-devel @@ -82,7 +85,9 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %dir %{_kf5_plugindir}/kfilemetadata/ %{_kf5_plugindir}/kfilemetadata/kfilemetadata_*.so %dir %{_kf5_plugindir}/kfilemetadata/writers/ +%if 0%{?taglib} %{_kf5_plugindir}/kfilemetadata/writers/kfilemetadata_taglibwriter.so +%endif %files devel %{_kf5_libdir}/libKF5FileMetaData.so