SHA256
1
0
forked from pool/assimp
assimp/assimp.spec
Dirk Stoecker 9830f977b7 Accepting request 665002 from home:susnux:branches:games
- Update to 4.1.0
  * Added support for Export 3MF (experimental)
  * Added supprt for Import / Export glTF 2
  * Prevent failing stringstream to crash the export process
  *  Fix invalid access to mesh array when the array is
     empty in Blender, also fixed short overflow.
  * Fixed memory leak in AMFImporter
  * Fixed IOStream leak in UnrealLoader:
  * Fixed out-of-bounds read in MaterialSystem unit test
  * Added support for SIB models from Silo 2.5
- Changes from 4.0.1
  * StreamReader: fix out-of-range exception
- Changes From 4.0.0
  * New QT-Widget based assimp-viewer
  * Open3DGC codec supported by glFT-importer
  * glTF: Read and write transparency values
  * Support for X3D, AMF and Lugdunum3D
  * MDLLoader: fix resource leak.
  * Fix memory leak in Collada importer
  * Fixed many FBX bugs
- Added %check section, run unit tests
- Added disable-gitrevision-test.patch to fix testsuite as we do
  not build from git, git rev will test will fail.
- Added do-not-install-irrXML.patch to prevent cmake from
  installing the irrXML (static) library.

OBS-URL: https://build.opensuse.org/request/show/665002
OBS-URL: https://build.opensuse.org/package/show/games/assimp?expand=0&rev=7
2019-01-17 12:22:32 +00:00

131 lines
4.8 KiB
RPMSpec

#
# spec file for package assimp
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%define sover 4
Name: assimp
Version: 4.1.0
Release: 0
Summary: Library to load and process 3D scenes from various data formats
License: BSD-3-Clause AND MIT
Group: Development/Libraries/C and C++
Url: http://assimp.org/
# Removed non free parts from the original source package (models-nonbsd)
# https://github.com/assimp/assimp/archive/v%%{version}/%%{name}-%%{version}.tar.gz
Source0: %{name}-%{version}-suse.tar.xz
# PATCH-FIX-OPENSUSE disable-gitrevision-test.patch -- Disable gitrev test as we build from release not from git
Patch0: disable-gitrevision-test.patch
Patch1: do-not-install-irrXML.patch
Patch2: install-viewer.patch
BuildRequires: cmake
BuildRequires: dos2unix
BuildRequires: gcc-c++
BuildRequires: irrlicht-devel
BuildRequires: libboost_headers-devel
BuildRequires: pkgconfig
BuildRequires: zlib-devel
BuildRequires: pkgconfig(IL)
BuildRequires: pkgconfig(Qt5OpenGL)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(minizip)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Assimp is a library to load and process geometric scenes from various data formats.
It is tailored at typical game scenarios by supporting a node hierarchy, static or skinned meshes,
materials, bone animations and potential texture data. The library is not designed for speed,
it is primarily useful for importing assets from various sources once and storing it in a
engine-specific format for easy and fast every-day-loading.
%package -n lib%{name}%{sover}
Summary: Headers, docs and command-line utility for %{name}
Group: System/Libraries
%description -n lib%{name}%{sover}
Assimp is a library to load and process geometric scenes from various data formats.
It is tailored at typical game scenarios by supporting a node hierarchy, static or skinned meshes,
materials, bone animations and potential texture data. The library is not designed for speed,
it is primarily useful for importing assets from various sources once and storing it in a
engine-specific format for easy and fast every-day-loading.
%package devel
Summary: Headers, docs and command-line utility for %{name}
Group: Development/Libraries/C and C++
Requires: glibc-devel
Requires: lib%{name}%{sover} = %{version}
Requires: libstdc++-devel
%description devel
Assimp is a library to load and process geometric scenes from various data formats.
It is tailored at typical game scenarios by supporting a node hierarchy, static or skinned meshes,
materials, bone animations and potential texture data. The library is not designed for speed,
it is primarily useful for importing assets from various sources once and storing it in a
engine-specific format for easy and fast every-day-loading.
%package viewer
Summary: Viewer for assimp supported assets
Group: Development/Libraries/C and C++
%description viewer
Assimp is a library to load and process geometric scenes from various data formats.
It is tailored at typical game scenarios by supporting a node hierarchy, static or skinned meshes,
materials, bone animations and potential texture data. The library is not designed for speed,
it is primarily useful for importing assets from various sources once and storing it in a
engine-specific format for easy and fast every-day-loading.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
%cmake \
-DASSIMP_LIB_INSTALL_DIR="%{_libdir}"
make %{?_smp_mflags}
%install
%cmake_install
find %{buildroot} -type f -name "*.la" -delete -print
%check
pushd build/test
LD_LIBRARY_PATH=%{buildroot}%{_libdir} ctest --output-on-failure --force-new-ctest-process
popd
%post -n lib%{name}%{sover} -p /sbin/ldconfig
%postun -n lib%{name}%{sover} -p /sbin/ldconfig
%files -n lib%{name}%{sover}
%license LICENSE
%{_libdir}/libassimp.so.%{sover}*
%files devel
%doc README CHANGES CREDITS
%{_includedir}/assimp/
%{_bindir}/assimp
%{_libdir}/libassimp.so
%{_libdir}/cmake/*
%{_libdir}/pkgconfig/assimp.pc
%files viewer
%license LICENSE
%{_bindir}/assimp_qt_viewer
%changelog