Accepting request 605094 from games

- Disable post/postun scriptlets on suse_version >= 1500: the
  functionality of desktop_database_post/postun and
  icon_theme_cache has been migrated to file triggers.

OBS-URL: https://build.opensuse.org/request/show/605094
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/supertuxkart?expand=0&rev=16
This commit is contained in:
Dominique Leuenberger 2018-05-08 11:38:01 +00:00 committed by Git OBS Bridge
commit 92a567d19d
2 changed files with 16 additions and 9 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon May 7 11:28:46 UTC 2018 - dimstar@opensuse.org
- Disable post/postun scriptlets on suse_version >= 1500: the
functionality of desktop_database_post/postun and
icon_theme_cache has been migrated to file triggers.
-------------------------------------------------------------------
Tue Nov 21 10:26:10 UTC 2017 - dimstar@opensuse.org

View File

@ -1,7 +1,7 @@
#
# spec file for package supertuxkart
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 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
@ -20,14 +20,13 @@ Name: supertuxkart
Version: 0.9.3
Release: 0
Summary: A 3D kart racing game
License: GPL-2.0+ and GPL-3.0+ and CC-BY-SA-3.0
License: GPL-2.0-or-later AND GPL-3.0-or-later AND CC-BY-SA-3.0
Group: Amusements/Games/3D/Race
Url: http://supertuxkart.sourceforge.net/
URL: http://supertuxkart.sourceforge.net/
Source: http://sourceforge.net/projects/supertuxkart/files/SuperTuxKart/0.9.3/%{name}-%{version}-src.tar.xz
# Geeko kart add-on (CC-BY 3.0)
Source1: http://stkaddons.net/dl/14e6ba25b17f0d.zip
Source9: supertuxkart.6
BuildRequires: cmake >= 3
BuildRequires: fdupes
BuildRequires: gcc-c++
@ -47,11 +46,9 @@ BuildRequires: pkgconfig(ogg)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(vorbis)
BuildRequires: pkgconfig(xrandr)
Requires(post): hicolor-icon-theme
Requires(post): update-desktop-files
Requires(postun): hicolor-icon-theme
Requires(postun): update-desktop-files
Requires: %{name}-data = %{version}
Requires(post): hicolor-icon-theme
Requires(postun): hicolor-icon-theme
ExclusiveArch: %{ix86} x86_64
%description
@ -104,6 +101,7 @@ unzip %{SOURCE1}
mkdir -p %{buildroot}%{_mandir}/man6
cp %{SOURCE9} %{buildroot}%{_mandir}/man6
%if 0%{?suse_version} < 1500
%post
%desktop_database_post
%icon_theme_cache_post
@ -111,10 +109,12 @@ cp %{SOURCE9} %{buildroot}%{_mandir}/man6
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files
%defattr(-,root,root)
%doc COPYING README.md CHANGELOG.md
%license COPYING
%doc README.md CHANGELOG.md
%{_bindir}/supertuxkart
%{_mandir}/man?/%{name}.?.*
%dir %{_datadir}/appdata