File ltris.spec of Package ltris
#
# 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.12
Release: 1
PreReq: permissions
Url: http://lgames.sourceforge.net/index.php?project=LTris
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 --force --install
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
%configure \
--datadir=%{_datadir}/games \
--bindir=%{_prefix}/games \
--localstatedir=/var/games
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
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}
%post
%run_permissions
%verifyscript
%verify_permissions -e %{_prefix}/games/ltris
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS COPYING ChangeLog README TODO
%verify(not mode) %attr(0755,games,games) %{_prefix}/games/ltris
%{_datadir}/games/ltris
%attr(664,games,games) /var/games/ltris.hscr
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/ltris.xpm
%changelog
* Wed Apr 02 2008 prusnak@suse.cz
- updated to 1.0.12
* added portugese translation
* l10n of yes/no keys
* Sun Mar 16 2008 crrodriguez@suse.de
- fix file-not-in-lang problems
* Fri Mar 09 2007 ltinkl@suse.cz
- fix #252072 - ltris installs locales into the wrong directory
* Wed Mar 07 2007 ltinkl@suse.cz
- update to 1.0.11, fix build
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Sep 21 2005 pnemec@suse.cz
- fixed icon and desktop file #113656
* Mon Feb 21 2005 mcihar@suse.cz
- update to 1.0.10
* Mon Feb 07 2005 mcihar@suse.cz
- update to 1.0.9
* Wed Aug 04 2004 mcihar@suse.cz
- update to 1.0.7
* Tue Feb 24 2004 mcihar@suse.cz
- update to 1.0.6
* Wed Oct 29 2003 mcihar@suse.cz
- added the missing Prereq for "permissions"
- added the missing verifyscript
* Wed Oct 29 2003 mcihar@suse.cz
- no root for build
* Mon Oct 27 2003 ro@suse.de
- package according to permissions.secure and add %%run_permissions
* Tue Oct 14 2003 mcihar@suse.cz
- moved to /usr/games
- updated to 1.0.5:
- windows manager's close button works
- expert mode with unbalanced properties for next block to make it
difficult to fit
* Sun Aug 10 2003 sndirsch@suse.de
- added desktop file
* Thu May 29 2003 mcihar@suse.cz
- hiscores don't need to be executable
* Wed Jan 22 2003 mcihar@suse.cz
- updated to 1.0.4 (bugfix release)
* Tue Aug 06 2002 mcihar@suse.cz
- updated to 1.0.3:
* fixed some two-player bug
* fixed typos
* support for other audio buffer size
* optional asynchron collision check
* Tue Jul 30 2002 kukuk@suse.de
- use group games instead of game
* Tue Jan 22 2002 ro@suse.de
- changed neededforbuild <kdelibs-artsd> to <kdelibs3-artsd>
* Fri Jan 18 2002 cihlar@suse.cz
- update to version 1.0.1
* Tue Nov 06 2001 cihlar@suse.cz
- fixed to compile with automake 1.5
* Wed Aug 08 2001 ro@suse.de
- updated neededforbuild
* Wed Jun 20 2001 cihlar@suse.cz
- added kdelibs and kdelibs-devel to neededforbuild
* Mon Apr 09 2001 cihlar@suse.cz
- updated to version 010310
* Tue Mar 27 2001 ro@suse.de
- added sdl-devel to neededforbuild
* Wed Feb 21 2001 cihlar@suse.cz
- added alsa, esound and audiofile to neededforbuild
* Mon Dec 04 2000 cihlar@suse.cz
- package created