File tbe.spec of Package tbe
#
# spec file for package tbe
#
# Copyright (c) 2019 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: tbe
Version: @SERVICE@
Release: 0
Summary: The Butterfly Effect, a realistic physics simulation game
License: GPL-2.0-only
Group: Amusements/Games/Other
URL: http://the-butterfly-effect.org
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(Qt5QuickWidgets)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Xml)
Requires: libqt5-qtquickcontrols
%description
The Butterfly Effect is a free and open source game that uses realistic
physics simulations to combine lots of simple mechanical elements to achieve
a simple goal in the most complex way possible.
%prep
%setup -q
sed -i 's|games)|bin)|' CMakeLists.txt test/level-i18n/CMakeLists.txt
sed -i 's|games/tbe|tbe|' CMakeLists.txt test/level-i18n/CMakeLists.txt
#sed -i 's|games)|bin)|' Makefile cmake/Linux.cmake test/level-i18n/CMakeLists.txt
#sed -i 's|games/tbe|tbe|' Makefile cmake/Linux.cmake test/level-i18n/CMakeLists.txt
#sed -i "s|\(Exec=\)|\1%%{_prefix}/games/|" installer/tbe.desktop
%build
%cmake
%make_jobs
%install
%cmake_install
%fdupes %{buildroot}%{_datadir}
%files
%doc AUTHORS DESCRIPTION README.md RUNNING.md
#%%dir %%{_prefix}/games
#%%{_prefix}/games/%%{name}
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
#%%{_datadir}/games/%%{name}
%{_datadir}/%{name}
%{_datadir}/icons/hicolor/*/apps/%{name}.??g
%license COPYING
%changelog