SHA256
1
0
forked from pool/kigo
Christophe Giboudeaux 2017-08-05 20:47:14 +00:00 committed by Git OBS Bridge
parent 0b4d405fd2
commit 9795d73ae0

View File

@ -1,7 +1,7 @@
#
# spec file for package kigo
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 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
@ -15,46 +15,79 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: kigo
BuildRequires: libkdegames4-devel
BuildRequires: xz
%bcond_without lang
Summary: Traditional Chinese Boardgame for KDE
License: GPL-2.0+
Group: Amusements/Games/Board/Other
Name: kigo
Source0: kigo-%{version}.tar.xz
Url: http://www.kde.org
Version: 17.07.90
Release: 0
Source0: kigo-%{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: knewstuff-devel
BuildRequires: ktextwidgets-devel
BuildRequires: kxmlgui-devel
BuildRequires: libkdegames-devel
BuildRequires: pkgconfig(Qt5Svg)
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
Traditional Chinese Boardgame
%if %{with lang}
%lang_package
%endif
%prep
%setup -q -n kigo-%{version}
%setup -q
%build
%cmake_kde4 -d build
%cmake_kf5 -d build
%make_jobs
%install
cd build
%kde4_makeinstall
%suse_update_desktop_file -r kigo Game BoardGame
%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}/kigo
%{_kde4_htmldir}/en/kigo/
%{_kde4_applicationsdir}/kigo.desktop
%{_kde4_iconsdir}/hicolor/*/apps/kigo.*
%{_kde4_appsdir}/kigo/
%{_kde4_configdir}/kigo*.knsrc
%{_kde4_configkcfgdir}/kigo.kcfg
%config %{_kf5_configdir}/kigo*.knsrc
%doc AUTHORS COPYING*
%{_kf5_applicationsdir}/org.kde.kigo.desktop
%{_kf5_appstreamdir}/org.kde.kigo.appdata.xml
%{_kf5_bindir}/kigo
%{_kf5_configkcfgdir}/kigo.kcfg
%{_kf5_htmldir}/en/kigo/
%{_kf5_kxmlguidir}/kigo/
%{_kf5_sharedir}/kigo/
%if %{with lang}
%files lang -f %{name}.lang
%doc COPYING*
%endif
%changelog