]> git.pld-linux.org Git - packages/ka5-kimap.git/blobdiff - ka5-kimap.spec
- updated to 23.08.5
[packages/ka5-kimap.git] / ka5-kimap.spec
index b8fd9411d4c67029966b6b82fd82a7a8252e832b..ea1139e3e37f9b81bc4cfce44bab42d726e51058 100644 (file)
@@ -1,20 +1,23 @@
-%define                kdeappsver      21.08.2
-%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          kimap
 Summary:       IMAP library
 Name:          ka5-%{kaname}
-Version:       21.08.2
+Version:       23.08.5
 Release:       1
 License:       GPL v2+/LGPL v2.1+
 Group:         X11/Applications
-Source0:       http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
-# Source0-md5: 45e61087aa1f0ab8bad44ffa86a70ac7
+Source0:       https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
+# Source0-md5: 3f2932c5a2406764ba3a3ab0f2cf59ff
 URL:           http://www.kde.org/
 BuildRequires: Qt5Core-devel >= %{qtver}
 BuildRequires: Qt5Gui-devel >= 5.11.1
 BuildRequires: Qt5Test-devel
-BuildRequires: cmake >= 2.8.12
+BuildRequires: cmake >= 3.20
 BuildRequires: cyrus-sasl-devel
 BuildRequires: gettext-devel
 BuildRequires: ka5-kmime-devel >= %{kdeappsver}
@@ -54,13 +57,17 @@ Pliki nagłówkowe dla programistów używających %{kaname}.
 %setup -q -n %{kaname}-%{version}
 
 %build
-install -d build
-cd build
-%cmake -G Ninja \
+%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
@@ -76,17 +83,15 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -f %{kaname}.lang
 %defattr(644,root,root,755)
-%ghost %{_libdir}/libKF5IMAP.so.5
-%{_libdir}/libKF5IMAP.so.5.*.*
-%{_libdir}/libkimaptest.a
 %{_datadir}/qlogging-categories5/kimap.categories
 %{_datadir}/qlogging-categories5/kimap.renamecategories
+%ghost %{_libdir}/libKPim5IMAP.so.5
+%attr(755,root,root) %{_libdir}/libKPim5IMAP.so.*.*.*
 
 %files devel
 %defattr(644,root,root,755)
-%{_includedir}/KF5/KIMAP
-%{_includedir}/KF5/kimap_version.h
-%{_includedir}/KF5/kimaptest
-%{_libdir}/cmake/KF5IMAP
-%{_libdir}/libKF5IMAP.so
 %{_libdir}/qt5/mkspecs/modules/qt_KIMAP.pri
+%{_includedir}/KPim5/KIMAP
+%{_libdir}/cmake/KF5IMAP
+%{_libdir}/cmake/KPim5IMAP
+%{_libdir}/libKPim5IMAP.so
This page took 0.243077 seconds and 4 git commands to generate.