diff --git a/kf5-ktexteditor.spec b/kf5-ktexteditor.spec index ba17a21..00ccbd0 100644 --- a/kf5-ktexteditor.spec +++ b/kf5-ktexteditor.spec @@ -38,9 +38,13 @@ BuildRequires: kf5-kparts-devel >= %{majmin} BuildRequires: kf5-rpm-macros >= %{majmin} BuildRequires: kf5-sonnet-devel >= %{majmin} BuildRequires: kf5-syntax-highlighting-devel >= %{majmin} -BuildRequires: qt5-qtbase-devel -BuildRequires: qt5-qtscript-devel -BuildRequires: qt5-qtxmlpatterns-devel + +BuildRequires: cmake(Qt5Widgets) +BuildRequires: cmake(Qt5PrintSupport) +BuildRequires: cmake(Qt5Qml) +BuildRequires: cmake(Qt5Xml) +BuildRequires: cmake(Qt5XmlPatterns) + %if 0%{?fedora} >= 22 BuildRequires: libgit2-devel >= 0.22.0 %endif @@ -50,8 +54,6 @@ BuildRequires: time BuildRequires: xorg-x11-server-Xvfb %endif -Requires: kf5-filesystem >= %{version} - %description KTextEditor provides a powerful text editor component that you can embed in your application, either as a KPart or using the KF5::TextEditor library (if you need @@ -65,7 +67,8 @@ IDE. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: kf5-kparts-devel >= %{version} +Requires: cmake(KF5Parts) +Requires: kf5-kparts-devel >= %{majmin} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. @@ -88,7 +91,7 @@ make %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} -%find_lang ktexteditor5_qt --with-qt --all-name +%find_lang %{name} --all-name --with-qt # create/own dirs mkdir -p %{buildroot}%{_kf5_qtplugindir}/ktexteditor @@ -107,7 +110,7 @@ make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform} ||: %post -p /sbin/ldconfig %postun -p /sbin/ldconfig -%files -f ktexteditor5_qt.lang +%files -f %{name}.lang %doc README.md %license COPYING.LIB %{_kf5_libdir}/libKF5TextEditor.so.*