2013-02-01 22:24:55 +00:00
|
|
|
#
|
|
|
|
# spec file for package ode
|
|
|
|
#
|
2016-05-26 18:21:50 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-02-01 22:24:55 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2016-05-26 18:21:50 +00:00
|
|
|
|
|
|
|
%define so_maj 3
|
|
|
|
%define lname libode%{so_maj}
|
2013-02-01 22:24:55 +00:00
|
|
|
|
|
|
|
Name: ode
|
2016-05-26 18:21:50 +00:00
|
|
|
Url: http://ode.org/
|
|
|
|
Summary: Open Dynamics Engine Library
|
|
|
|
License: LGPL-2.1+ or BSD-3-Clause or Zlib
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Version: 0.13
|
2013-02-01 22:24:55 +00:00
|
|
|
Release: 0
|
2016-05-26 18:21:50 +00:00
|
|
|
Source0: https://sourceforge.net/projects/opende/files/ODE/%{version}/ode-%{version}.tar.bz2
|
|
|
|
Source9: ode-config.1
|
|
|
|
|
|
|
|
BuildRequires: Mesa-devel
|
|
|
|
BuildRequires: freeglut-devel
|
2013-02-01 22:24:55 +00:00
|
|
|
BuildRequires: gcc-c++
|
2016-05-26 18:21:50 +00:00
|
|
|
BuildRequires: pkgconfig
|
2013-02-01 22:24:55 +00:00
|
|
|
|
|
|
|
%description
|
2016-05-26 18:21:50 +00:00
|
|
|
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.
|
2013-02-01 22:24:55 +00:00
|
|
|
|
|
|
|
%package devel
|
2016-05-26 18:21:50 +00:00
|
|
|
Summary: Open Dynamics Engine Library development files
|
2013-02-01 22:24:55 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2016-05-26 18:21:50 +00:00
|
|
|
Requires: %{lname} = %{version}
|
|
|
|
Provides: libode-devel = %{version}
|
2013-02-01 22:24:55 +00:00
|
|
|
|
|
|
|
%description devel
|
2016-05-26 18:21:50 +00:00
|
|
|
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.
|
2013-02-01 22:24:55 +00:00
|
|
|
|
|
|
|
%prep
|
2016-05-26 18:21:50 +00:00
|
|
|
%setup -q -n ode-%{version}
|
2013-02-01 22:24:55 +00:00
|
|
|
|
|
|
|
%build
|
2016-05-26 18:21:50 +00:00
|
|
|
#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}
|
2013-02-01 22:24:55 +00:00
|
|
|
|
|
|
|
%install
|
2016-05-26 18:21:50 +00:00
|
|
|
make V=1 %{?_smp_mflags} DESTDIR=%{buildroot} install
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
|
gzip -c9 %{SOURCE9} | 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}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc LICENSE.TXT README.txt CHANGELOG.txt COPYING
|
|
|
|
%{_libdir}/libode.so.%{so_maj}.*
|
2013-02-01 22:24:55 +00:00
|
|
|
|
|
|
|
%files devel
|
2016-05-26 18:21:50 +00:00
|
|
|
%defattr(-,root,root)
|
2013-02-01 22:24:55 +00:00
|
|
|
%{_bindir}/ode-config
|
2016-05-26 18:21:50 +00:00
|
|
|
%{_mandir}/man1/ode-config.1.gz
|
|
|
|
%{_includedir}/ode
|
2013-02-01 22:24:55 +00:00
|
|
|
%{_libdir}/libode.so
|
2016-05-26 18:21:50 +00:00
|
|
|
%{_libdir}/libode.so.%{so_maj}
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2013-02-01 22:24:55 +00:00
|
|
|
|
|
|
|
%changelog
|