Christophe Giboudeaux 2017-08-05 20:22:51 +00:00 committed by Git OBS Bridge
parent 7a8725351f
commit afe0fd12cb

View File

@ -14,46 +14,83 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%bcond_without lang
Name: kgoldrunner
BuildRequires: libkdegames4-devel
BuildRequires: xz
Version: 17.07.90
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: Action & Puzzle Solving Game
License: GPL-2.0+
Group: Amusements/Games/Action/Arcade
Url: http://www.kde.org
Version: 17.07.90
Release: 0
Source0: kgoldrunner-%{version}.tar.xz
BuildRequires: extra-cmake-modules
BuildRequires: kconfig-devel
BuildRequires: kconfigwidgets-devel
BuildRequires: kcoreaddons-devel
BuildRequires: kcrash-devel
BuildRequires: kdbusaddons-devel
BuildRequires: kdoctools-devel
BuildRequires: ki18n-devel
BuildRequires: kio-devel
BuildRequires: kxmlgui-devel
BuildRequires: libkdegames-devel
BuildRequires: phonon4qt5-devel
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(Qt5QuickWidgets)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Widgets)
Requires(post): shared-mime-info
Requires(postun): shared-mime-info
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
Recommends: %{name}-lang
%description
KGoldrunner is a game of action and puzzle solving
%if %{with lang}
%lang_package
%endif
%prep
%setup -q -n kgoldrunner-%{version}
%setup -q
%build
%cmake_kde4 -d build
%cmake_kf5 -d build
%make_jobs
%install
cd build
%kde4_makeinstall
%suse_update_desktop_file -r KGoldrunner Game ArcadeGame
%kde_post_install
%kf5_makeinstall -C build
%if %{with lang}
%find_lang %{name} --with-man --all-name
%kf5_find_htmldocs
%endif
%post
%mime_database_post
%postun
%mime_database_postun
%files
%defattr(-,root,root)
%doc COPYING COPYING.DOC
%{_kde4_bindir}/kgoldrunner
%{_kde4_applicationsdir}/KGoldrunner.desktop
%{_kde4_htmldir}/en/kgoldrunner/
%{_kde4_iconsdir}/hicolor/*/apps/kgoldrunner.*
%{_kde4_appsdir}/kgoldrunner
%{_kde4_configdir}/kgoldrunner.knsrc
%config %{_kf5_configdir}/kgoldrunner.knsrc
%{_kf5_applicationsdir}/org.kde.kgoldrunner.desktop
%{_kf5_appstreamdir}/org.kde.kgoldrunner.appdata.xml
%{_kf5_bindir}/kgoldrunner
%{_kf5_iconsdir}/hicolor/*/apps/kgoldrunner.*
%{_kf5_kxmlguidir}/kgoldrunner/
%{_kf5_sharedir}/kgoldrunner/
%if %{with lang}
%files lang -f %{name}.lang
%doc COPYING*
%endif
%changelog