ltris/ltris.spec
Dominique Leuenberger ee9647ceb6 Accepting request 24034 from home:pbleser:branches:games
Copy from home:pbleser:branches:games/ltris via accept of submit request 24034 revision 2.
Request was accepted with message:
Thanks for the update. I'll take care of the build failures (have been there pre update too)

OBS-URL: https://build.opensuse.org/request/show/24034
OBS-URL: https://build.opensuse.org/package/show/games/ltris?expand=0&rev=4
2009-11-07 21:56:45 +00:00

73 lines
2.0 KiB
RPMSpec

#
# spec file for package ltris (Version 1.0.12)
#
# 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/
#
# norootforbuild
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
Version: 1.0.13
Release: 1
Url: http://lgames.sourceforge.net/index.php?project=LTris
# http://prdownloads.sourceforge.net/lgames/ltris-%{version}.tar.gz
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.
Authors:
--------
Michael Speck <kulanie@gmx.net>
%prep
%setup -q
%build
autoreconf -fiv
%configure \
--datadir=%{_datadir}/games \
--bindir=%{_prefix}/games \
--localstatedir=%{_localstatedir}/games
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
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
%suse_update_desktop_file -i %{name} Game ArcadeGame
%find_lang %{name}
%clean
rm -rf "$RPM_BUILD_ROOT"
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS COPYING ChangeLog README TODO
%attr(0755,games,games) %{_prefix}/games/ltris
%dir %{_datadir}/games/ltris
%{_datadir}/games/ltris/*
%attr(664,games,games) /var/games/ltris.hscr
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/ltris.xpm
%changelog