Sisyphus repository
Last update: 27 february 2020 | SRPMs: 17504 | Visits: 17534687
en ru br
ALT Linux repos
S:0.8.1-alt6
5.0: 0.8.1-alt2
4.1: 0.8.1-alt2
4.0: 0.8.1-alt2
3.0: 0.5-alt3

Group :: Games/Boards
RPM: kcheckers

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 


Name: kcheckers
Version: 0.8.1
Release: alt5

Group: Games/Boards
Summary: Classic boardgame - checkers
License: GPL
Url: http://qcheckers.sf.net/
#Url: http://kcheckers.org/
#http://www.kde-apps.org/content/show.php?content=14772
#http://kcheckers.wibix.de
#http://kcheckers.osdn.org.ua

Source: %name-%version.tar
Source1: %name.desktop
Source2: %name-16.png
Source3: %name-32.png
Source4: %name-48.png

Patch1: kcheckers-0.8.1-alt-prefix.patch
Patch2: kcheckers-0.8.1-alt-qt-translator.patch
Patch3: kcheckers-0.8.1-qt5.patch

BuildRequires(pre): qt5-base-devel rpm-build-ubt
BuildRequires: qt5-tools

%description
Tish is classic boardgame "checkers".
This game is also known as "draughts".

%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1

export PATH=%_qt5_bindir/bin:$PATH
%qmake_qt5
%make clean

%build
export PATH=%_qt5_bindir/bin:$PATH
#%add_optflags -D_REENTRANT -DQT_NO_DEBUG
#make_build CFLAGS="%optflags" CXXFLAGS="%optflags"
%make_build
lrelease-qt5 i18n/*.ts

%install
mkdir -p %buildroot/%_gamesbindir
install -m 0755 %name %buildroot/%_gamesbindir

mkdir -p %buildroot/%_desktopdir/
install -m0644 %SOURCE1 %buildroot/%_desktopdir/%name.desktop

mkdir -p %buildroot/%_datadir/%name/
install -Dm 0644 i18n/*.qm %buildroot/%_datadir/%name/
install -Dm 0644 %SOURCE2 %buildroot/%_iconsdir/hicolor/16x16/apps/%name.png
install -Dm 0644 %SOURCE3 %buildroot/%_iconsdir/hicolor/32x32/apps/%name.png
install -Dm 0644 %SOURCE4 %buildroot/%_iconsdir/hicolor/48x48/apps/%name.png

%files
%_gamesbindir/*
%_datadir/%name
%_desktopdir/%name.desktop
%_iconsdir/*/*/*/%name.png
%doc ChangeLog AUTHORS

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin