forked from pool/csmash
6d5e9b9843
Copy from games/csmash based on submit request 29858 from user coolo OBS-URL: https://build.opensuse.org/request/show/29858 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/csmash?expand=0&rev=8
98 lines
2.9 KiB
RPMSpec
98 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package csmash (Version 0.6.6)
|
|
#
|
|
# Copyright (c) 2010 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: csmash
|
|
BuildRequires: SDL_image-devel SDL_mixer-devel fdupes gcc-c++ gtk2-devel libdrm-devel update-desktop-files xorg-x11-devel
|
|
License: GPLv2+
|
|
Group: Amusements/Games/3D/Other
|
|
AutoReqProv: on
|
|
Version: 0.6.6
|
|
Release: 246
|
|
Source: %{name}-%{version}.tar.bz2
|
|
Source1: danslatristesse2-48.ogg
|
|
Source2: %name.desktop
|
|
Patch: %{name}-%{version}.diff
|
|
Patch2: %{name}-%{version}-datadir.diff
|
|
Patch3: %{name}-%{version}-return_value.diff
|
|
Patch4: %{name}-%{version}-qualification.diff
|
|
Patch5: %{name}-%{version}-definitions.diff
|
|
Patch6: %{name}-%{version}-uninitialized.diff
|
|
Url: http://cannonsmash.sourceforge.net/
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Summary: 3D Table Tennis Game
|
|
|
|
%description
|
|
CannonSmash is a 3D table tennis game. The goal of this project is to
|
|
represent various table tennis strategies in a computer game.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
nan@utmc.or.jp
|
|
|
|
%prep
|
|
%setup
|
|
%patch
|
|
%patch2 -p1
|
|
%patch3
|
|
%patch4
|
|
%patch5
|
|
%patch6
|
|
mv README README.jp
|
|
cp README.en README
|
|
%{?suse_update_config:%{suse_update_config -f}}
|
|
|
|
%build
|
|
gettextize -f
|
|
aclocal -I m4
|
|
autoreconf --force --install
|
|
automake
|
|
export CXXFLAGS="$RPM_OPT_FLAGS"
|
|
%if "%(xft-config --prefix)" == "/usr"
|
|
./configure --prefix=%{_prefix} --datadir=%{_datadir} --bindir=%{_bindir} \
|
|
--x-includes=/usr/include --x-libraries=/usr/%_lib
|
|
%else
|
|
./configure --prefix=%{_prefix} --datadir=%{_datadir} --bindir=%{_bindir}
|
|
%endif
|
|
# it is needed to call CXXFLAGS together with make
|
|
# it is not sufficient to export them only
|
|
make %{?jobs:-j%jobs} CXXFLAGS="-I/usr/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT $RPM_OPT_FLAGS"
|
|
|
|
%install
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
cp %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/csmash
|
|
%suse_update_desktop_file -i %name Game SportsGame
|
|
%fdupes -s $RPM_BUILD_ROOT
|
|
%find_lang %{name}
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root,755)
|
|
%{_bindir}/csmash
|
|
#%{_datadir}/locale/*/LC_MESSAGES/csmash.mo
|
|
%{_datadir}/csmash
|
|
%doc README README.jp AUTHORS COPYING CREDITS ChangeLog
|
|
%{_datadir}/applications/%name.desktop
|
|
|
|
%changelog
|