File irrlichtmt.spec of Package irrlichtmt
#
# spec file for package irrlichtmt
#
# Copyright (c) 2024 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 sover 1_9
%define _name irrlicht
Name: irrlichtmt
Version: 1.9.0mt7
Release: 0
Summary: A realtime 3D engine
License: Zlib
Group: Development/Libraries/C and C++
URL: https://github.com/minetest/irrlicht
Source: https://github.com/minetest/irrlicht/archive/%{version}.tar.gz#/%{_name}-%{version}.tar.gz
Source1: irrlichtmt-rpmlintrc
Patch0: irrlichtmt-fix-ld.patch
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: pkgconfig
BuildRequires: zlib-devel
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xft)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(xxf86vm)
%description
The IrrlichtMT Engine is a realtime 3D engine written and usable in
C++. It uses OpenGL, OpenGL ES and its own software renderer, and
has features which can be found in commercial 3D engines, some of
which are:
* Built-in and extensible material library with vertex, pixel, and
geometry shader support
* Character animation system with skeletal and morph target animation.
* Particle effects, billboards, light maps, environment mapping,
stencil buffer shadows, and lots of other special effects.
* Direct import of common mesh file formats: Maya (.obj), 3DStudio
(.3ds), COLLADA (.dae), Blitz3D (.b3d), Milkshape (.ms3d), Quake 3
levels (.bsp), Quake2 models (.md2), Microsoft DirectX (.X)…
%package devel
Summary: Development headers and libraries for irrlichtmt
Group: Development/Libraries/C and C++
Requires: lib%{name}%{sover} = %{version}
Requires: libstdc++-devel
%description devel
Development headers and libraries for irrlichtmt.
The IrrlichtMT Engine is a realtime 3D engine written and usable in
C++. It uses OpenGL, OpenGL ES and its own software renderer, and
has features which can be found in commercial 3D engines.
%package data
Summary: Assorted data for irrlichtmt
Group: Development/Libraries/C and C++
%description data
Data files for irrlicht applications
The IrrlichtMT Engine is a realtime 3D engine written and usable in
C++. It uses OpenGL, OpenGL ES and its own software renderer, and
has features which can be found in commercial 3D engines.
%package -n lib%{name}%{sover}
Summary: A high performance realtime 3D engine
Group: System/Libraries
%description -n lib%{name}%{sover}
The IrrlichtMT Engine is a realtime 3D engine written and usable in
C++. It uses OpenGL, OpenGL ES and its own software renderer, and
has features which can be found in commercial 3D engines.
%prep
%setup -q -n %{_name}-%{version}
%patch -P 0 -p1
%build
%cmake
%cmake_build
%install
%cmake_install
mkdir -p %{buildroot}%{_datadir}/
cp -a media %{buildroot}%{_datadir}/irrlichtmt
%fdupes %{buildroot}%{_includedir}/
%post -n lib%{name}%{sover} -p /sbin/ldconfig
%postun -n lib%{name}%{sover} -p /sbin/ldconfig
%files -n lib%{name}%{sover}
%doc README.md
%{_libdir}/libIrrlichtMt.so.*
%files devel
%doc doc/upgrade-guide.txt
%{_includedir}/%{name}/
%{_libdir}/libIrrlichtMt.so
%{_libdir}/cmake/IrrlichtMt/
%files data
%{_datadir}/%{name}/
%changelog