diff --git a/kpat-4.9.95.tar.xz b/kpat-4.9.95.tar.xz deleted file mode 100644 index 006964c..0000000 --- a/kpat-4.9.95.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d2744238302cccb38929661e96ba55589cc1bc81e0251d5927dc0840a69b6780 -size 3089052 diff --git a/kpat-4.9.97.tar.xz b/kpat-4.9.97.tar.xz new file mode 100644 index 0000000..cb8116a --- /dev/null +++ b/kpat-4.9.97.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5258b216172482bd7b8c446633f32c284970344da18348e897dc2d5acc31070 +size 3089164 diff --git a/kpat.changes b/kpat.changes index bf2ed3a..01ff6d6 100644 --- a/kpat.changes +++ b/kpat.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Sat Jan 5 18:32:08 UTC 2013 - asterios.dramis@gmail.com + +- Added update-mime-database %post/%postun scripts for the mime file + installed by the package. + +------------------------------------------------------------------- +Thu Jan 3 21:50:41 UTC 2013 - tittiatcoke@gmail.com + +- Update to 4.9.97 + * This is the second RC release for 4.10. Contains bugfixes + ------------------------------------------------------------------- Wed Dec 19 19:15:06 UTC 2012 - tittiatcoke@gmail.com diff --git a/kpat.spec b/kpat.spec index 768c7ee..ab66b88 100644 --- a/kpat.spec +++ b/kpat.spec @@ -1,7 +1,7 @@ # # spec file for package kpat # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,15 +17,17 @@ Name: kpat -BuildRequires: libkdegames-devel -BuildRequires: xz Summary: Patience card game License: GPL-2.0+ Group: Amusements/Games/Board/Card Url: http://www.kde.org -Version: 4.9.95 +Version: 4.9.97 Release: 0 Source0: kpat-%{version}.tar.xz +BuildRequires: libkdegames-devel +BuildRequires: xz +Requires(post): shared-mime-info +Requires(postun): shared-mime-info BuildRoot: %{_tmppath}/%{name}-%{version}-build %kde4_runtime_requires @@ -35,24 +37,33 @@ world. It includes Klondike, Freecell, Yukon, Forty and Eight and many more. The game has nice graphics and many different carddecks. %prep -%setup -q -n kpat-%{version} +%setup -q %build %cmake_kde4 -d build %make_jobs %install - cd build - %kde4_makeinstall + %kde4_makeinstall -C build %suse_update_desktop_file -r kpat Game CardGame %kde_post_install -%files +%post +/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || : + +%postun +/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || : + +%files %defattr(-,root,root) %doc COPYING COPYING.DOC %{_kde4_bindir}/kpat %{_kde4_htmldir}/en/kpat/ %{_kde4_applicationsdir}/kpat.desktop +%dir %{_kde4_iconsdir}/hicolor/24x24 +%dir %{_kde4_iconsdir}/hicolor/24x24/apps +%dir %{_kde4_iconsdir}/hicolor/256x256 +%dir %{_kde4_iconsdir}/hicolor/256x256/apps %{_kde4_iconsdir}/hicolor/*/apps/kpat.* %{_kde4_appsdir}/kpat/ %{_kde4_libdir}/libkcardgame.so