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
|
|
|
#
|
2017-05-04 16:08:57 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-09-04 15:31:32 +02:00
|
|
|
|
2017-05-04 16:08:57 +02:00
|
|
|
%define sover 3
|
2013-03-07 14:43:10 +01:00
|
|
|
Name: assimp
|
2016-09-05 19:57:29 +02:00
|
|
|
Version: 3.3.1
|
2013-03-07 14:43:10 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Library to load and process 3D scenes from various data formats
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Libraries/C and C++
|
2016-09-05 19:57:29 +02:00
|
|
|
Url: http://assimp.org/
|
2017-05-04 16:08:57 +02:00
|
|
|
#Source: https://github.com/assimp/assimp/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source: %{name}-%{version}-suse.tar.gz
|
|
|
|
Source9: sanitize_source.sh
|
2013-03-07 14:43:10 +01:00
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: dos2unix
|
2016-09-05 19:57:29 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: pkgconfig
|
2013-03-07 14:43:10 +01:00
|
|
|
BuildRequires: zlib-devel
|
|
|
|
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.
|
|
|
|
|
2017-05-04 16:08:57 +02:00
|
|
|
%package -n lib%{name}%{sover}
|
2013-03-07 14:43:10 +01:00
|
|
|
Summary: Headers, docs and command-line utility for %{name}
|
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}
|
2013-03-07 14:43:10 +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.
|
|
|
|
|
|
|
|
%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
|
|
|
|
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
|
2016-09-05 19:57:29 +02:00
|
|
|
%setup -q
|
2016-06-18 07:49:59 +02:00
|
|
|
|
2016-09-05 19:57:29 +02:00
|
|
|
dos2unix LICENSE CREDITS CHANGES README
|
2016-06-18 07:49:59 +02:00
|
|
|
find . -type f -name "*.lib" -delete
|
2016-09-05 19:57:29 +02:00
|
|
|
|
|
|
|
%build
|
2016-06-18 07:49:59 +02:00
|
|
|
%cmake \
|
2013-03-07 14:43:10 +01:00
|
|
|
-DCMAKE_BUILD_TYPE="Release" \
|
2016-06-18 07:49:59 +02:00
|
|
|
-DASSIMP_LIB_INSTALL_DIR="%{_libdir}"
|
2016-09-05 19:57:29 +02:00
|
|
|
CFLAGS="%{optflags}" make %{?_smp_mflags}
|
2013-03-07 14:43:10 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf examples/.deps
|
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
|
|
|
|
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}
|
2013-03-07 14:43:10 +01:00
|
|
|
%defattr(-,root,root)
|
2016-09-05 19:57:29 +02:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
%license CREDITS LICENSE
|
|
|
|
%else
|
|
|
|
%doc CREDITS LICENSE
|
|
|
|
%endif
|
2013-03-07 14:43:10 +01:00
|
|
|
%{_libdir}/libassimp.so.3*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2016-09-05 19:57:29 +02:00
|
|
|
%doc README CHANGES
|
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
|