# # spec file for package ltris # # Copyright (c) 2013 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 Version: 1.0.18 Release: 0 Summary: Tetris Clone with Multiplayer and CPU Opponents License: GPL-2.0+ Group: Amusements/Games/Logic 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 # PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines Patch1: ltris-no_system_wide_hiscore_file.patch BuildRequires: SDL_mixer-devel %if 0%{?suse_version} BuildRequires: fdupes BuildRequires: update-desktop-files %endif 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 %patch1 # we patch both Makefile.am and Makefile.in; touch Makefile.in here again # to make sure configure won't run autoreconf (which it does if the .am file # is newer than the .in file): touch src/Makefile.in %build export CFLAGS="%{optflags} -fPIC -fPIE" export CXXFLAGS="$CFLAGS" %configure \ --datadir=%{_datadir}/games \ --localstatedir=%{_localstatedir}/games make %{?_smp_mflags} %install make DESTDIR=%{buildroot} install install -m 0755 -d %{buildroot}%{_datadir}/pixmaps/ install -m 0644 icons/ltris48.xpm %{buildroot}%{_datadir}/pixmaps/ltris.xpm mv %{buildroot}%{_datadir}/games/locale %{buildroot}%{_datadir}/locale rm -rf "%{buildroot}%{_datadir}/games/applications" rm -rf "%{buildroot}%{_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 %files -f %{name}.lang %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog README %{_bindir}/ltris %{_datadir}/games/ltris/ %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/ltris.xpm %changelog