File galois.spec of Package galois

#
# spec file for package galois
#
# Copyright (c) 2020 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:           galois
Version:        0.7
Release:        0
Summary:        Extended falling blocks game with many different geometries
License:        GPL-3.0-or-later
Group:          Amusements/Games/Strategy/Other
URL:            http://www.nongnu.org/galois/
Source0:        http://download.savannah.gnu.org/releases/galois/source/%{name}-%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gtkmm-3.0)
BuildRequires:  pkgconfig(libxml++-2.6)

%description
Galois is a computer game of the "falling blocks" type, but with unique
features. Unlike most other games of that type, it is not limited to blocks
made of four two-dimensional, square bricks: you can choose among several
different brick shapes, blocks composed of more or less bricks, and even
between two- and three-dimensional games.

%prep
%setup -q
sed -i 's|/games|/bin|' src/makefile.in misc/galois.desktop.in

%build
%configure
make %{?_smp_mflags}

%install
%make_install
%find_lang %{name} --with-gnome --with-man
%fdupes -s %{buildroot}/%{_datadir}/gnome/help/%{name}

%if 0%{?suse_version} < 1330
%post
%desktop_database_post

%postun
%desktop_database_postun
%endif

%files -f %{name}.lang
%doc NEWS
%license COPYING
%{_datadir}/applications/%{name}.desktop
%lang(C) %{_datadir}/omf/%{name}/%{name}-C.omf
%lang(it) %{_datadir}/omf/%{name}/%{name}-it.omf
%{_datadir}/pixmaps/%{name}.png
%{_bindir}/%{name}
%{_mandir}/man6/%{name}.6%{?ext_man}
%dir %{_datadir}/omf
%dir %{_datadir}/gnome
%dir %{_datadir}/gnome/help

%changelog
openSUSE Build Service is sponsored by