2012-12-07 14:16:56 +01:00
|
|
|
#
|
2012-12-20 15:26:14 +01:00
|
|
|
# spec file for package kapman
|
2012-12-07 14:16:56 +01:00
|
|
|
#
|
2017-08-12 00:54:03 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-12-07 14:16:56 +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:32:40 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2012-12-07 14:16:56 +01:00
|
|
|
#
|
|
|
|
|
2017-08-12 00:54:03 +02:00
|
|
|
|
2017-04-15 15:28:01 +02:00
|
|
|
%bcond_without lang
|
2012-12-07 14:16:56 +01:00
|
|
|
|
|
|
|
Name: kapman
|
2018-06-09 18:18:49 +02:00
|
|
|
Version: 18.04.2
|
2016-12-03 16:14:04 +01:00
|
|
|
Release: 0
|
|
|
|
%define kf5_version 5.26.0
|
2017-08-12 00:54:03 +02:00
|
|
|
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
|
2016-12-03 16:14:04 +01:00
|
|
|
%{!?_kapp_version: %global _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
|
|
|
|
Summary: Pac-Man-like game for KDE
|
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/GUI/KDE
|
|
|
|
Url: http://www.kde.org
|
|
|
|
Source0: kapman-%{version}.tar.xz
|
2015-05-11 17:36:55 +02:00
|
|
|
BuildRequires: extra-cmake-modules
|
|
|
|
BuildRequires: kconfig-devel
|
2016-12-03 16:14:04 +01:00
|
|
|
BuildRequires: kconfigwidgets-devel
|
2015-05-11 17:36:55 +02:00
|
|
|
BuildRequires: kcoreaddons-devel
|
2016-12-03 16:14:04 +01:00
|
|
|
BuildRequires: kdelibs4support-devel
|
2015-05-11 17:36:55 +02:00
|
|
|
BuildRequires: kguiaddons-devel
|
2016-12-03 16:14:04 +01:00
|
|
|
BuildRequires: ki18n-devel
|
2015-05-11 17:36:55 +02:00
|
|
|
BuildRequires: kiconthemes-devel
|
|
|
|
BuildRequires: kio-devel
|
2016-12-03 16:14:04 +01:00
|
|
|
BuildRequires: kitemviews-devel
|
2015-05-11 17:36:55 +02:00
|
|
|
BuildRequires: knewstuff-devel
|
2016-12-03 16:14:04 +01:00
|
|
|
BuildRequires: knotifyconfig-devel
|
|
|
|
BuildRequires: kwidgetsaddons-devel
|
|
|
|
BuildRequires: kxmlgui-devel
|
|
|
|
BuildRequires: libkdegames-devel
|
2015-05-11 17:36:55 +02:00
|
|
|
BuildRequires: phonon4qt5-devel
|
2016-12-03 16:14:04 +01:00
|
|
|
BuildRequires: pkgconfig
|
2015-05-11 17:36:55 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2016-12-03 16:14:04 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5QuickWidgets)
|
|
|
|
BuildRequires: pkgconfig(Qt5Svg)
|
|
|
|
BuildRequires: pkgconfig(Qt5Test)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
2015-05-11 17:36:55 +02:00
|
|
|
Obsoletes: %{name}5 < %{version}
|
|
|
|
Provides: %{name}5 = %{version}
|
2017-08-12 00:54:03 +02:00
|
|
|
%if %{with lang}
|
2017-04-20 10:46:26 +02:00
|
|
|
Recommends: %{name}-lang
|
2017-08-12 00:54:03 +02:00
|
|
|
%endif
|
2012-12-07 14:16:56 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Kapman is a clone of the well known game Pac-Man. You must go through the levels escaping ghosts in a maze. You lose a life when a ghost eats you, but you can eat the ghosts for a few seconds when eating an energizer. You win points when eating pills, energizers, and bonus, and you win one life for each 10,000 points. When you have eaten all the pills and energizers of a level, you go to the next level, and the player and ghost speeds increase. The game ends when you have lost all your lives.
|
|
|
|
|
2017-04-15 15:28:01 +02:00
|
|
|
%if %{with lang}
|
|
|
|
%lang_package
|
|
|
|
%endif
|
|
|
|
|
2012-12-07 14:16:56 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n kapman-%{version}
|
|
|
|
|
|
|
|
%build
|
2015-05-11 17:36:55 +02:00
|
|
|
%cmake_kf5 -d build
|
2012-12-07 14:16:56 +01:00
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
2015-05-11 17:36:55 +02:00
|
|
|
%kf5_makeinstall -C build
|
2017-04-15 15:28:01 +02:00
|
|
|
%if %{with lang}
|
|
|
|
%find_lang %{name} --with-man --all-name
|
|
|
|
%kf5_find_htmldocs
|
|
|
|
%endif
|
2015-05-11 17:36:55 +02:00
|
|
|
%suse_update_desktop_file -r org.kde.kapman Game ArcadeGame
|
2012-12-07 14:16:56 +01:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2016-12-03 16:14:04 +01:00
|
|
|
%files
|
2012-12-07 14:16:56 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING COPYING.DOC
|
2017-08-12 00:54:03 +02:00
|
|
|
%{_kf5_sharedir}/sounds/kapman/
|
2015-05-11 17:36:55 +02:00
|
|
|
%{_kf5_applicationsdir}/org.kde.kapman.desktop
|
|
|
|
%{_kf5_appsdir}/kapman/
|
2016-12-03 16:14:04 +01:00
|
|
|
%{_kf5_appstreamdir}/
|
2017-08-12 00:54:03 +02:00
|
|
|
%{_kf5_bindir}/kapman
|
|
|
|
%doc %lang(en) %{_kf5_htmldir}/en/kapman/
|
|
|
|
%{_kf5_iconsdir}/hicolor/*/apps/kapman.*
|
|
|
|
%{_kf5_kxmlguidir}/kapman/
|
2012-12-07 14:16:56 +01:00
|
|
|
|
2017-04-15 15:28:01 +02:00
|
|
|
%if %{with lang}
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%doc COPYING*
|
|
|
|
%endif
|
|
|
|
|
2012-12-07 14:16:56 +01:00
|
|
|
%changelog
|