File mj.spec of Package mj

#
# spec file for package mj
#
# Copyright (c) 2022 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:           mj
Version:        1.16
Release:        0
Summary:        Mahjong program with network option
License:        GPL-2.0-or-later
Group:          Amusements/Games/Board/Other
URL:            https://mahjong.julianbradfield.org/
Source:         http://mahjong.julianbradfield.org/Source/%{name}-%{version}-src.tar.gz
BuildRequires:  ImageMagick
BuildRequires:  gtk2-devel

%description
This is the game of Mah-Jongg, not be confused with the solitaire
matching game using the same tiles.  It is a set of three programs
which provide a networked Mah-Jong system, together with a computer
player.  Thus the game can be played by four humans, by a human and
three computer players, or any other combination.

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

%build
%make_build depend
%make_build EXTRA_CFLAGS="%{optflags}" LDLIBS=-lm

%install
make install install.man DESTDIR=%{buildroot}%{_prefix}/ MANDIR=share/man/man1 \

%files
%doc ChangeLog CHANGES README rules.txt use.txt
%license LICENCE
%{_bindir}/mj-server
%{_bindir}/mj-player
%{_bindir}/xmj
%{_mandir}/man1/mj-server.*
%{_mandir}/man1/mj-player.*
%{_mandir}/man1/xmj.*

%changelog
openSUSE Build Service is sponsored by