Репозиторий Sisyphus
Последнее обновление: 16 апреля 2021 | Пакетов: 17845 | Посещений: 20742039
en ru br
Репозитории ALT

Группа :: Игры/Прочее
Пакет: lpairs

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/desktop-file-install
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: lpairs
Summary: Classical memory game with cards
Version: 1.0.4
Release: alt3_20
License: GPLv2+ and CC-BY-SA and Freely redistributable without restriction
Group: Games/Other
URL: http://lgames.sourceforge.net/index.php?project=LPairs
#moved to .rpmmacros
#Packager: Marcin Zajaczkowski <mszpak ATT wp DOTT pl>
Source0: http://downloads.sourceforge.net/lgames/lpairs-%{version}.tar.gz
#there is a problem with data dir
#the Author said it would be hard for him to fix it at autoconf level
Patch0: lpairs-1.0.3-datadir.diff
Patch1: lpairs-1.0.4-desktop.diff
#SDL is required by soname dependency
#Requires: SDL >= 1.0
BuildRequires: desktop-file-utils
BuildRequires: libSDL-devel
BuildRequires:  gettext gettext-tools
Source44: import.info

LPairs is a classical memory game. This means you have to find pairs of
identical cards which will then be removed. Your time and tries needed
will be counted but there is no highscore chart or limit to this.

%setup -q
%patch0 -p0
%patch1 -p0

# FIXME: Package suffers from c11/inline issues
# Workaround by appending -std=gnu89 to CFLAGS
# Proper fix would be to fix the source-code
CFLAGS="${RPM_OPT_FLAGS} -std=gnu89"

%configure inst_dir="%{_datadir}/%{name}"

rm -fr %{buildroot}
make DESTDIR=%{buildroot} inst_dir="%{_datadir}/%{name}" install
%find_lang %{name}
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp lpairs.png %{buildroot}%{_datadir}/pixmaps/

desktop-file-install --dir %{buildroot}%{_datadir}/applications \

%files -f %{name}.lang
#there is no high scores for now
#%config(noreplace) %attr(664, games, games) %{_var}/lib/games/lpairs.hscr
#TODO is in German also not in UTF-8
#doc TODO


Полный changelog можно просмотреть здесь

дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin