diff options
author | CoprDistGit <infra@openeuler.org> | 2023-07-21 06:38:41 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-07-21 06:38:41 +0000 |
commit | 0ff01929f5f465ddc56e65048eed4ec7a8819f9b (patch) | |
tree | 83e01aa04a55cedc35144b52f0fc9e0b9b8d18c9 | |
parent | 343d64c651ef470ba1777417f8723dd935d1f7a5 (diff) |
automatic import of kfindopeneuler23.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | kfind.spec | 79 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 81 insertions, 0 deletions
@@ -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 <liuxin@iscas.ac.cn> - 22.08.0-1 +- Init package @@ -0,0 +1 @@ +ce04495ec5e765f7ec5aca8eb83bb5c6 kfind-22.08.0.tar.xz |