2013-03-07 14:43:10 +01:00
|
|
|
#
|
2013-09-04 15:31:32 +02:00
|
|
|
# spec file for package assimp
|
2013-03-07 14:43:10 +01:00
|
|
|
#
|
2020-05-31 18:27:49 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2013-03-07 14:43:10 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-01-17 19:35:04 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-03-07 14:43:10 +01:00
|
|
|
#
|
|
|
|
|
2013-09-04 15:31:32 +02:00
|
|
|
|
2020-05-31 18:27:49 +02:00
|
|
|
%define sover 5
|
2013-03-07 14:43:10 +01:00
|
|
|
Name: assimp
|
2020-05-31 18:27:49 +02:00
|
|
|
Version: 5.0.1
|
2013-03-07 14:43:10 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Library to load and process 3D scenes from various data formats
|
2019-01-17 13:22:32 +01:00
|
|
|
License: BSD-3-Clause AND MIT
|
2013-03-07 14:43:10 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-05-31 18:27:49 +02:00
|
|
|
URL: https://assimp.org/
|
2020-07-14 08:44:55 +02:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2020-05-31 18:27:49 +02:00
|
|
|
Patch0: do-not-install-irrXML.patch
|
2020-06-11 00:17:54 +02:00
|
|
|
# PATCH-FIX-UPSTREAM -- Don't hardcode the library and binary location
|
|
|
|
Patch1: 0001-use-GNUInstallDirs-where-possible.patch
|
2013-03-07 14:43:10 +01:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: dos2unix
|
2016-09-05 19:57:29 +02:00
|
|
|
BuildRequires: gcc-c++
|
2019-01-17 13:22:32 +01:00
|
|
|
BuildRequires: irrlicht-devel
|
|
|
|
BuildRequires: libboost_headers-devel
|
2016-09-05 19:57:29 +02:00
|
|
|
BuildRequires: pkgconfig
|
2013-03-07 14:43:10 +01:00
|
|
|
BuildRequires: zlib-devel
|
2019-01-17 13:22:32 +01:00
|
|
|
BuildRequires: pkgconfig(IL)
|
|
|
|
BuildRequires: pkgconfig(Qt5OpenGL)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
|
|
BuildRequires: pkgconfig(glu)
|
|
|
|
BuildRequires: pkgconfig(minizip)
|
2013-03-07 14:43:10 +01:00
|
|
|
|
|
|
|
%description
|
2019-01-17 13:22:32 +01:00
|
|
|
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.
|
2013-03-07 14:43:10 +01:00
|
|
|
|
2017-05-04 16:08:57 +02:00
|
|
|
%package -n lib%{name}%{sover}
|
2019-01-17 19:35:04 +01:00
|
|
|
Summary: Library to load and process 3D scenes from various data formats
|
2016-06-18 07:49:59 +02:00
|
|
|
Group: System/Libraries
|
2013-03-07 14:43:10 +01:00
|
|
|
|
2017-05-04 16:08:57 +02:00
|
|
|
%description -n lib%{name}%{sover}
|
2019-01-17 13:22:32 +01:00
|
|
|
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.
|
2013-03-07 14:43:10 +01:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Headers, docs and command-line utility for %{name}
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: glibc-devel
|
2017-05-04 16:08:57 +02:00
|
|
|
Requires: lib%{name}%{sover} = %{version}
|
2013-03-07 14:43:10 +01:00
|
|
|
Requires: libstdc++-devel
|
|
|
|
|
|
|
|
%description devel
|
2019-01-17 13:22:32 +01:00
|
|
|
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.
|
|
|
|
|
2013-03-07 14:43:10 +01:00
|
|
|
%prep
|
2020-06-11 00:17:54 +02:00
|
|
|
%autosetup -p1
|
2016-09-05 19:57:29 +02:00
|
|
|
|
|
|
|
%build
|
2020-06-11 00:17:54 +02:00
|
|
|
%cmake
|
|
|
|
|
|
|
|
%cmake_build
|
2013-03-07 14:43:10 +01:00
|
|
|
|
|
|
|
%install
|
2016-06-18 07:49:59 +02:00
|
|
|
%cmake_install
|
2016-09-05 19:57:29 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2013-03-07 14:43:10 +01:00
|
|
|
|
2019-01-17 13:22:32 +01:00
|
|
|
%check
|
|
|
|
pushd build/test
|
|
|
|
LD_LIBRARY_PATH=%{buildroot}%{_libdir} ctest --output-on-failure --force-new-ctest-process
|
|
|
|
popd
|
|
|
|
|
2017-05-04 16:08:57 +02:00
|
|
|
%post -n lib%{name}%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name}%{sover} -p /sbin/ldconfig
|
2013-03-07 14:43:10 +01:00
|
|
|
|
2017-05-04 16:08:57 +02:00
|
|
|
%files -n lib%{name}%{sover}
|
2019-01-17 13:22:32 +01:00
|
|
|
%license LICENSE
|
|
|
|
%{_libdir}/libassimp.so.%{sover}*
|
2013-03-07 14:43:10 +01:00
|
|
|
|
|
|
|
%files devel
|
2019-01-17 13:22:32 +01:00
|
|
|
%doc README CHANGES CREDITS
|
2016-06-18 07:49:59 +02:00
|
|
|
%{_includedir}/assimp/
|
2013-03-07 14:43:10 +01:00
|
|
|
%{_bindir}/assimp
|
|
|
|
%{_libdir}/libassimp.so
|
2016-09-05 19:57:29 +02:00
|
|
|
%{_libdir}/cmake/*
|
2013-03-07 14:43:10 +01:00
|
|
|
%{_libdir}/pkgconfig/assimp.pc
|
|
|
|
|
|
|
|
%changelog
|