File gemdropx.spec of Package gemdropx

#
# spec file for package gemdropx
#
# 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:           gemdropx
BuildRequires:  xorg-x11
BuildRequires:  SDL_mixer-devel
Url:            http://www.newbreedsoftware.com/gemdropx
Version:        0.9
Release:        0
Summary:        A Puzzle Game Similar to Tetris
License:        GPL-2.0
Group:          Amusements/Games/Logic
Source:         gemdropx-%version.tar.gz
Patch0:         gemdropx-Makefile.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Gem Drop X is a fast-paced puzzle game where it is your job to clear
the screen of gems before they squash you.



Authors:
--------
    New Breed Software

%prep
%setup
%patch0
rm -rfv data/images/.xvpics

%build
make %{?_smp_mflags} EXTRA_CFLAGS="$RPM_OPT_FLAGS" CQML_LIB="-L./cqml -lcqml -L/opt/Qtopia/%_lib -lqpe -lqte" DATA_PREFIX=%{_datadir}/gemdropx/data

%install
mkdir -p %{buildroot}%{_datadir}/gemdropx
mkdir -p %{buildroot}%{_bindir}
mv data %{buildroot}%{_datadir}/gemdropx
mv action %{buildroot}%{_datadir}/gemdropx
chmod u+x gemdropx
cp -pv gemdropx %{buildroot}%{_bindir}

%files
%defattr(-,root,root)
%{_bindir}/gemdropx
%{_datadir}/gemdropx/
%doc AUTHORS.txt CHANGES.txt ICON.txt README.txt
%license COPYING.txt

%changelog
openSUSE Build Service is sponsored by