2012-12-07 14:33:00 +01:00
#
2012-12-21 09:08:38 +01:00
# spec file for package kpat
2012-12-07 14:33:00 +01:00
#
2015-02-11 16:37:20 +01:00
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
2012-12-07 14:33:00 +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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name : kpat
2012-12-21 09:08:38 +01:00
Summary : Patience card game
2012-12-07 14:33:00 +01:00
License : GPL-2.0+
Group : Amusements/Games/Board/Card
Url : http://www.kde.org
2015-10-11 15:37:13 +02:00
Version : 15.08.2
2012-12-21 09:08:38 +01:00
Release : 0
2012-12-07 14:33:00 +01:00
Source0 : kpat-%{version} .tar.xz
2015-10-04 15:24:06 +02:00
# PATCH-FIX-UPSTREAM create_state_dir.patch boo#948289, kde#350160 -- fixes saving of the game state on exit when the application directory doesn't exist yet
Patch : create_state_dir.patch
2013-01-07 11:04:26 +01:00
BuildRequires : libkdegames-devel
2015-05-11 19:12:59 +02:00
BuildRequires : update-desktop-files
BuildRequires : extra-cmake-modules
BuildRequireS : pkgconfig(Qt5Widgets)
BuildRequires : pkgconfig(Qt5Qml)
BuildRequires : pkgconfig(Qt5Quick)
BuildRequires : pkgconfig(Qt5QuickWidgets)
BuildRequires : pkgconfig(Qt5Svg)
BuildRequires : pkgconfig(Qt5Test)
BuildRequires : kcoreaddons-devel
BuildRequires : kconfig-devel
BuildRequires : kwidgetsaddons-devel
BuildRequires : kdbusaddons-devel
BuildRequires : kdeclarative-devel
BuildRequires : ki18n-devel
BuildRequires : kguiaddons-devel
BuildRequires : kconfigwidgets-devel
BuildRequires : kitemviews-devel
BuildRequires : kcompletion-devel
BuildRequires : ktextwidgets-devel
BuildRequires : kxmlgui-devel
BuildRequires : kio-devel
BuildRequires : knotifyconfig-devel
BuildRequires : knewstuff-devel
BuildRequires : phonon4qt5-devel
BuildRequires : kdelibs4support-devel
2013-01-07 11:04:26 +01:00
Requires(post) : shared-mime-info
Requires(postun) : shared-mime-info
2015-05-11 19:12:59 +02:00
Obsoletes : %{name} 5 < %{version}
Provides : %{name} 5 = %{version}
2012-12-07 14:33:00 +01:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2015-05-11 19:12:59 +02:00
Requires : kdegames-carddecks-default
2012-12-07 14:33:00 +01:00
%description
KPatience is a collection of various patience games known all over the
world. It includes Klondike, Freecell, Yukon, Forty and Eight and many
more. The game has nice graphics and many different carddecks.
%prep
2013-01-07 11:04:26 +01:00
%setup -q
2015-10-04 15:24:06 +02:00
%patch -p1
2012-12-07 14:33:00 +01:00
%build
2015-05-11 19:12:59 +02:00
%cmake_kf5 -d build
2012-12-07 14:33:00 +01:00
%make_jobs
%install
2015-05-11 19:12:59 +02:00
%kf5_makeinstall -C build
%suse_update_desktop_file -r org.kde.kpat Game CardGame
2012-12-07 14:33:00 +01:00
2013-01-07 11:04:26 +01:00
%post
2014-11-19 20:24:16 +01:00
/usr/bin/update-mime-database %{_datadir} /mime > /dev/null 2>&1 || :
2013-01-07 11:04:26 +01:00
%postun
2014-11-19 20:24:16 +01:00
/usr/bin/update-mime-database %{_datadir} /mime > /dev/null 2>&1 || :
2013-01-07 11:04:26 +01:00
%files
2012-12-07 14:33:00 +01:00
%defattr (-,root,root)
%doc COPYING COPYING.DOC
2015-05-11 19:12:59 +02:00
%{_kf5_bindir}/kpat
%{_kf5_htmldir}/en/kpat/
%{_kf5_applicationsdir}/org.kde.kpat.desktop
%dir %{_kf5_iconsdir}/hicolor/24x24
%dir %{_kf5_iconsdir}/hicolor/24x24/apps
%dir %{_kf5_iconsdir}/hicolor/256x256
%dir %{_kf5_iconsdir}/hicolor/256x256/apps
%dir %{_kf5_iconsdir}/hicolor/64x64
%dir %{_kf5_iconsdir}/hicolor/64x64/apps
%{_kf5_iconsdir}/hicolor/*/apps/kpat.*
%{_kf5_appsdir}/kpat/
%{_kf5_libdir}/libkcardgame.so
%dir %{_kf5_configkcfgdir}
%{_kf5_configkcfgdir}/kpat.kcfg
%{_kf5_configdir}/kcardtheme.knsrc
%{_kf5_configdir}/kpat.knsrc
2012-12-07 14:33:00 +01:00
%{_datadir} /mime/packages/kpatience.xml
2015-05-11 19:12:59 +02:00
%_kf5_kxmlguidir/kpat/
2012-12-07 14:33:00 +01:00
%changelog