File simplesok.spec of Package simplesok

#
# spec file for package simplesok
#
# 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:           simplesok
Version:        1.0.2
Release:        0
Summary:        Colorful Sokoban game aimed at playability
License:        MIT
Group:          Amusements/Games/Logic
URL:            http://simplesok.sourceforge.net/
Source:         http://downloads.sourceforge.net/project/simplesok/v%{version}/%{name}-%{version}.tar.xz
BuildRequires:  pkgconfig(zlib)
BuildRequires:  pkgconfig(sdl2) >= 2.0.1
BuildRequires:  hicolor-icon-theme
BuildRequires:  dos2unix

%description
Simple Sokoban is a colorful Sokoban game aimed for playability
and portability across systems. It is written in ANSI C89, using
SDL2 for user interactions.

%prep
%autosetup
dos2unix *.txt

%build
%make_build

%install
install -D simplesok %{buildroot}/%{_bindir}/simplesok
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
install -Dm0644 simplesok.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
mkdir -p %{buildroot}%{_datadir}/simplesok/skins/
install -Dm0644 skins/*.bmp.gz %{buildroot}%{_datadir}/simplesok/skins/
install -Dm0644 simplesok.6 %{buildroot}/%{_mandir}/man6/simplesok.6

%files
%doc simplesok.txt history.txt xsb_format.txt
%{_bindir}/simplesok
%{_datadir}/icons/hicolor/48x48/apps/simplesok.png
%{_datadir}/simplesok/
%{_mandir}/man6/simplesok.*

%changelog
openSUSE Build Service is sponsored by