File classicsnake.spec of Package classicsnake

#
# spec file for package classicsnake
#
# 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/
#

%define unmangled_version 0.250924-2
Name:           classicsnake
Version:	0.250924
Release:        2
Summary:    	My implementation of the cult game from Nokia phones
License:        CC-PDDC
URL:            http://prymula.ct8.pl
Source0:	%{name}-%{unmangled_version}.tar.gz
%if 0%{?suse_version} > 1600
BuildRequires:	libSDL-devel, libSDL_ttf-devel, glib2-devel, pkgconfig, gcc
Requires:       libSDL-1_2-0, libSDL_ttf-2_0-0, glib2
%endif
%if 0%{?sle_version} >= 150400 && 0%{?is_opensuse}
BuildRequires:	libSDL-devel, libSDL_ttf-devel, glib2-devel, pkgconfig, gcc
Requires:       libSDL-1_2-0, libSDL_ttf-2_0-0, glib2, gdb, xterm
%endif
%if 0%{?fedora} >= 37
BuildRequires:	sdl12-compat-devel, SDL_ttf-devel, glib2-devel, pkgconfig, gcc
Requires:       sdl12-compat, SDL_ttf, glib2, gdb, xterm
%endif
BuildArch:	x86_64

%global debug_package %{nil}

%description


%prep
%setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version}

%build
make

%make_install
make DESTDIR="%{buildroot}" install 
 
%files
%defattr(0755,root,root)
/opt
/opt/pietraszczyk
/opt/pietraszczyk/classicsnake
/opt/pietraszczyk/classicsnake/classicsnake
/usr/share/applications/
%defattr(0644,root,root)
/opt/pietraszczyk/classicsnake/classicsnake.png
/opt/pietraszczyk/classicsnake/ZapfHumanist.ttf
/usr/share/applications/ClassicSnake.desktop

%changelog
* Thu Sep 24 21:10:07 UTC 2025 - Przem <przem@prymula.ct8.pl>
* Create package 2.250924-2 for openSUSE:

* Wed Aug 13 21:10:07 UTC 2025 - Przem <przem@prymula.ct8.pl>
* Create package 2.250813-0 for openSUSE:

* Thu Aug 12 11:18:07 UTC 2025 - Przem <przem@prymula.ct8.pl>
* Create package 2.250812-0 for openSUSE:

* Wed Aug 06 21:18:07 UTC 2025 - Przem <przem@prymula.ct8.pl>
* Create package 2.250806-0 for openSUSE:
openSUSE Build Service is sponsored by