- 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
This commit is contained in:
parent
836151082e
commit
43e25ed9c1
@ -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
|
||||
|
||||
|
16
twind.spec
16
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,-)
|
||||
|
Loading…
x
Reference in New Issue
Block a user