%undefine __cmake_in_source_build Name: kfind Summary: KDE Find File Utility Version: 22.08.0 Release: 1 License: GPLv2+ and GFDL-1.3-or-later URL: https://www.kde.org/applications/utilities/kfind/ %global revision %(echo %{version} | cut -d. -f3) %if %{revision} >= 50 %global stable unstable %else %global stable stable %endif Source0: http://download.kde.org/%{stable}/release-service/%{version}/src/%{name}-%{version}.tar.xz BuildRequires: desktop-file-utils BuildRequires: libappstream-glib BuildRequires: extra-cmake-modules BuildRequires: kf5-rpm-macros BuildRequires: cmake(KF5Archive) BuildRequires: cmake(KF5CoreAddons) BuildRequires: cmake(KF5DocTools) BuildRequires: cmake(KF5FileMetaData) BuildRequires: cmake(KF5I18n) BuildRequires: cmake(KF5KIO) BuildRequires: cmake(KF5TextWidgets) BuildRequires: cmake(KF5WidgetsAddons) BuildRequires: cmake(Qt5Core) BuildRequires: cmake(Qt5Widgets) Conflicts: kde-l10n < 17.03 %description KFind allows you to search for directories and files. %prep %autosetup -p1 %build mkdir %{_target_platform} pushd %{_target_platform} %{cmake_kf5} .. popd %make_build -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %find_lang %{name} --with-html --with-man %check appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/org.kde.%{name}.appdata.xml ||: desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.%{name}.desktop %files -f %{name}.lang %license LICENSES/* %{_kf5_datadir}/qlogging-categories5/kfind.* %{_kf5_bindir}/%{name} %{_kf5_metainfodir}/org.kde.%{name}.appdata.xml %{_kf5_datadir}/applications/org.kde.%{name}.desktop %{_kf5_datadir}/icons/hicolor/*/apps/kfind.* %{_mandir}/man1/kfind.1* %changelog * Tue Dec 20 2022 misaka00251 - 22.08.0-1 - Init package