Package simbody: Specfile

Name:    simbody
Version: 3.7
Release: alt1.2

Summary: High-performance C++ multibody dynamics/physics library for simulating articulated biomechanical and mechanical systems
License: Apache-2.0
Group:   Sciences/Mathematics

Packager: Andrey Cherepanov <>

Source: %name-%version.tar
Patch: simbody-e2k.patch

BuildRequires(pre): cmake
BuildRequires(pre): rpm-build-ninja
BuildRequires: gcc-c++
BuildRequires: libfreeglut-devel
BuildRequires: liblapack-devel
BuildRequires: libGL-devel

Simbody is a high-performance, open-source toolkit for science- and
engineering-quality simulation of articulated mechanisms, including
biomechanical structures such as human and animal skeletons, mechanical systems
like robots, vehicles, and machines, and anything else that can be described as
a set of rigid bodies interconnected by joints, influenced by forces and
motions, and restricted by constraints. Simbody includes a multibody dynamics
library for modeling motion in generalized/internal coordinates in O(n) time.
This is sometimes called a Featherstone-style physics engine.

%package -n lib%name
Summary: Library of %name
Group: System/Libraries

%description -n lib%name

%package -n lib%{name}-devel
Summary: Development files for %name
Group: Development/C++

%description -n lib%{name}-devel

%package examples
Summary: Examples of %name
Group: Development/Documentation

%description examples

%package docs
Summary: Documentation for %name
Group: Development/Documentation

%description docs

%ifarch %e2k
%patch -p1

%cmake -GNinja -Wno-dev
%ninja_build -C "%_cmake__builddir"

%ninja_install -C "%_cmake__builddir"

%files -n lib%name

%files -n lib%{name}-devel

%files examples

%files docs

* Sun Aug 27 2023 Michael Shigorin <> 3.7-alt1.2
- E2K: fix simbody-e2k.patch (ilyakurdyukov@)

* Sat Aug 26 2023 Michael Shigorin <> 3.7-alt1.1
- E2K: fixed build with lcc 1.26
  (patch by ilyakurdyukov@; mcst#8270, #8271)

* Thu May 18 2023 Andrey Cherepanov <> 3.7-alt1
- Initial build for Sisyphus