Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37744045
en ru br
Репозитории ALT

Группа :: Система/Библиотеки
Пакет: bullet

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_disable demo
%def_disable static

Name: bullet
Version: 2.75
Release: alt4
License: Zlib
Summary: Professional 3D collision detection library
Group: System/Libraries
Packager: Slava Dubrovskiy <dubrsl at altlinux.ru>
Url: http://www.bulletphysics.com
Source: http://bullet.googlecode.com/files/%name-%version.tar.gz
Patch: %name-%version-alt-changes.patch

# Automatically added by buildreq on Fri Sep 18 2009

BuildRequires: rpm-build-compat ccmake gcc-c++ libGL-devel libfreeglut-devel xorg-xf86vidmodeproto-devel

%description
Bullet is a professional open source multi-threaded
3D Collision Detection and Rigid Body Dynamics Library
for games and animation.

%package demo
Summary: A demo programs using bullet library
Group: Graphics
Requires: lib%name = %version-%release

%description demo
A demo programs using bullet library.

%package -n lib%name
Summary: Professional 3D collision detection library
Group: System/Libraries

%description -n lib%name
Bullet 3D Game Multiphysics Library provides state of the art
collision detection, soft body and rigid body dynamics.

* Used by many game companies in AAA titles on Playstation 3,
 XBox 360, Nintendo Wii and PC
* Modular extendible C++ design with hot-swap of most components
* Optimized back-ends with multi-threaded support for Playstation 3
 Cell SPU and other platforms
* Discrete and continuous collision detection (CCD)
* Swept collision queries
* Ray casting with custom collision filtering
* Generic convex support (using GJK), capsule, cylinder, cone, sphere,
 box and non-convex triangle meshes.
* Rigid body dynamics including constraint solvers, generic
 constraints, ragdolls, hinge, ball-socket
* Support for constraint limits and motors
* Soft body support including cloth, rope and deformable
* Bullet is integrated into Blender 3D and provides a Maya Plugin
* Supports import and export into COLLADA 1.4 Physics format
* Support for dynamic deformation of non-convex triangle meshes, by
 refitting the acceleration structures

The Library is free for commercial use and open source
under the ZLib License.

%package -n lib%name-devel
Summary: Development headers for bullet
Group: Development/C
Requires: lib%name = %version-%release

%description -n lib%name-devel
Development headers for bullet 3D collision library.

%package -n lib%name-devel-static
Summary: Static library for bullet
Group: Development/C

%description -n lib%name-devel-static
Static library for bullet

%prep
%setup -q -n %name-%version
%patch -p1

%__subst "s|/usr/lib|%_libdir|g" %name.pc
%__subst "s|PACKAGE_VERSION|%version|g" %name.pc

%build
%cmake \
-DBUILD_EXTRAS=OFF \
%{?_disable_demo:-DBUILD_DEMOS=OFF} \
%{?_disable_static:-DBUILD_SHARED_LIBS=ON}

%make_build

%install
%make install DESTDIR=%buildroot
install -Dm644 %name.pc %buildroot%_libdir/pkgconfig/%name.pc

%if_enabled demo
#BasicDemo TerrainDemo VehicleDemo CcdPhysicsDemo ColladaDemo SoftDemo AllBulletDemos MultiThreadedDemo
demos=`ls -1 *Demo`
for i in $demos AllBulletDemos ContinuousConvexCollision BulletDino Raytracer UserCollisionAlgorithm; do
   install -m 755 $i %buildroot%_bindir/bullet-$i
done

%files demo
%_bindir/%name-*
%endif

%files -n lib%name
%_libdir/*.so.*

%files -n lib%name-devel
%doc AUTHORS README LICENSE ChangeLog NEWS VERSION *.pdf
%_libdir/pkgconfig/%name.pc
%_includedir/*
%if_disabled static
%_libdir/*.so
%else
%files -n lib%name-devel-static
%_libdir/*.a
%endif #static

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin