File black-box.spec of Package black-box

#
# spec file for package black-box
#
# Copyright (c) 2012 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           black-box
Version:        1.4.8
Release:        0
Summary:        Puzzle Game
License:        GPL-2.0+
Group:          Amusements/Games/Board/Puzzle
Url:            http://www.linux-games.com/black-box/
Source:         %{name}-%{version}.tar.bz2
Patch0:         %{name}-%{version}.patch
Patch1:         %{name}-%{version}-range.patch
BuildRequires:  SDL_image-devel
BuildRequires:  SDL_mixer-devel
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  xorg-x11
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A puzzle game.

%prep
%setup -q
%patch0
%patch1

%build
autoreconf -fi
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog README
%{_bindir}/black-box
%dir %{_datadir}/black-box
%{_datadir}/black-box/*

%changelog
openSUSE Build Service is sponsored by