Accepting request 424819 from home:susnux:branches:games
Update OBS-URL: https://build.opensuse.org/request/show/424819 OBS-URL: https://build.opensuse.org/package/show/games/assimp?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
e5ddae9625
commit
abbd879d40
42
assimp.spec
42
assimp.spec
@@ -18,22 +18,18 @@
|
||||
|
||||
%define soname 3
|
||||
Name: assimp
|
||||
Version: 3.2
|
||||
Version: 3.3.1
|
||||
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/
|
||||
Source: https://github.com/assimp/assimp/archive/v%{version}.tar.gz
|
||||
Url: http://assimp.org/
|
||||
Source: https://github.com/assimp/assimp/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
BuildRequires: boost-devel
|
||||
BuildRequires: c++_compiler
|
||||
BuildRequires: cmake
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: libstdc++-devel
|
||||
BuildRequires: make
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: unzip
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: zlib-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
@@ -50,7 +46,6 @@ Assimp is a library to load and process geometric scenes from various data forma
|
||||
%package devel
|
||||
Summary: Headers, docs and command-line utility for %{name}
|
||||
Group: Development/Libraries/C and C++
|
||||
BuildRequires: pkgconfig
|
||||
Requires: glibc-devel
|
||||
Requires: lib%{name}%{soname} = %{version}
|
||||
Requires: libstdc++-devel
|
||||
@@ -59,42 +54,41 @@ 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}
|
||||
%setup -q
|
||||
|
||||
dos2unix LICENSE CREDITS CHANGES README
|
||||
find . -type f -name "*.lib" -delete
|
||||
|
||||
%build
|
||||
dos2unix LICENSE
|
||||
dos2unix CREDITS
|
||||
dos2unix CHANGES
|
||||
dos2unix README
|
||||
find . -type f -name "*.lib" -delete
|
||||
%cmake \
|
||||
-DCMAKE_BUILD_TYPE="Release" \
|
||||
-DCMAKE_INSTALL_PREFIX="%{_prefix}" \
|
||||
-DASSIMP_LIB_INSTALL_DIR="%{_libdir}"
|
||||
export CFLAGS="%{optflags}"
|
||||
make %{?_smp_mflags}
|
||||
CFLAGS="%{optflags}" make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf examples/.deps
|
||||
%cmake_install
|
||||
rm -f %{buildroot}%{_libdir}/*.la
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
|
||||
%post -n lib%{name}%{soname} -p /sbin/ldconfig
|
||||
|
||||
%postun -n lib%{name}%{soname} -p /sbin/ldconfig
|
||||
|
||||
%files -n lib%{name}%{soname}
|
||||
%defattr(-,root,root)
|
||||
%doc CREDITS README LICENSE
|
||||
%if 0%{?suse_version} > 1320
|
||||
%license CREDITS LICENSE
|
||||
%else
|
||||
%doc CREDITS LICENSE
|
||||
%endif
|
||||
%{_libdir}/libassimp.so.3*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%doc CREDITS README LICENSE CHANGES samples/
|
||||
%doc README CHANGES
|
||||
%{_includedir}/assimp/
|
||||
%{_bindir}/assimp
|
||||
%{_libdir}/libassimp.so
|
||||
%{_libdir}/cmake/
|
||||
%{_libdir}/cmake/*
|
||||
%{_libdir}/pkgconfig/assimp.pc
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user