File libprimis.spec of Package libprimis
#
# spec file for package libprimis
#
# Copyright (c) 2024, Martin Hauke <mardnh@gmx.de>
#
# 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 sover 0
%define soname 0_0_1
%define libname libprimis%{soname}
Name: libprimis
Version: 0.39a
Release: 0
Summary: 0
License: MIT
Group: System/Libraries
URL: https://project-imprimis.github.io/libprimis/
Source: %{name}-%{version}.tar.xz
# .pc file installation with cmake is broken
Patch0: x.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(glew)
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(SDL2_mixer)
BuildRequires: pkgconfig(SDL2_image)
BuildRequires: pkgconfig(SDL2_ttf)
BuildRequires: pkgconfig
%description
Libprimis is a game engine, based on Tesseract and the Cube 2 family of
programs. Unlike the Cube/Cube 2/Tesseract games, which featured tightly
integrated rendering and game code, however, Libprimis is just an engine.
%package -n %{libname}
Summary: Imprimis' 3D destroyable world engine
Group: System/Libraries
%description -n %{libname}
Libprimis is a game engine, based on Tesseract and the Cube 2 family of
programs. Unlike the Cube/Cube 2/Tesseract games, which featured tightly
integrated rendering and game code, however, Libprimis is just an engine.
%package devel
Summary: Development files for libprimis
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
%description devel
Development and header files for libprimis.
%prep
%setup -q
%autopatch -p1
%build
%cmake
%cmake_build
%install
%cmake_install
%ldconfig_scriptlets -n %{libname}
%files -n %{libname}
%license LICENSE.md
%%doc README.md
%{_libdir}/libprimis.so.%{sover}*
%files devel
%{_includedir}/iengine.h
%{_libdir}/libprimis.so
%changelog