From 0ff01929f5f465ddc56e65048eed4ec7a8819f9b Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 21 Jul 2023 06:38:41 +0000 Subject: automatic import of kfind --- .gitignore | 1 + kfind.spec | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 81 insertions(+) create mode 100644 kfind.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..0638864 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/kfind-22.08.0.tar.xz diff --git a/kfind.spec b/kfind.spec new file mode 100644 index 0000000..6041ccc --- /dev/null +++ b/kfind.spec @@ -0,0 +1,79 @@ +%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 diff --git a/sources b/sources new file mode 100644 index 0000000..bf094b8 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +ce04495ec5e765f7ec5aca8eb83bb5c6 kfind-22.08.0.tar.xz -- cgit v1.2.3