X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=ka5-baloo-widgets.spec;h=71c8d631ceae9f00a884568682b31c91ee9cb125;hb=HEAD;hp=f4ad020fc0cc9fedb36f611ad57f7ef41bd08f3a;hpb=ab461cd6e82f56f3b0308394f1fb6283662ba981;p=packages%2Fka5-baloo-widgets.git diff --git a/ka5-baloo-widgets.spec b/ka5-baloo-widgets.spec index f4ad020..71c8d63 100644 --- a/ka5-baloo-widgets.spec +++ b/ka5-baloo-widgets.spec @@ -1,21 +1,24 @@ -%define kdeappsver 19.04.1 -%define kframever 5.56.0 -%define qtver 5.9.0 +# +# Conditional build: +%bcond_with tests # build with tests +%define kdeappsver 23.08.5 +%define kframever 5.94.0 +%define qtver 5.15.2 %define kaname baloo-widgets Summary: Baloo widgets Name: ka5-%{kaname} -Version: 19.04.1 +Version: 23.08.5 Release: 1 License: GPL v2+/LGPL v2.1+ Group: X11/Libraries -Source0: http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz -# Source0-md5: 406224a894f6afb158e650a3d59b7fb7 +Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz +# Source0-md5: e009be9182808f2f40ef9fb1edf6435d URL: http://www.kde.org/ BuildRequires: Qt5Core-devel >= %{qtver} BuildRequires: Qt5Gui-devel >= 5.11.1 BuildRequires: Qt5Test-devel BuildRequires: Qt5Widgets-devel -BuildRequires: cmake >= 2.8.12 +BuildRequires: cmake >= 3.20 BuildRequires: gettext-devel BuildRequires: kf5-baloo-devel >= %{kframever} BuildRequires: kf5-extra-cmake-modules >= %{kframever} @@ -34,6 +37,9 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Widgets for Baloo. +%description -l pl.UTF-8 +Widżety dla Baloo. + %package devel Summary: Header files for %{kaname} development Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} @@ -50,14 +56,18 @@ Pliki nagłówkowe dla programistów używających %{kaname}. %setup -q -n %{kaname}-%{version} %build -install -d build -cd build %cmake \ + -B build \ -G Ninja \ + %{!?with_tests:-DBUILD_TESTING=OFF} \ -DHTML_INSTALL_DIR=%{_kdedocdir} \ - -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ - .. -%ninja_build + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON +%ninja_build -C build + +%if %{with tests} +ctest --test-dir build +%endif + %install rm -rf $RPM_BUILD_ROOT @@ -74,14 +84,14 @@ rm -rf $RPM_BUILD_ROOT %files -f %{kaname}.lang %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/baloo_filemetadata_temp_extractor -%attr(755,root,root) %ghost %{_libdir}/libKF5BalooWidgets.so.5 +%ghost %{_libdir}/libKF5BalooWidgets.so.5 %attr(755,root,root) %{_libdir}/libKF5BalooWidgets.so.*.*.* -%attr(755,root,root) %{_libdir}/qt5/plugins/baloofilepropertiesplugin.so %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kfileitemaction/tagsfileitemaction.so -%{_datadir}/kservices5/baloofilepropertiesplugin.desktop +%attr(755,root,root) %{_libdir}/qt5/plugins/kf5/propertiesdialog/baloofilepropertiesplugin.so +%{_datadir}/qlogging-categories5/baloo-widgets.categories %files devel %defattr(644,root,root,755) %{_includedir}/KF5/BalooWidgets %{_libdir}/cmake/KF5BalooWidgets -%attr(755,root,root) %{_libdir}/libKF5BalooWidgets.so +%{_libdir}/libKF5BalooWidgets.so