File flatzebra.spec of Package flatzebra
#
# spec file for package flatzebra
#
# Copyright (c) 2025 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: flatzebra
Version: 0.2.0
Release: 0
Summary: A generic game engine for 2D double-buffering animation
License: GPL-2.0-only
Group: System/Libraries
URL: http://sarrazip.com/dev/burgerspace.html
Source: http://perso.b2b2c.ca/~sarrazip/dev/flatzebra-%{version}.tar.gz
BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(SDL2_gfx)
BuildRequires: pkgconfig(SDL2_image) >= 2.0.5
BuildRequires: pkgconfig(SDL2_mixer) >= 2.0.4
BuildRequires: pkgconfig(SDL2_ttf) >= 2.0.15
BuildRequires: pkgconfig(sdl2) >= 2.0.10
%description
This is a Generic Game Engine library used by BurgerSpace et al.
A generic game engine for 2D double-buffering animation.
%package devel
Summary: C++ header files for the flatzebra library
Group: Development/Libraries/C and C++
Requires: lib%{name}-0_2-2
%description devel
C++ header files for the flatzebra library.
%package -n lib%{name}-0_2-2
Summary: C++ header files for the flatzebra library
Group: System/Libraries
%description -n lib%{name}-0_2-2
C++ header files for the flatzebra library.
%prep
%setup -q
autoreconf -i -f
%build
%configure
%make_build
%install
make install DESTDIR=%{buildroot} INSTALL="install -p"
rm -rf %{buildroot}%{_datadir}/doc/%{name}-%{version}
find %{buildroot} -type f -name "*.la" -delete -print
%post -n lib%{name}-0_2-2 -p /sbin/ldconfig
%postun -n lib%{name}-0_2-2 -p /sbin/ldconfig
%files
%license COPYING
%doc AUTHORS NEWS README
%{_datadir}/pixmaps/flatzebra-0.2/font_13x7.xpm
%files devel
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%dir %{_datadir}/pixmaps/flatzebra-0.2
%files -n lib%{name}-0_2-2
%{_libdir}/lib*.so.*
%changelog