]> git.pld-linux.org Git - packages/ka5-akonadi-calendar.git/blobdiff - ka5-akonadi-calendar.spec
- updated to 23.08.5
[packages/ka5-akonadi-calendar.git] / ka5-akonadi-calendar.spec
index 33f7bc9ff85e875c595767ca4201fba34090063d..17219ee218dd79ca40215e9ef0d3545fba816ac0 100644 (file)
@@ -1,32 +1,40 @@
-%define                kdeappsver      18.12.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          akonadi-calendar
 Summary:       Akonadi Calendar
 Name:          ka5-%{kaname}
-Version:       18.12.0
+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: e0b7b3a05d0548d521b8c63026b11d8b
+Source0:       https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
+# Source0-md5: 245f6f0812c14d68ad80e2d5136b9738
 URL:           http://www.kde.org/
 BuildRequires: Qt5Core-devel >= %{qtver}
 BuildRequires: Qt5Gui-devel >= 5.11.1
 BuildRequires: Qt5Test-devel >= 5.9.0
-BuildRequires: cmake >= 2.8.12
+BuildRequires: cmake >= 3.20
 BuildRequires: gettext-devel
-BuildRequires: ka5-akonadi-contacts-devel >= 18.12.0
-BuildRequires: ka5-akonadi-devel >= 18.12.0
-BuildRequires: ka5-kcalcore-devel >= 18.12.0
-BuildRequires: ka5-kcalutils-devel >= 18.12.0
-BuildRequires: ka5-kcontacts-devel >= 18.12.0
-BuildRequires: ka5-kidentitymanagement-devel >= 18.12.0
-BuildRequires: kf5-extra-cmake-modules >= 5.53.0
-BuildRequires: kf5-kcodecs-devel >= 5.51.0
-BuildRequires: kf5-kdbusaddons-devel >= 5.51.0
-BuildRequires: kf5-kiconthemes-devel >= 5.51.0
-BuildRequires: kf5-kio-devel >= 5.51.0
-BuildRequires: kf5-kwallet-devel >= 5.51.0
+BuildRequires: ka5-akonadi-contacts-devel >= %{kdeappsver}
+BuildRequires: ka5-akonadi-devel >= %{kdeappsver}
+BuildRequires: ka5-kcalutils-devel >= %{kdeappsver}
+BuildRequires: ka5-kidentitymanagement-devel >= %{kdeappsver}
+BuildRequires: ka5-kmailtransport-devel >= %{kdeappsver}
+BuildRequires: ka5-messagelib-devel >= %{kdeappsver}
+BuildRequires: kf5-extra-cmake-modules >= %{kframever}
+BuildRequires: kf5-kcalendarcore-devel >= %{kframever}
+BuildRequires: kf5-kcodecs-devel >= %{kframever}
+BuildRequires: kf5-kcontacts-devel >= %{kframever}
+BuildRequires: kf5-kdbusaddons-devel >= %{kframever}
+BuildRequires: kf5-kiconthemes-devel >= %{kframever}
+BuildRequires: kf5-kio-devel >= %{kframever}
+BuildRequires: kf5-knotifications-devel >= %{kframever}
+BuildRequires: kf5-kwallet-devel >= %{kframever}
+BuildRequires: ninja
 BuildRequires: qt5-build >= %{qtver}
 BuildRequires: rpmbuild(macros) >= 1.164
 BuildRequires: shared-mime-info
@@ -57,17 +65,21 @@ Pliki nagłówkowe dla programistów używających %{kaname}.
 %setup -q -n %{kaname}-%{version}
 
 %build
-install -d build
-cd build
-%cmake \
-       -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-       ..
-%{__make}
+%cmake -B build \
+       -G Ninja \
+       %{!?with_tests:-DBUILD_TESTING=OFF} \
+       -DHTML_INSTALL_DIR=%{_kdedocdir} \
+       -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
-%{__make} -C build install \
-       DESTDIR=$RPM_BUILD_ROOT
+%ninja_install -C build
 
 %find_lang %{kaname} --all-name --with-kde
 
@@ -79,18 +91,24 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -f %{kaname}.lang
 %defattr(644,root,root,755)
-/etc/xdg/akonadi-calendar.categories
-/etc/xdg/akonadi-calendar.renamecategories
-%attr(755,root,root) %ghost %{_libdir}/libKF5AkonadiCalendar.so.5
-%attr(755,root,root) %{_libdir}/libKF5AkonadiCalendar.so.5.*.*
 %attr(755,root,root) %{_libdir}/qt5/plugins/akonadi_serializer_kcalcore.so
 %{_datadir}/akonadi/plugins/serializer/akonadi_serializer_kcalcore.desktop
+%{_datadir}/qlogging-categories5/akonadi-calendar.categories
+%{_datadir}/qlogging-categories5/akonadi-calendar.renamecategories
+/etc/xdg/autostart/org.kde.kalendarac.desktop
+%attr(755,root,root) %{_bindir}/kalendarac
+%{_datadir}/dbus-1/services/org.kde.kalendarac.service
+%{_datadir}/knotifications5/kalendarac.notifyrc
+%{_datadir}/qlogging-categories5/org_kde_kalendarac.categories
+%dir %{_libdir}/qt5/plugins/kf5/org.kde.kcalendarcore.calendars
+%attr(755,root,root) %{_libdir}/qt5/plugins/kf5/org.kde.kcalendarcore.calendars/libakonadicalendarplugin.so
+%ghost %{_libdir}/libKPim5AkonadiCalendar.so.5
+%attr(755,root,root) %{_libdir}/libKPim5AkonadiCalendar.so.*.*.*
 
 %files devel
 %defattr(644,root,root,755)
-%{_includedir}/KF5/Akonadi/Calendar
-%{_includedir}/KF5/akonadi-calendar_version.h
-%{_includedir}/KF5/akonadi/calendar
-%{_libdir}/cmake/KF5AkonadiCalendar
-%attr(755,root,root) %{_libdir}/libKF5AkonadiCalendar.so
 %{_libdir}/qt5/mkspecs/modules/qt_AkonadiCalendar.pri
+%{_includedir}/KPim5/AkonadiCalendar
+%{_libdir}/cmake/KF5AkonadiCalendar
+%{_libdir}/cmake/KPim5AkonadiCalendar
+%{_libdir}/libKPim5AkonadiCalendar.so
This page took 0.307026 seconds and 4 git commands to generate.