Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37486545
en ru br
ALT Linux repos
S:0.6.6-alt4_32
3.0: 0.6.6-alt1.1

Group :: Games/Other
RPM: csmash

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/gzip gcc-c++ libXext-devel libXi-devel libgtk+2-devel
# END SourceDeps(oneline)
Summary: 3D tabletennis game
Name: csmash
Version: 0.6.6
Release: alt4_32
License: GPLv2+
Group: Games/Other
URL: http://cannonsmash.sourceforge.net/
Source0: http://dl.sf.net/cannonsmash/csmash-%{version}.tar.gz
Source1: csmash-64x64.png
Source2: csmash.desktop
Patch0: csmash-0.6.6-64bit-gcc4-fixes.patch
Patch1: csmash-0.6.6-extraqualif.patch
Patch2: csmash-0.6.6-configure.patch
Patch3: csmash-0.6.6-datadir.patch
Patch4: csmash-0.6.6-alt-gcc8.patch
BuildRequires: gtk2-devel libjpeg-devel zlib-devel gettext
BuildRequires: libSDL-devel >= 1.2.0 libSDL_mixer-devel libSDL_image-devel
BuildRequires: desktop-file-utils
BuildRequires: libXmu-devel libXt-devel libICE-devel libX11-devel
BuildRequires: libGL-devel libGLU-devel
# Required for autoreconf
BuildRequires: autoconf automake gettext-devel
Source44: import.info

%description
CannonSmash is a 3D tabletennis game. The goal of this project is to
represent various strategy of tabletennis on computer game.
This program requires OpenGL and SDL. If your machine doesn't have 3D
accelaration video card, this program runs very slowly.


%prep
%setup -q
%patch0 -p1 -b .64bit-gcc4
%patch1 -p1 -b .extraqualif
%patch2 -p1 -b .configure
%patch3 -p1 -b .datadir
%patch4 -p2
autoreconf --force --install -Im4
# Convert to UTF-8 while keeping the original timestamps
iconv -f iso8859-1 -t utf-8 README > tmp
touch -r README tmp
mv -f tmp README
chmod 0644 README


%build
%configure --disable-dependency-tracking
%{__make} %{?_smp_mflags}


%install
%{__make} install DESTDIR=%{buildroot}
%find_lang %{name}

# Install the menu entry icon

%{__install} -D -p -m 0644 %{SOURCE1} \
   %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/csmash.png

# Now the menu entry

%{__mkdir_p} %{buildroot}%{_datadir}/applications
desktop-file-install \
   --vendor "" \
   --dir %{buildroot}%{_datadir}/applications \
   %{SOURCE2}


%files -f %{name}.lang
%doc AUTHORS COPYING CREDITS ChangeLog README README.en
%{_bindir}/csmash
%{_datadir}/applications/csmash.desktop
%{_datadir}/icons/hicolor/64x64/apps/csmash.png
%{_datadir}/csmash/


%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin