2012-12-07 14:30:55 +01:00
|
|
|
#
|
2012-12-21 09:04:00 +01:00
|
|
|
# spec file for package knavalbattle
|
2012-12-07 14:30:55 +01:00
|
|
|
#
|
2017-08-12 00:57:44 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-12-07 14:30:55 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2017-04-20 10:34:59 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2012-12-07 14:30:55 +01:00
|
|
|
#
|
|
|
|
|
2017-08-12 00:57:44 +02:00
|
|
|
|
2017-04-15 15:28:30 +02:00
|
|
|
%bcond_without lang
|
2012-12-07 14:30:55 +01:00
|
|
|
|
|
|
|
Name: knavalbattle
|
2018-11-09 23:51:09 +01:00
|
|
|
Version: 18.08.3
|
2016-12-03 15:47:00 +01:00
|
|
|
Release: 0
|
|
|
|
%define kf5_version 5.26.0
|
2017-08-12 00:57:44 +02:00
|
|
|
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
|
2018-07-28 15:39:09 +02:00
|
|
|
%{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
|
2016-12-03 15:47:00 +01:00
|
|
|
Summary: Battleship game
|
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Amusements/Games/Board/Other
|
|
|
|
Url: http://www.kde.org
|
|
|
|
Source0: knavalbattle-%{version}.tar.xz
|
2015-12-15 16:32:31 +01:00
|
|
|
BuildRequires: extra-cmake-modules
|
|
|
|
BuildRequires: kconfig-devel
|
2016-12-03 15:47:00 +01:00
|
|
|
BuildRequires: kconfigwidgets-devel
|
2015-12-15 16:32:31 +01:00
|
|
|
BuildRequires: kcoreaddons-devel
|
2016-12-03 15:47:00 +01:00
|
|
|
BuildRequires: kdeclarative-devel
|
|
|
|
BuildRequires: kdelibs4support-devel
|
2015-12-15 16:32:31 +01:00
|
|
|
BuildRequires: kdnssd-framework-devel
|
2016-12-03 15:47:00 +01:00
|
|
|
BuildRequires: kdoctools-devel
|
2015-12-15 16:32:31 +01:00
|
|
|
BuildRequires: kguiaddons-devel
|
2016-12-03 15:47:00 +01:00
|
|
|
BuildRequires: ki18n-devel
|
2015-12-15 16:32:31 +01:00
|
|
|
BuildRequires: kiconthemes-devel
|
|
|
|
BuildRequires: kio-devel
|
2016-12-03 15:47:00 +01:00
|
|
|
BuildRequires: kitemviews-devel
|
2015-12-15 16:32:31 +01:00
|
|
|
BuildRequires: knewstuff-devel
|
2016-12-03 15:47:00 +01:00
|
|
|
BuildRequires: knotifyconfig-devel
|
2015-12-15 16:32:31 +01:00
|
|
|
BuildRequires: ktextwidgets-devel
|
2016-12-03 15:47:00 +01:00
|
|
|
BuildRequires: kwidgetsaddons-devel
|
|
|
|
BuildRequires: kxmlgui-devel
|
|
|
|
BuildRequires: libkdegames-devel
|
|
|
|
BuildRequires: phonon4qt5-devel
|
|
|
|
BuildRequires: pkgconfig
|
2015-12-15 16:32:31 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2016-12-03 15:47:00 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5QuickWidgets)
|
|
|
|
BuildRequires: pkgconfig(Qt5Svg)
|
|
|
|
BuildRequires: pkgconfig(Qt5Test)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
|
|
Provides: knavalbattle5 = %{version}
|
|
|
|
Obsoletes: knavalbattle5 < %{version}
|
2017-08-12 00:57:44 +02:00
|
|
|
%if %{with lang}
|
2017-04-20 10:49:23 +02:00
|
|
|
Recommends: %{name}-lang
|
2017-08-12 00:57:44 +02:00
|
|
|
%endif
|
2012-12-07 14:30:55 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
KBatteship is a KDE implentation of the popular game "Battleship" where
|
|
|
|
you have to try to sink the opponents ships. The game can also be
|
|
|
|
played with friends online via the internet.
|
|
|
|
|
2017-04-15 15:28:30 +02:00
|
|
|
%if %{with lang}
|
|
|
|
%lang_package
|
|
|
|
%endif
|
|
|
|
|
2012-12-07 14:30:55 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n knavalbattle-%{version}
|
|
|
|
|
|
|
|
%build
|
2015-12-15 16:32:31 +01:00
|
|
|
%cmake_kf5 -d build
|
2012-12-07 14:30:55 +01:00
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
2015-12-15 16:32:31 +01:00
|
|
|
%kf5_makeinstall -C build
|
2017-04-15 15:28:30 +02:00
|
|
|
%if %{with lang}
|
|
|
|
%find_lang %{name} --with-man --all-name
|
|
|
|
%kf5_find_htmldocs
|
|
|
|
%endif
|
2015-12-15 16:32:31 +01:00
|
|
|
%suse_update_desktop_file -r org.kde.knavalbattle Game BoardGame
|
2012-12-07 14:30:55 +01:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2016-12-03 15:47:00 +01:00
|
|
|
%files
|
2012-12-07 14:30:55 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING COPYING.DOC
|
2017-08-06 01:27:33 +02:00
|
|
|
%dir %{_kf5_appsdir}/kconf_update
|
2017-08-12 00:57:44 +02:00
|
|
|
%doc %lang(en) %{_kf5_htmldir}/en/knavalbattle/
|
2015-12-15 16:32:31 +01:00
|
|
|
%{_kf5_applicationsdir}/org.kde.knavalbattle.desktop
|
2017-08-06 01:27:33 +02:00
|
|
|
%{_kf5_appsdir}/kconf_update/knavalbattle.upd
|
|
|
|
%{_kf5_appsdir}/knavalbattle/
|
|
|
|
%{_kf5_appstreamdir}/org.kde.knavalbattle.appdata.xml
|
|
|
|
%{_kf5_bindir}/knavalbattle
|
2015-12-15 16:32:31 +01:00
|
|
|
%{_kf5_iconsdir}/hicolor/*/apps/knavalbattle.*
|
2017-08-06 01:27:33 +02:00
|
|
|
%{_kf5_kxmlguidir}/knavalbattle/
|
2017-08-12 00:57:44 +02:00
|
|
|
%{_kf5_servicesdir}/knavalbattle.protocol
|
2012-12-07 14:30:55 +01:00
|
|
|
|
2017-04-15 15:28:30 +02:00
|
|
|
%if %{with lang}
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%doc COPYING*
|
|
|
|
%endif
|
|
|
|
|
2012-12-07 14:30:55 +01:00
|
|
|
%changelog
|