Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37404909
en ru br
Репозитории ALT

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

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

# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/desktop-file-validate gcc-c++
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name:           sudoku-savant
Version:        1.3
Release:        alt2_18
Summary:        Solve and generate sudoku puzzles through logical means
Summary(de):    Lц╤sen und Erstellen von Sudoku-Puzzles mit logischen Mitteln

Group:          Games/Other
# Impossible to figure out the actual license in the sources.
# Upstream bug: https://sourceforge.net/tracker/?func=detail&aid=3272054&group_id=172187&atid=860784
License:        GPL+
URL:            http://sourceforge.net/projects/%{name}/

Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Source1:        sudoku-savant-icons.txz

# Patch is taken from the Opensuse package.

# Without it, "make" cannot install the icons and the *.desktop file
# into buildroot and tries to use the real system folders instead.
# Upstream bug: https://sourceforge.net/tracker/?func=detail&aid=3294399&group_id=172187&atid=860784
Patch0:         %{name}-Makefile.patch
Patch1:         %{name}-aarch64.patch

BuildRequires:  desktop-file-utils
BuildRequires:  gtk-builder-convert gtk-demo libgail-devel libgtk+2-devel libgtk+2-gir-devel

%description
A simple GUI-driven application to solve and generate sudoku puzzles through
logical means. Also supports manual solving, with pencil marks and cell
coloring. Should be able to solve any standard sudoku from a newspaper
or magazine.

%description -l de
Eine einfache grafische Anwendung zum Lц╤sen und Erstellen von Sudoku-Puzzles
mit logischen Mitteln. Das manuelle Lц╤sen wird ebenfalls unterstц╪tzt, mit
Hilfe von Markierungen und Einfц╓rben der Felder. Es sollte mц╤glich sein, jedes
Standard-Sudoku aus Zeitungen oder Zeitschriften zu lц╤sen.

%prep
%setup -q
%patch0 -p0
%patch1 -p1

cp -a %{SOURCE1} .

%build
%configure
%make_build


%install
make install DESTDIR=%{buildroot}

install -dm 755 %{buildroot}%{_datadir}/icons/hicolor
tar xJ --directory=%{buildroot}%{_datadir}/icons/hicolor < %{name}-icons.txz

# Register as an application to be visible in the software center

#
# NOTE: It would be *awesome* if this file was maintained by the upstream
# project, translated and installed into the right place during `make install`.
#
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
#
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 William Moreno <williamjmorenor at gmail.com> -->
<!--
BugReportURL: https://sourceforge.net/p/sudoku-savant/bugs/3/
SentUpstream: 2014-09-25
-->
<application>
 <id type="desktop">sudoku-savant.desktop</id>
 <metadata_license>CC0-1.0</metadata_license>
 <summary>Complete a numeric puzzle with the numbers from one to nine</summary>
 <description>
   <p>
     Sudoku Savnt a free version of the popular logic game Sudoku for the Linux desktop .
     The game is to fill a nine by nine grid with the numbers from one to nine
     filling the rows, columns and three by three squares without repeating a
     value on them.
   </p>
 </description>
 <url type="homepage">http://sourceforge.net/projects/sudoku-savant/</url>
</application>
EOF

%find_lang %{name}

desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop


%files -f %{name}.lang
%doc ABOUT-NLS AUTHORS ChangeLog COPYING README
%{_bindir}/%{name}
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%_iconsdir/hicolor/*/*/*
%exclude %{_datadir}/pixmaps/%{name}.png


%changelog

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

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