From 7bd7df75002e48756af996d66585b2fe09e14bf3a218e91c03c8bf06539cb450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rusmir=20Du=C5=A1ko?= Date: Mon, 13 Oct 2014 21:57:49 +0000 Subject: [PATCH] - Change Source0 to use proper Web URL - Use check for openSUSE %if 0%{?suse_version} - Use for BuildRequires pkgconfig(SDL_net), pkgconfig(sdl) instead of libSDL_net-devel, SDL-devel - Remove BuildRequires for pkgconfig OBS-URL: https://build.opensuse.org/package/show/games/7kaa?expand=0&rev=2 --- 7kaa.changes | 9 +++++++++ 7kaa.spec | 16 +++++++++------- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/7kaa.changes b/7kaa.changes index 71215f2..cc17ef8 100644 --- a/7kaa.changes +++ b/7kaa.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Oct 13 21:53:03 UTC 2014 - nemysis@gmx.ch + +- Change Source0 to use proper Web URL +- Use check for openSUSE %if 0%{?suse_version} +- Use for BuildRequires pkgconfig(SDL_net), pkgconfig(sdl) + instead of libSDL_net-devel, SDL-devel +- Remove BuildRequires for pkgconfig + ------------------------------------------------------------------- Sat Oct 4 21:02:03 UTC 2014 - nemysis@gmx.ch diff --git a/7kaa.spec b/7kaa.spec index 27ccb9b..9d82538 100644 --- a/7kaa.spec +++ b/7kaa.spec @@ -25,17 +25,18 @@ Summary: Seven Kingdoms: Ancient Adversaries License: GPL-2.0 Group: Amusements/Games/StrategyGame Url: http://7kfans.com/ -Source0: http://sourceforge.net/projects/skfans/7KAA%20%{version}/%{name}-source-%{version}.tar.bz2 +Source0: http://downloads.sourceforge.net/7KAA%20%{version}/%{name}-source-%{version}.tar.bz2 Source1: %{name}.png Source2: %{name}.desktop +%if 0%{?suse_version} BuildRequires: desktop-file-utils -BuildRequires: update-desktop-files -BuildRequires: gcc-c++ BuildRequires: fdupes -BuildRequires: pkgconfig -BuildRequires: SDL-devel -BuildRequires: libSDL_net-devel +BuildRequires: update-desktop-files +%endif +BuildRequires: gcc-c++ BuildRequires: openal-soft-devel +BuildRequires: pkgconfig(SDL_net) +BuildRequires: pkgconfig(sdl) Requires: %{name}-music %description @@ -71,9 +72,10 @@ install -Dm 0644 %{S:1} %{buildroot}%{_datadir}/pixmaps/%{name}.png # install Desktop file install -Dm 0644 %{S:2} %{buildroot}%{_datadir}/applications/%{name}.desktop +%if 0%{?suse_version} %suse_update_desktop_file %{name} - %fdupes %{buildroot}%{_prefix} +%endif %files %defattr(-,root,root,-)