From 43e25ed9c1927f420f924f8bdd7445c6a20595d8c264716c7e3a14383bad48d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rusmir=20Du=C5=A1ko?= Date: Sun, 12 Oct 2014 21:47:18 +0000 Subject: [PATCH] - Use check for openSUSE %if 0%{?suse_version} - Use BuildRequires pkgconfig(SDL_image),pkgconfig(SDL_mixer, pkgconfig(sdl) instead of libSDL_image-devel, libSDL_mixer-devel, SDL-devel OBS-URL: https://build.opensuse.org/package/show/games/twind?expand=0&rev=3 --- twind.changes | 8 ++++++++ twind.spec | 16 +++++++++------- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/twind.changes b/twind.changes index 698c954..d4d37ad 100644 --- a/twind.changes +++ b/twind.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Sun Oct 12 21:40:41 UTC 2014 - nemysis@gmx.ch + +- Use check for openSUSE %if 0%{?suse_version} +- Use BuildRequires pkgconfig(SDL_image),pkgconfig(SDL_mixer, + pkgconfig(sdl) instead of libSDL_image-devel, libSDL_mixer-devel, + SDL-devel + ------------------------------------------------------------------- Mon Oct 6 21:05:25 UTC 2014 - nemysis@gmx.ch diff --git a/twind.spec b/twind.spec index 9491509..b09e946 100644 --- a/twind.spec +++ b/twind.spec @@ -27,12 +27,14 @@ Source0: %{name}-%{version}.tar.gz Source1: %{name}.desktop # Correct bad code Patch0: twind-1.1.0.twind.c.patch -BuildRequires: SDL-devel +%if 0%{?suse_version} BuildRequires: desktop-file-utils BuildRequires: fdupes -BuildRequires: libSDL_image-devel -BuildRequires: libSDL_mixer-devel BuildRequires: update-desktop-files +%endif +BuildRequires: pkgconfig(SDL_image) +BuildRequires: pkgconfig(SDL_mixer) +BuildRequires: pkgconfig(sdl) %description The object of the game is to remove all of the blocks from the screen @@ -52,7 +54,6 @@ sed -i -e 's|chown |true |g' \ Makefile %build -#configure make %{?_smp_mflags} %install @@ -67,9 +68,10 @@ install -Dm 0644 graphics/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.pn # install Desktop file install -Dm 0644 %{S:1} %{buildroot}%{_datadir}/applications/%{name}.desktop -%suse_update_desktop_file %{name} - -%fdupes -s %{buildroot}%{_prefix} +%if 0%{?suse_version} + %suse_update_desktop_file %{name} + %fdupes -s %{buildroot}%{_prefix} +%endif %files %defattr(-,root,root,-)