From cbf2a64b25968be6be07fb6e0fe7a7cefc3372f4b2d4754d7aadaa6e292fa1ac Mon Sep 17 00:00:00 2001 From: Raymond Wooninck Date: Tue, 15 Dec 2015 19:03:19 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/poxml?expand=0&rev=22 --- poxml.spec | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/poxml.spec b/poxml.spec index 68cd71a..49a8962 100644 --- a/poxml.spec +++ b/poxml.spec @@ -19,7 +19,11 @@ Name: poxml BuildRequires: antlr BuildRequires: antlr-devel -BuildRequires: libkde4-devel +BuildRequires: extra-cmake-modules +BuildRequires: gettext-devel +BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5Xml) +BuildRequires: kdoctools-devel Summary: KDE SDK POXML Package License: GPL-2.0 and GFDL-1.2 Group: System/GUI/KDE @@ -28,7 +32,6 @@ Version: 15.12.0 Release: 0 Source0: %{name}-%{version}.tar.xz BuildRoot: %{_tmppath}/%{name}-%{version}-build -%kde4_runtime_requires %description This package suggests the packages, built from the kdesdk poxml module. @@ -42,14 +45,12 @@ RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mminimal-toc" %endif export CXXFLAGS="$RPM_OPT_FLAGS -fPIC" export CFLAGS="$RPM_OPT_FLAGS -fPIC" - %cmake_kde4 -d build -- -DCMAKE_CXXFLAGS="$RPM_OPT_FLAGS" -DCMAKE_CFLAGS="$RPM_OPT_FLAGS" + %cmake_kf5 -d build -- -DCMAKE_CXXFLAGS="$RPM_OPT_FLAGS" -DCMAKE_CFLAGS="$RPM_OPT_FLAGS" %make_jobs make %install - cd build - %makeinstall - %kde_post_install + %kf5_makeinstall -C build %post -p /sbin/ldconfig @@ -58,28 +59,21 @@ export CFLAGS="$RPM_OPT_FLAGS -fPIC" %clean rm -rf $RPM_BUILD_ROOT -%package -n kde4-l10n-devel +%package -n kde-l10n-devel Summary: KDE SDK Package Group: System/GUI/KDE -%kde4_runtime_requires +Obsoletes: kde4-l10n-devel < %{version} +Provides: kde4-l10n-devel = %{version} -%description -n kde4-l10n-devel +%description -n kde-l10n-devel This package suggests the packages, built from the kdesdk module. -%post -n kde4-l10n-devel -p /sbin/ldconfig +%post -n kde-l10n-devel -p /sbin/ldconfig -%postun -n kde4-l10n-devel -p /sbin/ldconfig +%postun -n kde-l10n-devel -p /sbin/ldconfig -%files -n kde4-l10n-devel +%files -n kde-l10n-devel %defattr(-,root,root) %doc COPYING COPYING.DOC -%{_kde4_bindir}/po2xml -%{_kde4_bindir}/split2po -%{_kde4_bindir}/swappo -%{_kde4_bindir}/xml2pot -%{_mandir}/man1/po2xml.1.gz -%{_mandir}/man1/split2po.1.gz -%{_mandir}/man1/swappo.1.gz -%{_mandir}/man1/xml2pot.1.gz %changelog