-%define kdeframever 5.90
-%define qtver 5.9.0
+#
+# Conditional build:
+%bcond_with tests # build with tests
+%define kdeframever 5.96
+%define qtver 5.15.2
%define kfname plasma-framework
Summary: The foundations that can be used to build a primary user interface
Name: kf5-%{kfname}
-Version: 5.90.0
+Version: 5.96.0
Release: 1
License: LGPL v2.1+
Group: X11/Libraries
Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
-# Source0-md5: f95f84b9935ce9f6727094519721f855
-Patch0: egl.patch
+# Source0-md5: 4ddcf5724874d1999ee73e1c93422f2b
URL: http://www.kde.org/
BuildRequires: EGL-devel
BuildRequires: OpenGL-devel
%prep
%setup -q -n %{kfname}-%{version}
-%patch0 -p1
%build
install -d build
cd build
%cmake -G Ninja \
+ %{!?with_tests:-DBUILD_TESTING=OFF} \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
../
%ninja_build
+%if %{with tests}
+ctest
+%endif
+
+
%install
rm -rf $RPM_BUILD_ROOT
%ninja_install -C build
%dir %{_libdir}/qt5/qml/org/kde/plasma/platformcomponents
%attr(755,root,root) %{_libdir}/qt5/qml/org/kde/plasma/platformcomponents/libplatformcomponentsplugin.so
%{_libdir}/qt5/qml/org/kde/plasma/platformcomponents/qmldir
-%{_datadir}/kservices5/plasma-scriptengine-applet-declarative.desktop
%{_datadir}/kservicetypes5/plasma-applet.desktop
%{_datadir}/kservicetypes5/plasma-containment.desktop
%{_datadir}/kservicetypes5/plasma-containmentactions.desktop
%{_libdir}/qt5/qml/QtQuick/Controls.2/Plasma/private/IconLabel.qml
%{_libdir}/qt5/qml/org/kde/plasma/components.3/private/IconLabel.qml
+%{_libdir}/qt5/qml/org/kde/plasma/extras/ActionTextField.qml
+%{_libdir}/qt5/qml/org/kde/plasma/extras/Highlight.qml
+%{_libdir}/qt5/qml/org/kde/plasma/extras/PasswordField.qml
+%{_libdir}/qt5/qml/org/kde/plasma/extras/SearchField.qml
+
%files devel
%defattr(644,root,root,755)
%{_includedir}/KF5/Plasma
%{_includedir}/KF5/plasma
%{_includedir}/KF5/PlasmaQuick
%{_includedir}/KF5/plasmaquick
-%{_includedir}/KF5/plasma_version.h
%{_libdir}/cmake/KF5Plasma
%{_libdir}/cmake/KF5PlasmaQuick
%{_libdir}/libKF5Plasma.so