File assimp.spec of Package assimp

#
# spec file for package assimp
#
# Copyright (c) 2010 SUSE LINUX Products 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/
#

# norootforbuild

Name:           assimp
Version:        2.0.863
Release:        1
Summary:        Open Asset Import Libray
License:        BSD
URL:            http://assimp.sourceforge.net
Group:          System/Libraries
Source0:        assimp-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  cmake, gcc-c++, boost-devel, dos2unix

%description
Import various well-known 3D model formats in an uniform manner. The most 
recent version can export the 3D files again and is therefore suitable as 
general-purpose 3D model converter.


%package        devel
Summary:        Development files for %{name}
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}-%{release}
BuildRequires:  pkgconfig

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.


%prep
%setup -q
dos2unix README
dos2unix LICENSE


%build
mkdir build
pushd .
cd build
cmake -DCMAKE_BUILD_TYPE="Release" \
      -DCMAKE_INSTALL_PREFIX=%{_prefix} \
      -DLIB_INSTALL_DIR=%{_libdir} \
      ..
make %{?_smp_mflags}
popd


%install
pushd .
cd build
make install DESTDIR=%{buildroot}
popd
find %{buildroot} -name '*.la' -exec rm -f {} ';'


%clean
rm -rf %{buildroot}


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files
%defattr(-,root,root,-)
%doc LICENSE README
%{_libdir}/*.so.*
%attr(0755, root, root) %{_bindir}/%{name}

%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc

%changelog
openSUSE Build Service is sponsored by