File tetrinet.spec of Package tetrinet

#
# spec file for package tetrinet
#
# Copyright (c) 2022 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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:           tetrinet
Version:        0.11
Release:        0
URL:            http://tetrinet.or.cz/
Summary:        Multiplayer Tetris
License:        SUSE-Public-Domain
Group:          Amusements/Games/Logic
Source:         http://tetrinet.or.cz/download/%{name}-%{version}.tar.bz2
# PATCH-FIX-DEBIAN https://sources.debian.org/patches/tetrinet/0.11+CVS20070911-2.1/gcc10.patch/
Patch0:         gcc10.patch
BuildRequires:  gcc
BuildRequires:  pkgconfig(ncurses)

%description
Tetrinet for Linux is compatible implementation of the popular
multiplayer Tetris game for Windows. It bundles a console based
tetrinet client and a simple tetrinet server.

%prep
%autosetup -p1

%build
make

%install
install -Dm 755 tetrinet %{buildroot}%{_bindir}/tetrinet
install -Dm 755 tetrinet-server %{buildroot}%{_bindir}/tetrinet-server

%files
%defattr(-,root,root)
%doc README tetrinet.txt
%{_bindir}/tetrinet
%{_bindir}/tetrinet-server

%changelog
openSUSE Build Service is sponsored by