@ -10,7 +10,7 @@
Name: kf5-%{framework}
Name: kf5-%{framework}
Summary: A Tier 3 KDE Frameworks 5 module that provides indexing and search functionality
Summary: A Tier 3 KDE Frameworks 5 module that provides indexing and search functionality
Version: 5.42.0
Version: 5.42.0
Release: 1 %{?dist}
Release: 2 %{?dist}
# libs are LGPL, tools are GPL
# libs are LGPL, tools are GPL
# KDE e.V. may determine that future LGPL/GPL versions are accepted
# KDE e.V. may determine that future LGPL/GPL versions are accepted
@ -18,47 +18,49 @@ License: (LGPLv2 or LGPLv3) and (GPLv2 or GPLv3)
URL: https://community.kde.org/Baloo
URL: https://community.kde.org/Baloo
#URL: https://cgit.kde.org/%{framework}.git
#URL: https://cgit.kde.org/%{framework}.git
%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
Source1: 97-kde-baloo-filewatch-inotify.conf
Source1: 97-kde-baloo-filewatch-inotify.conf
## upstreamable patches
## upstreamable patches
# http://bugzilla.redhat.com/1235026
# http://bugzilla.redhat.com/1235026
Patch1: baloo-5.14.0-baloofile_config.patch
Patch100: baloo-5.14.0-baloofile_config.patch
# make 'desktop-file-validate baloo_file.desktop' pass
Patch2: baloo-5.27.0-dt_validate.patch
## upstream patches
Patch3: 0003-validate-baloo_file.desktop.patch
BuildRequires: extra-cmake-modules >= %{version}
BuildRequires: kf5-kconfig-devel >= %{version}
BuildRequires: extra-cmake-modules >= %{majmin}
BuildRequires: kf5-kcoreaddons-devel >= %{version}
BuildRequires: kf5-kconfig-devel >= %{majmin}
BuildRequires: kf5-kcrash-devel >= %{version}
BuildRequires: kf5-kcoreaddons-devel >= %{majmin}
BuildRequires: kf5-kdbusaddons-devel >= %{version}
BuildRequires: kf5-kcrash-devel >= %{majmin}
BuildRequires: kf5-kfilemetadata-devel >= %{version}
BuildRequires: kf5-kdbusaddons-devel >= %{majmin}
BuildRequires: kf5-ki18n-devel >= %{version}
BuildRequires: kf5-kfilemetadata-devel >= %{majmin}
BuildRequires: kf5-kidletime-devel >= %{version}
BuildRequires: kf5-ki18n-devel >= %{majmin}
BuildRequires: kf5-kio-devel >= %{version}
BuildRequires: kf5-kidletime-devel >= %{majmin}
BuildRequires: kf5-rpm-macros >= %{version}
BuildRequires: kf5-kio-devel >= %{majmin}
BuildRequires: kf5-solid-devel >= %{version}
BuildRequires: kf5-rpm-macros >= %{majmin}
BuildRequires: kf5-solid-devel >= %{majmin}
BuildRequires: lmdb-devel
BuildRequires: lmdb-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtdeclarative-devel
BuildRequires: qt5-qtdeclarative-devel
%if 0%{?tests}
%if 0%{?tests}
BuildRequires: dbus-x11
BuildRequires: dbus-x11
BuildRequires: time
BuildRequires: time
BuildRequires: xorg-x11-server-Xvfb
BuildRequires: xorg-x11-server-Xvfb
%endif
%endif
Requires: kf5-filesystem >= %{version}
Obsoletes: kf5-baloo-tools < 5.5.95-1
Obsoletes: kf5-baloo-tools < 5.5.95-1
Provides: kf5-baloo-tools = %{version}-%{release}
Provides: kf5-baloo-tools = %{version}-%{release}
%if 0%{?fedora}
%if 0%{?fedora}
Obsoletes: baloo < 5
Obsoletes: baloo < 5
Provides: baloo = %{version}-%{release}
Provides: baloo = %{version}-%{release}
@ -77,8 +79,8 @@ Summary: Development files for %{name}
# KDE e.V. may determine that future LGPL versions are accepted
# KDE e.V. may determine that future LGPL versions are accepted
License: LGPLv2 or LGPLv3
License: LGPLv2 or LGPLv3
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Requires: kf5-kcoreaddons-devel >= %{versio n}
Requires: kf5-kcoreaddons-devel >= %{majmi n}
Requires: kf5-kfilemetadata-devel >= %{versio n}
Requires: kf5-kfilemetadata-devel >= %{majmi n}
Requires: qt5-qtbase-devel
Requires: qt5-qtbase-devel
%description devel
%description devel
@ -126,15 +128,15 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
install -p -m644 -D %{SOURCE1} %{buildroot}%{_prefix}/lib/sysctl.d/97-kde-baloo-filewatch-inotify.conf
install -p -m644 -D %{SOURCE1} %{buildroot}%{_prefix}/lib/sysctl.d/97-kde-baloo-filewatch-inotify.conf
%find_lang kio5_baloosearch --with-qt
%find_lang kio5_baloosearch
%find_lang kio5_tags --with-qt
%find_lang kio5_tags
%find_lang kio5_timeline --with-qt
%find_lang kio5_timeline
%find_lang balooctl5 --with-qt
%find_lang balooctl5
%find_lang baloosearch5 --with-qt
%find_lang baloosearch5
%find_lang balooshow5 --with-qt
%find_lang balooshow5
%find_lang baloo_file5 --with-qt
%find_lang baloo_file5
%find_lang baloo_file_extractor5 --with-qt
%find_lang baloo_file_extractor5
%find_lang baloomonitorplugin --with-qt
%find_lang baloomonitorplugin
cat kio5_tags.lang kio5_baloosearch.lang kio5_timeline.lang balooctl5.lang baloosearch5.lang balooshow5.lang baloomonitorplugin.lang \
cat kio5_tags.lang kio5_baloosearch.lang kio5_timeline.lang balooctl5.lang baloosearch5.lang balooshow5.lang baloomonitorplugin.lang \
> %{name}.lang
> %{name}.lang
@ -206,6 +208,9 @@ fi
%changelog
%changelog
* Mon Jan 15 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.42.0-2
- .spec cleanup
* Mon Jan 08 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.42.0-1
* Mon Jan 08 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.42.0-1
- 5.42.0
- 5.42.0