File openkropki.spec of Package openkropki

#
# spec file for package openkropki
#
# Copyright (c) 2020-2023 Mateusz Viste
#

Name:           openkropki
Version:        0.4
Release:        0
Summary:        An implementation of the pen & paper 'kropki' game
License:        MIT
Group:          Amusements/Games/Logic
URL:            https://openkropki.sourceforge.net/
Source:         http://openkropki.sourceforge.net/archiwum/openkropki-%{version}.tar.xz
Patch0:         openkropki-obey-cflags.patch
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(SDL2_ttf) >= 2.0.12
BuildRequires:  pkgconfig(sdl2)
BuildRequires:  pkgconfig(zlib)

%description
'Kropki' is a pen & paper game that was quite popular in Poland (kropki),
Russia (точки), Czechoslovakia (židi), Ukraine (крапки) and a few other
eastern Europe countries. The game's name translates simply as 'dots'.

The concept is similar to Go, although it had to be adapted for on-paper
gameplay.

%prep
%setup -q
%autopatch -p1

%build
%make_build CFLAGS="%{optflags}"
sed -i 's/\r$//' *.txt

%install
install -D openkropki %buildroot/%{_bindir}/openkropki

%files
%{_bindir}/%{name}
%license openkropki.txt
%doc history.txt okp.txt openkropki.txt

%changelog
openSUSE Build Service is sponsored by