2007-01-16 00:08:11 +01:00
|
|
|
#
|
|
|
|
# spec file for package csmash (Version 0.6.6)
|
|
|
|
#
|
2010-01-21 13:14:21 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:08:11 +01:00
|
|
|
#
|
2009-06-18 17:06:03 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:08:11 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2010-11-10 21:01:02 +01:00
|
|
|
|
|
|
|
|
2007-01-16 00:08:11 +01:00
|
|
|
Name: csmash
|
|
|
|
Version: 0.6.6
|
2010-11-10 21:01:02 +01:00
|
|
|
Release: 254
|
2010-11-10 21:00:53 +01:00
|
|
|
License: GPLv2+
|
|
|
|
Summary: 3D Table Tennis Game
|
|
|
|
Url: http://cannonsmash.sourceforge.net/
|
|
|
|
Group: Amusements/Games/3D/Other
|
2007-01-16 00:08:11 +01:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
Source1: danslatristesse2-48.ogg
|
2010-11-10 21:00:53 +01:00
|
|
|
Source2: %{name}.desktop
|
|
|
|
Patch0: %{name}-%{version}.diff
|
|
|
|
Patch1: %{name}-%{version}-datadir.diff
|
|
|
|
Patch2: %{name}-%{version}-return_value.diff
|
|
|
|
Patch3: %{name}-%{version}-qualification.diff
|
|
|
|
Patch4: %{name}-%{version}-definitions.diff
|
|
|
|
Patch5: %{name}-%{version}-uninitialized.diff
|
|
|
|
BuildRequires: SDL-devel
|
|
|
|
BuildRequires: SDL_image-devel
|
|
|
|
BuildRequires: SDL_mixer-devel
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gtk2-devel
|
|
|
|
BuildRequires: libdrm-devel
|
|
|
|
BuildRequires: xorg-x11-devel
|
|
|
|
BuildRequires: Mesa-devel
|
2007-01-16 00:08:11 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
CannonSmash is a 3D table tennis game. The goal of this project is to
|
|
|
|
represent various table tennis strategies in a computer game.
|
|
|
|
|
|
|
|
%prep
|
2010-11-10 21:00:53 +01:00
|
|
|
%setup -q
|
|
|
|
%patch0
|
|
|
|
%patch1
|
|
|
|
%patch2
|
2007-01-16 00:08:11 +01:00
|
|
|
%patch3
|
|
|
|
%patch4
|
2007-10-26 01:42:30 +02:00
|
|
|
%patch5
|
2007-01-16 00:08:11 +01:00
|
|
|
mv README README.jp
|
2010-11-10 21:00:53 +01:00
|
|
|
mv README.en README
|
2007-01-16 00:08:11 +01:00
|
|
|
|
|
|
|
%build
|
2010-11-10 21:00:53 +01:00
|
|
|
%configure \
|
|
|
|
--x-includes=%{_includedir} \
|
|
|
|
--x-libraries=%{_libdir}
|
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:08:11 +01:00
|
|
|
|
|
|
|
%install
|
2010-11-10 21:00:53 +01:00
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
cp %{SOURCE1} %{buildroot}%{_datadir}/csmash
|
|
|
|
%fdupes %{buildroot}%{_datadir}
|
|
|
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE2}
|
2007-11-12 21:44:33 +01:00
|
|
|
%find_lang %{name}
|
2007-01-16 00:08:11 +01:00
|
|
|
|
|
|
|
%clean
|
2010-11-10 21:00:53 +01:00
|
|
|
rm -rf %{buildroot}
|
2007-01-16 00:08:11 +01:00
|
|
|
|
2007-11-12 21:44:33 +01:00
|
|
|
%files -f %{name}.lang
|
2007-01-16 00:08:11 +01:00
|
|
|
%defattr(-,root,root,755)
|
2007-11-12 21:44:33 +01:00
|
|
|
%doc README README.jp AUTHORS COPYING CREDITS ChangeLog
|
2010-11-10 21:00:53 +01:00
|
|
|
%{_bindir}/csmash
|
|
|
|
%{_datadir}/csmash/
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2009-06-18 17:06:03 +02:00
|
|
|
|
2007-03-23 22:04:19 +01:00
|
|
|
%changelog
|