File FreeDoko.spec of Package FreeDoko
#
# spec file for package FreeDoko
#
# Copyright (c) 2025 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: FreeDoko
Version: 0.8.1
Release: 0
Summary: Game of Doppelkopf
Group: Amusements/Games/Board/Card
License: GPL-3.0-or-later
URL: http://free-doko.sourceforge.net/
Source: http://prdownloads.sourceforge.net/free-doko/FreeDoko_%{version}.src.zip
Patch0: Makefile.install.directories.patch
Patch1: fix-line-endings.patch
BuildRequires: unzip
%if 0%{?suse_version} > 1500
BuildRequires: gcc-c++
%else
BuildRequires: gcc9-c++
BuildRequires: texlive-paralist
%endif
BuildRequires: asciidoc
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: rsync
BuildRequires: texlive
BuildRequires: texlive-babel-german
BuildRequires: texlive-german
BuildRequires: texlive-koma-script
BuildRequires: texlive-ucs
BuildRequires: update-desktop-files
BuildRequires: w3m
BuildRequires: pkgconfig(freealut)
BuildRequires: pkgconfig(gtkmm-3.0)
%description
Doppelkopf is a card game with 48 cards and at least four players. It is
played with two Skat hands without sevens and eights. The owners of the
two Queens of Clubs always play together. This way new pairs are formed
during the game. It is not clear from the start who forms a party with
whom. To find out or hide this is one of the main attractions of the this
game.
%prep
%setup -q -n %{name}_%{version}
%autopatch -p1
dos2unix AUTHORS
dos2unix COPYING
dos2unix doc/*/*.txt
%build
%if 0%{?suse_version} == 1500
export CXX=g++-9
%endif
%make_build compile
%make_build documentation
%install
%make_install
%suse_update_desktop_file %{name}
%find_lang %{name}
%fdupes %{buildroot}%{_datadir}
%files -f %{name}.lang
%defattr(-,root,root)
%{_datadir}/{man/man6,doc,games,applications,pixmaps}/*
%{_bindir}/*
%changelog