diff --git a/ksirk.spec b/ksirk.spec index 0fb413e..5a47f11 100644 --- a/ksirk.spec +++ b/ksirk.spec @@ -1,7 +1,7 @@ # # spec file for package ksirk # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,51 +17,18 @@ Name: ksirk -Version: 17.03.80 -Release: 0 -%define kf5_version 5.26.0 -# Latest stable Applications (e.g. 16.08 in KA, but 16.11.80 in KUA) -%{!?_kapp_version: %global _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')} Summary: Risk-like game for KDE License: GPL-2.0+ and LGPL-2.0+ Group: Amusements/Games/Strategy/Turn Based Url: http://www.kde.org +Version: 17.03.80 +Release: 0 Source0: ksirk-%{version}.tar.xz -BuildRequires: extra-cmake-modules -BuildRequires: kcompletion-devel -BuildRequires: kconfig-devel -BuildRequires: kconfigwidgets-devel -BuildRequires: kcoreaddons-devel -BuildRequires: kcrash-devel -BuildRequires: kdbusaddons-devel -BuildRequires: kdeclarative-devel -BuildRequires: kdelibs4support-devel -BuildRequires: kdoctools-devel -BuildRequires: kguiaddons-devel -BuildRequires: ki18n-devel -BuildRequires: kiconthemes-devel -BuildRequires: kio-devel -BuildRequires: kitemviews-devel -BuildRequires: knewstuff-devel -BuildRequires: knotifyconfig-devel -BuildRequires: ktextwidgets-devel -BuildRequires: kwallet-devel -BuildRequires: kwidgetsaddons-devel -BuildRequires: kxmlgui-devel -BuildRequires: libkdegames-devel -BuildRequires: libqca-qt5-devel -BuildRequires: phonon4qt5-devel -BuildRequires: pkgconfig -BuildRequires: update-desktop-files -BuildRequires: pkgconfig(Qt5Qml) -BuildRequires: pkgconfig(Qt5Quick) -BuildRequires: pkgconfig(Qt5QuickWidgets) -BuildRequires: pkgconfig(Qt5Svg) -BuildRequires: pkgconfig(Qt5Test) -BuildRequires: pkgconfig(Qt5Widgets) -Obsoletes: ksirk5 < %{version} -Provides: ksirk5 = %{version} +BuildRequires: libkdegames4-devel +BuildRequires: libqca2-devel +BuildRequires: xz BuildRoot: %{_tmppath}/%{name}-%{version}-build +%kde4_runtime_requires %description KsirK is a computerized version of a well known strategy game. @@ -70,34 +37,33 @@ KsirK is a computerized version of a well known strategy game. %setup -q %build - %cmake_kf5 -d build + %cmake_kde4 -d build %make_jobs %install - %kf5_makeinstall -C build - rm %{buildroot}%{_kf5_libdir}/libiris_ksirk.so + %kde4_makeinstall -C build + rm %{buildroot}%{_kde4_libdir}/libiris_ksirk.so + %kde_post_install %post -p /sbin/ldconfig + %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc COPYING COPYING.DOC COPYING.LIB -%{_kf5_bindir}/ksirk -%{_kf5_bindir}/ksirkskineditor -%{_kf5_htmldir}/en/ksirk/ -%{_kf5_htmldir}/en/ksirkskineditor/ -%{_kf5_applicationsdir}/org.kde.ksirk.desktop -%{_kf5_applicationsdir}/org.kde.ksirkskineditor.desktop -%{_kf5_iconsdir}/hicolor/*/apps/ksirk.* -%{_kf5_iconsdir}/locolor/*/apps/ksirk.* -%{_datadir}/ksirk/ -%{_datadir}/ksirkskineditor/ -%{_kf5_libdir}/libiris_ksirk.so.* -%dir %{_kf5_configkcfgdir} -%{_kf5_configkcfgdir}/ksirk*.kcfg -%{_kf5_configdir}/ksirk.knsrc -%{_kf5_kxmlguidir}/ksirk/ -%{_kf5_kxmlguidir}/ksirkskineditor/ +%{_kde4_bindir}/ksirk +%{_kde4_bindir}/ksirkskineditor +%{_kde4_htmldir}/en/ksirk/ +%{_kde4_htmldir}/en/ksirkskineditor/ +%{_kde4_applicationsdir}/ksirk.desktop +%{_kde4_applicationsdir}/ksirkskineditor.desktop +%{_kde4_iconsdir}/hicolor/*/apps/ksirk.* +%{_kde4_iconsdir}/locolor/*/apps/ksirk.* +%{_kde4_appsdir}/ksirk/ +%{_kde4_appsdir}/ksirkskineditor/ +%{_kde4_libdir}/libiris_ksirk.so.* +%{_kde4_configkcfgdir}/ksirk*.kcfg +%{_kde4_configdir}/ksirk.knsrc %changelog