ode/ode.spec
Ferdinand Thiessen 9884c96788 Accepting request 540255 from home:avindra
- Update to 0.15.2:
  * Fixed: A bug with dWorldStep assigning both body feedbacks into
    the first body variables fixed 
- Includes changes from 0.15.1:
  * Changed: dSTATIC_ARRAY_SIZE() macro has been added
  * code refactoring, cleanup, optimizations
- Includes changes from 0.15, 0.14, 0.13.1:
  * Changed: dSTATIC_ARRAY_SIZE() macro has been added
  * Changed: Project generation options changed to enable built-in
    multithreaded threading by default
  * Changed: dWorldStep threaded execution extended to final steps
    on constraint force application and body position updates
  * New: dAddVectorScaledVector3() function has been added
  * New: CCD_ATAN2() macro added for libccd
  * New: dAddThreeScaledVectors3() function added in the odemath.h
  * Deprecations:
    + dGeomTriMeshDataGetBuff (use dGeomTriMeshDataGet)
    + dGeomTriMeshDataSetBuff (use dGeomTriMeshDataSet)
    + ddGeomTriMeshDataPreprocess (use GeomTriMeshDataPreprocess2)
  * Changed: Trimesh-Convex edge contact normals have been changed
    to retain their inclination along edges as generated by libCCD
  * Changed: A finer control over OU features implemented and OU
    basic features have been made available by default
  * Fixed: An access beyond the edges array has been fixed in the
    case if last edge was a boundary one
  * Fixed: A bug fixed with HashSpace calling big boxes collision
    twice (both straight and reverse geometries order)
- For the full list of changes, see:
  * https://bitbucket.org/odedevs/ode/compare/0.15.2%0D0.13
- cleanup with spec-cleaner
- move to new bitbucket url
- use %make_install macro

OBS-URL: https://build.opensuse.org/request/show/540255
OBS-URL: https://build.opensuse.org/package/show/games/ode?expand=0&rev=6
2017-11-12 16:35:29 +00:00

115 lines
3.7 KiB
RPMSpec

#
# spec file for package ode
#
# Copyright (c) 2017 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
# 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/
#
%define so_maj 6
%define lname libode%{so_maj}
Name: ode
Version: 0.15.2
Release: 0
Summary: Open Dynamics Engine Library
License: LGPL-2.1+ OR BSD-3-Clause OR Zlib
Group: Development/Libraries/C and C++
Url: http://ode.org/
Source0: https://bitbucket.org/odedevs/ode/downloads/%{name}-%{version}.tar.gz
Source1: ode-config.1
Patch0: ode-iso-cpp.patch
BuildRequires: Mesa-devel
BuildRequires: freeglut-devel
BuildRequires: gcc-c++
BuildRequires: pkgconfig
%description
ODE is an open source, high performance library for simulating rigid
body dynamics. It is fully featured, stable, mature and platform
independent with an easy to use C/C++ API. It has advanced joint types
and integrated collision detection with friction. ODE is useful for
simulating vehicles, objects in virtual reality environments and
virtual creatures. It is currently used in many computer games, 3D
authoring tools and simulation tools.
%package -n %{lname}
Summary: Open Dynamics Engine Library development files
Group: System/Libraries
%description -n %{lname}
ODE is an open source, high performance library for simulating rigid
body dynamics. It is fully featured, stable, mature and platform
independent with an easy to use C/C++ API. It has advanced joint types
and integrated collision detection with friction. ODE is useful for
simulating vehicles, objects in virtual reality environments and
virtual creatures. It is currently used in many computer games, 3D
authoring tools and simulation tools.
%package devel
Summary: Open Dynamics Engine Library development files
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}
Provides: libode-devel = %{version}
%description devel
ODE is an open source, high performance library for simulating rigid
body dynamics. It is fully featured, stable, mature and platform
independent with an easy to use C/C++ API. It has advanced joint types
and integrated collision detection with friction. ODE is useful for
simulating vehicles, objects in virtual reality environments and
virtual creatures. It is currently used in many computer games, 3D
authoring tools and simulation tools.
%prep
%setup -q -n ode-%{version}
%patch0 -p1
%build
#autoreconf -fi
CFLAGS="%{optflags} -fno-strict-aliasing"
CXXFLAGS="$CFLAGS"
export CFLAGS CXXFLAGS
export X_LIBS="-lX11"
%configure --enable-shared --disable-static
make V=1 %{?_smp_mflags}
%install
%make_install
mkdir -p %{buildroot}%{_mandir}/man1
gzip -c9 %{SOURCE1} | tee -a %{buildroot}%{_mandir}/man1/ode-config.1.gz
find %{buildroot} -type f -name "*.la" -delete -print
%ifarch %{ix86}
# Fail.
%else
%check
make V=1 %{?_smp_mflags} check
%endif
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files -n %{lname}
%doc LICENSE.TXT
%{_libdir}/libode.so.%{so_maj}.*
%files devel
%{_bindir}/ode-config
%{_mandir}/man1/ode-config.1%{ext_man}
%{_includedir}/ode
%{_libdir}/libode.so
%{_libdir}/libode.so.%{so_maj}
%{_libdir}/pkgconfig/*.pc
%changelog