File einstein.spec of Package einstein

#
# spec file for package einstein
#
# 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:           einstein
Version:        2.0
Release:        0
Summary:        Einstein's Riddle
License:        GPL-2.0-or-later
URL:            https://build.opensuse.org/package/show/home:13ilya/%{name}
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(SDL_mixer)
BuildRequires:  pkgconfig(SDL_ttf)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(zlib)

%description
Logical Game based on Einstein's Riddle.

%prep
%autosetup -p1

%build
cd mkres
%make_build
cd ../res
sh ./build.sh
cd ..
%make_build

%install
install -Dp %{name} %{buildroot}%{_bindir}/%{name}
install -Dpm0664 %{name}.res %{buildroot}%{_datadir}/%{name}/%{name}.res
install -Dpm0664 %{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -Dpm0664 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

%files
%doc README
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/%{name}.res
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop

%changelog
openSUSE Build Service is sponsored by