File teg.spec of Package teg

#
# spec file for package teg
#
# 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:           teg
Version:        0.13.0
Release:        0
Summary:        Turn based strategy game
License:        GPL-2.0-only
Group:          Amusements/Games/Strategy/Turn Based
URL:            https://github.com/wfx/teg
Source:         https://github.com/wfx/teg/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/wfx/teg/pull/27
#Patch0:         suse.patch
# PATCH-FIX-UPSTREAM https://github.com/wfx/teg/pull/30
#Patch1:         fix-multiple-definitions.patch
#Patch2:         teg_libxml.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gettext
BuildRequires:  gnome-doc-utils
BuildRequires:  libtool
BuildRequires:  make
BuildRequires:  goocanvas2-devel
#BuildRequires:  libgnomeui-devel
BuildRequires:  pkgconfig
BuildRequires:  tidy
BuildRequires:  xmlto
BuildRequires:  perl(XML::Parser)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(goocanvas-2.0)
BuildRequires:  pkgconfig(libxml-2.0)
%lang_package

%description
Tenes Empanadas Graciela is a clone of Plan Táctico y Estratégico de la
Guerra, a turn based strategy game. Some rules are different.

%prep
%autosetup -p1

%build
./autogen.sh
%configure
%make_build

%install
%make_install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pixmaps/
mv -f $RPM_BUILD_ROOT/%{_datadir}/pixmaps/teg_icono.png $RPM_BUILD_ROOT/%{_datadir}/pixmaps/teg.png

%find_lang %{name}

%fdupes %{buildroot}%{_datadir}

%files
%license COPYING
%doc AUTHORS README.md TODO PEOPLE ChangeLog
%{_bindir}/tegrobot
%{_bindir}/tegclient
%{_bindir}/tegserver
%{_datadir}/teg/
%{_datadir}/pixmaps/
%{_datadir}/pixmaps/teg.png
%docdir %{_datadir}/gnome/help/teg/
%dir %{_datadir}/GConf
%dir %{_datadir}/GConf/gsettings
%{_datadir}/GConf/gsettings/teg.convert
%{_datadir}/applications/teg.desktop
%{_datadir}/glib-2.0/schemas/net.sf.teg.gschema.xml

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by