This commit is contained in:
parent
7a8725351f
commit
afe0fd12cb
@ -14,46 +14,83 @@
|
|||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
%bcond_without lang
|
||||||
|
|
||||||
Name: kgoldrunner
|
Name: kgoldrunner
|
||||||
BuildRequires: libkdegames4-devel
|
Version: 17.07.90
|
||||||
BuildRequires: xz
|
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
|
Summary: Action & Puzzle Solving Game
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: Amusements/Games/Action/Arcade
|
Group: Amusements/Games/Action/Arcade
|
||||||
Url: http://www.kde.org
|
Url: http://www.kde.org
|
||||||
Version: 17.07.90
|
|
||||||
Release: 0
|
|
||||||
Source0: kgoldrunner-%{version}.tar.xz
|
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
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%kde4_runtime_requires
|
Recommends: %{name}-lang
|
||||||
|
|
||||||
%description
|
%description
|
||||||
KGoldrunner is a game of action and puzzle solving
|
KGoldrunner is a game of action and puzzle solving
|
||||||
|
|
||||||
|
%if %{with lang}
|
||||||
|
%lang_package
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n kgoldrunner-%{version}
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake_kde4 -d build
|
%cmake_kf5 -d build
|
||||||
%make_jobs
|
%make_jobs
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd build
|
%kf5_makeinstall -C build
|
||||||
%kde4_makeinstall
|
%if %{with lang}
|
||||||
%suse_update_desktop_file -r KGoldrunner Game ArcadeGame
|
%find_lang %{name} --with-man --all-name
|
||||||
%kde_post_install
|
%kf5_find_htmldocs
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%post
|
||||||
|
%mime_database_post
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%mime_database_postun
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc COPYING COPYING.DOC
|
%doc COPYING COPYING.DOC
|
||||||
%{_kde4_bindir}/kgoldrunner
|
%config %{_kf5_configdir}/kgoldrunner.knsrc
|
||||||
%{_kde4_applicationsdir}/KGoldrunner.desktop
|
%{_kf5_applicationsdir}/org.kde.kgoldrunner.desktop
|
||||||
%{_kde4_htmldir}/en/kgoldrunner/
|
%{_kf5_appstreamdir}/org.kde.kgoldrunner.appdata.xml
|
||||||
%{_kde4_iconsdir}/hicolor/*/apps/kgoldrunner.*
|
%{_kf5_bindir}/kgoldrunner
|
||||||
%{_kde4_appsdir}/kgoldrunner
|
%{_kf5_iconsdir}/hicolor/*/apps/kgoldrunner.*
|
||||||
%{_kde4_configdir}/kgoldrunner.knsrc
|
%{_kf5_kxmlguidir}/kgoldrunner/
|
||||||
|
%{_kf5_sharedir}/kgoldrunner/
|
||||||
|
|
||||||
|
%if %{with lang}
|
||||||
|
%files lang -f %{name}.lang
|
||||||
|
%doc COPYING*
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user