Accepting request 403136 from home:jengelh:branches:games

- Update to new upstream release 3.2

OBS-URL: https://build.opensuse.org/request/show/403136
OBS-URL: https://build.opensuse.org/package/show/games/assimp?expand=0&rev=3
This commit is contained in:
Matthias Mailänder
2016-06-18 05:49:59 +00:00
committed by Git OBS Bridge
parent 4c5b7926ee
commit e5ddae9625
4 changed files with 32 additions and 24 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package assimp
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2016 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
@@ -18,13 +18,13 @@
%define soname 3
Name: assimp
Version: 3.0.1270
Version: 3.2
Release: 0
Summary: Library to load and process 3D scenes from various data formats
License: BSD-3-Clause
Group: Development/Libraries/C and C++
Url: http://assimp.sourceforge.net/
Source0: http://sourceforge.net/projects/assimp/files/assimp-3.0/assimp--%{version}-source-only.zip
Source: https://github.com/assimp/assimp/archive/v%{version}.tar.gz
BuildRequires: boost-devel
BuildRequires: c++_compiler
BuildRequires: cmake
@@ -42,7 +42,7 @@ Assimp is a library to load and process geometric scenes from various data forma
%package -n lib%{name}%{soname}
Summary: Headers, docs and command-line utility for %{name}
Group: Development/Libraries/C and C++
Group: System/Libraries
%description -n lib%{name}%{soname}
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.
@@ -59,23 +59,24 @@ Requires: libstdc++-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
%setup -q -n assimp--%{version}-source-only
%setup -q -n assimp-%{version}
%build
dos2unix LICENSE
dos2unix CREDITS
dos2unix CHANGES
dos2unix README
%build
cmake . \
find . -type f -name "*.lib" -delete
%cmake \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DLIB_INSTALL_DIR=%{_libdir}
-DCMAKE_INSTALL_PREFIX="%{_prefix}" \
-DASSIMP_LIB_INSTALL_DIR="%{_libdir}"
export CFLAGS="%{optflags}"
make %{?_smp_mflags}
%install
rm -rf examples/.deps
make DESTDIR=%{buildroot} install
%cmake_install
rm -f %{buildroot}%{_libdir}/*.la
%post -n lib%{name}%{soname} -p /sbin/ldconfig
@@ -89,18 +90,11 @@ rm -f %{buildroot}%{_libdir}/*.la
%files devel
%defattr(-,root,root)
%doc CREDITS README LICENSE CHANGES Documentation.chm CommandLine.chm samples/
%dir %{_includedir}/assimp
%dir %{_includedir}/assimp/Compiler
%dir %{_libdir}/cmake/assimp-3.0
%{_includedir}/assimp/Compiler/*.h
%{_includedir}/assimp/*.h
%{_includedir}/assimp/*.inl
%{_includedir}/assimp/*.hpp
%doc CREDITS README LICENSE CHANGES samples/
%{_includedir}/assimp/
%{_bindir}/assimp
%{_libdir}/libassimp.so
%{_libdir}/cmake/assimp-3.0/assimp-config.cmake
%{_libdir}/cmake/assimp-3.0/assimp-config-version.cmake
%{_libdir}/cmake/
%{_libdir}/pkgconfig/assimp.pc
%changelog