File lpairs2.spec of Package lpairs2

#
# spec file for package lpairs2
#
# Copyright (c) 2025 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           lpairs2
Version:        2.3.2
Release:        0
Summary:        Classical memory game
License:        GPL-3.0-only
Group:          Amusements/Games/Logic
URL:            http://lgames.sourceforge.net/LPairs/
Source0:        https://downloads.sourceforge.net/lgames/%{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(SDL2_image)
BuildRequires:  pkgconfig(SDL2_mixer)
BuildRequires:  pkgconfig(SDL2_ttf)
BuildRequires:  pkgconfig(sdl2)

%description
LPairs2 is a memory game with 2x36 high resolution animal cards where
you turn over any two cards and if they match they get removed.
If they don't match they are turned back over.The game is over when all
cards have been matched.
You can play with different set sizes in fullscreen (6x4 to 12x6) or
windowed mode (6x4 to 10x7).
And for anyone who's bored by just matching pairs: You can try to match
triplets and quadruplets as well. There is also a 2-player mode with
a CPU opponent.

%prep
%setup -q

%build
%configure
%make_build

%install
%make_install

# install icon
install -Dm 0644 %{name}.png %{buildroot}%{_datadir}/icons/%{name}.png

# install desktop
install -Dm 0644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

%suse_update_desktop_file %{name} -r Game LogicGame
%fdupes %{buildroot}%{_datadir}/

%files
%license COPYING
%doc ChangeLog README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/%{name}.png
%{_datadir}/%{name}

%changelog
openSUSE Build Service is sponsored by