epel9
Rex Dieter 7 years ago
parent a581b9fc1b
commit 6e39d3ee22

34
.gitignore vendored

@ -1,35 +1 @@
/kfilemetadata-5.5.95.tar.xz
/kfilemetadata-5.6.0.tar.xz
/kfilemetadata-5.6.1.tar.xz
/kfilemetadata-5.6.2.tar.xz
/kfilemetadata-5.6.95.tar.xz
/kfilemetadata-5.9.0.tar.xz
/kfilemetadata-5.9.1.tar.xz
/kfilemetadata-5.9.2.tar.xz
/kfilemetadata-5.13.0.tar.xz
/kfilemetadata-5.14.0.tar.xz
/kfilemetadata-5.15.0.tar.xz
/kfilemetadata-5.16.0.tar.xz
/kfilemetadata-5.17.0.tar.xz
/kfilemetadata-5.18.0.tar.xz
/kfilemetadata-5.19.0.tar.xz
/kfilemetadata-5.20.0.tar.xz
/kfilemetadata-5.21.0.tar.xz
/kfilemetadata-5.22.0.tar.xz
/kfilemetadata-5.23.0.tar.xz
/kfilemetadata-5.24.0.tar.xz
/kfilemetadata-5.25.0.tar.xz
/kfilemetadata-5.26.0.tar.xz
/kfilemetadata-5.27.0.tar.xz
/kfilemetadata-5.29.0.tar.xz
/kfilemetadata-5.31.0.tar.xz
/kfilemetadata-5.32.0.tar.xz
/kfilemetadata-5.33.0.tar.xz
/kfilemetadata-5.34.0.tar.xz
/kfilemetadata-5.35.0.tar.xz
/kfilemetadata-5.36.0.tar.xz
/kfilemetadata-5.37.0.tar.xz
/kfilemetadata-5.38.0.tar.xz
/kfilemetadata-5.39.0.tar.xz
/kfilemetadata-5.40.0.tar.xz
/kfilemetadata-5.41.0.tar.xz /kfilemetadata-5.41.0.tar.xz

@ -18,37 +18,41 @@ Release: 1%{?dist}
License: LGPLv2 or LGPLv3 License: LGPLv2 or LGPLv3
URL: https://cgit.kde.org/%{framework} URL: https://cgit.kde.org/%{framework}
%global versiondir %(echo %{version} | cut -d. -f1-2) %global majmin %(echo %{version} | cut -d. -f1-2)
%global revision %(echo %{version} | cut -d. -f3) %global revision %(echo %{version} | cut -d. -f3)
%if %{revision} >= 50 %if %{revision} >= 50
%global stable unstable %global stable unstable
%else %else
%global stable stable %global stable stable
%endif %endif
Source0: http://download.kde.org/%{stable}/frameworks/%{versiondir}/%{framework}-%{version}.tar.xz Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz
# filter plugin provides # filter plugin provides
%global __provides_exclude_from ^(%{_kf5_plugindir}/.*\\.so)$ %global __provides_exclude_from ^(%{_kf5_plugindir}/.*\\.so)$
BuildRequires: extra-cmake-modules >= %{majmin}
BuildRequires: kf5-karchive-devel >= %{majmin}
BuildRequires: kf5-ki18n-devel >= %{majmin}
BuildRequires: kf5-rpm-macros
BuildRequires: qt5-qtbase-devel
BuildRequires: libattr-devel
BuildRequires: pkgconfig(exiv2) >= 0.20
## optional deps
%if 0%{?ebook} %if 0%{?ebook}
BuildRequires: ebook-tools-devel BuildRequires: ebook-tools-devel
%endif %endif
BuildRequires: extra-cmake-modules >= %{version} %if 0%{?ffmpeg}
BuildRequires: kf5-karchive-devel >= %{version} BuildRequires: ffmpeg-devel
BuildRequires: kf5-ki18n-devel >= %{version} %endif
BuildRequires: kf5-rpm-macros >= %{version}
BuildRequires: libattr-devel
BuildRequires: pkgconfig(exiv2) >= 0.20
%if 0%{?poppler} %if 0%{?poppler}
BuildRequires: pkgconfig(poppler-qt5) BuildRequires: pkgconfig(poppler-qt5)
%endif %endif
%if 0%{?taglib} %if 0%{?taglib}
BuildRequires: pkgconfig(taglib) >= 1.9 BuildRequires: pkgconfig(taglib) >= 1.9
%endif %endif
BuildRequires: qt5-qtbase-devel
%if 0%{?ffmpeg}
BuildRequires: ffmpeg-devel
%endif
%description %description
%{summary}. %{summary}.
@ -76,7 +80,8 @@ make %{?_smp_mflags} -C %{_target_platform}
%install %install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform} make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%find_lang kfilemetadata5_qt --with-qt --all-name
%find_lang %{name} --all-name
mkdir -p %{buildroot}%{_kf5_plugindir}/kfilemetadata/writers/ mkdir -p %{buildroot}%{_kf5_plugindir}/kfilemetadata/writers/
@ -84,7 +89,7 @@ mkdir -p %{buildroot}%{_kf5_plugindir}/kfilemetadata/writers/
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files -f kfilemetadata5_qt.lang %files -f %{name}.lang
%license COPYING.LGPL* %license COPYING.LGPL*
%{_sysconfdir}/xdg/%{framework}* %{_sysconfdir}/xdg/%{framework}*
%{_kf5_libdir}/libKF5FileMetaData.so.* %{_kf5_libdir}/libKF5FileMetaData.so.*

Loading…
Cancel
Save