File SecureSkat.spec of Package SecureSkat

#
# spec file for package SecureSkat
#
# Copyright (c) 2019 Heiko Stamer <HeikoStamer@gmx.net>
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Andreas Stieger <andreas.stieger@gmx.de>
# Copyright (c) 2007 oc2pus <toni@links2linux.de>
#
# 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 http://bugs.opensuse.org/
#


Name:           SecureSkat
Version:        2.15
Release:        0
Summary:        A peer-to-peer implementation of the German card game Skat
License:        GPL-2.0-or-later
Group:          Amusements/Games/Board/Card
URL:            https://savannah.nongnu.org/projects/secureskat
Source0:        https://download.savannah.gnu.org/releases/secureskat/%{name}-%{version}.tar.gz
Source1:        https://download.savannah.gnu.org/releases/secureskat/%{name}-%{version}.tar.gz.sig
Source2:        %{name}.keyring
BuildRequires:  gcc-c++
BuildRequires:  gdbm-devel >= 1.8.0
BuildRequires:  gmp-devel >= 4.2
BuildRequires:  libTMCG-devel >= 1.3.18
BuildRequires:  libgcrypt-devel >= 1.6.0
BuildRequires:  ncurses-devel >= 5.0
BuildRequires:  pkgconfig
BuildRequires:  readline-devel >= 4.3
BuildRequires:  zlib-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
SecureSkat is a peer-to-peer implementation of the card game Skat.

The program negotiates possible players and sessions over an arbitrary IRC
network (Internet Relay Chat). Beside a IRC server for bootstrapping the
communication channels neither a trusted third-party (dealer) nor a
centralized game server is required. It uses the C++ library LibTMCG to
ensure a reasonable level of verifiablility for card operations (so-called
Mental Poker problem). Furthermore, SecureSkat provides simple electronic
voting capabilities based on a playing card encoding.

For peer-to-peer communication between players the program allows the usage
of Tor hidden services (i.e. onion address of a peer instead of FQDN),
because often incoming connections are restricted by the configuration of
Internet routers.


%prep
%setup -q -n %{name}-%{version}

%build
%configure
make %{?_smp_mflags}

%install
%make_install

%find_lang %{name}

%files -f %{name}.lang
%license COPYING
%doc AUTHORS BUGS ChangeLog THANKS TODO README
%{_bindir}/%{name}
%{_bindir}/%{name}_random
%{_bindir}/%{name}_ai

%changelog
openSUSE Build Service is sponsored by