# # spec file for package ltris # # Copyright (c) 2011 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/ # Name: ltris BuildRequires: SDL_mixer-devel %if 0%{?suse_version} BuildRequires: fdupes update-desktop-files %endif License: GPL v2 or later Group: Amusements/Games/Logic Summary: Tetris Clone with Multiplayer and CPU Opponents Version: 1.0.18 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 Source99: ltris-rpmlintrc BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: permissions %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 export CFLAGS="%{optflags} -fPIC -fPIE" export CXXFLAGS="$CFLAGS" %configure \ --datadir=%{_datadir}/games \ --bindir=%{_prefix}/games \ --localstatedir=%{_localstatedir}/games make %{?_smp_mflags} %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 %__rm -rf "$RPM_BUILD_ROOT%{_datadir}/games/applications" %__rm -rf "$RPM_BUILD_ROOT%{_datadir}/games/icons" %if 0%{?suse_version} %suse_update_desktop_file -i %{name} Game ArcadeGame %endif %find_lang %{name} %if 0%{?suse_version} %fdupes -s "%{buildroot}%{_datadir}/games/ltris" %endif %post %if 0%{?suse_version} < 1140 %run_permissions %else %set_permissions %{_prefix}/games/ltris %endif %verifyscript %verify_permissions -e %{_prefix}/games/ltris %files -f %{name}.lang %defattr(644,root,root,755) %doc AUTHORS COPYING ChangeLog README %attr(2755,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