2009-01-26 14:16:30 +01:00
|
|
|
#
|
2011-09-01 07:16:20 +02:00
|
|
|
# spec file for package ltris (Version 1.0.17)
|
2009-01-26 14:16:30 +01:00
|
|
|
#
|
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
Name: ltris
|
|
|
|
BuildRequires: SDL_mixer-devel update-desktop-files
|
|
|
|
License: GPL v2 or later
|
|
|
|
Group: Amusements/Games/Logic
|
|
|
|
Summary: Tetris Clone with Multiplayer and CPU Opponents
|
2011-09-01 07:16:20 +02:00
|
|
|
Version: 1.0.17
|
2009-01-26 14:16:30 +01:00
|
|
|
Release: 1
|
|
|
|
Url: http://lgames.sourceforge.net/index.php?project=LTris
|
2009-11-07 22:56:45 +01:00
|
|
|
# http://prdownloads.sourceforge.net/lgames/ltris-%{version}.tar.gz
|
2009-01-26 14:16:30 +01:00
|
|
|
Source: ltris-%{version}.tar.bz2
|
|
|
|
Source1: %{name}.desktop
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
LTris is a very polished Tetris clone. It is highly configurable due to
|
|
|
|
its menu. It offers the well-known game type Classic, a funny game type
|
|
|
|
Figures (a new figure each level, suddenly appearing tiles and lines),
|
|
|
|
and multiplayer with up to three players either human or CPU
|
|
|
|
controlled.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2011-03-03 21:09:56 +01:00
|
|
|
#autoreconf -fiv
|
2009-01-26 14:16:30 +01:00
|
|
|
%configure \
|
|
|
|
--datadir=%{_datadir}/games \
|
|
|
|
--bindir=%{_prefix}/games \
|
|
|
|
--localstatedir=%{_localstatedir}/games
|
2009-11-07 22:56:45 +01:00
|
|
|
|
2011-07-05 02:06:54 +02:00
|
|
|
make %{?_smp_mflags}
|
2009-01-26 14:16:30 +01:00
|
|
|
|
|
|
|
%install
|
2009-11-07 22:56:45 +01:00
|
|
|
%makeinstall
|
|
|
|
|
2009-01-26 14:16:30 +01:00
|
|
|
install -m 0755 -d $RPM_BUILD_ROOT%{_datadir}/pixmaps/
|
|
|
|
install -m 0644 icons/ltris48.xpm $RPM_BUILD_ROOT%{_datadir}/pixmaps/ltris.xpm
|
|
|
|
mv $RPM_BUILD_ROOT%{_datadir}/games/locale $RPM_BUILD_ROOT%{_datadir}/locale
|
2011-03-03 21:09:56 +01:00
|
|
|
%__rm -rf "$RPM_BUILD_ROOT%{_datadir}/games/applications"
|
|
|
|
%__rm -rf "$RPM_BUILD_ROOT%{_datadir}/games/icons"
|
|
|
|
|
2009-01-26 14:16:30 +01:00
|
|
|
%suse_update_desktop_file -i %{name} Game ArcadeGame
|
|
|
|
%find_lang %{name}
|
|
|
|
|
2009-11-07 23:34:12 +01:00
|
|
|
%post
|
|
|
|
%run_permissions
|
|
|
|
|
|
|
|
%verifyscript
|
|
|
|
%verify_permissions
|
|
|
|
|
2009-01-26 14:16:30 +01:00
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(644,root,root,755)
|
2011-09-01 07:16:20 +02:00
|
|
|
%doc AUTHORS COPYING ChangeLog README
|
2009-11-07 23:34:12 +01:00
|
|
|
%attr(2755,games,games) %{_prefix}/games/ltris
|
2009-01-26 14:16:30 +01:00
|
|
|
%dir %{_datadir}/games/ltris
|
|
|
|
%{_datadir}/games/ltris/*
|
|
|
|
%attr(664,games,games) /var/games/ltris.hscr
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/pixmaps/ltris.xpm
|
|
|
|
|
|
|
|
%changelog
|