%global sover 1.5 Name: orocos-kdl Version: 1.5.1 Release: 1%{?dist} Summary: A framework for modeling and computation of kinematic chains License: LGPLv2+ URL: http://www.orocos.org/kdl.html Source0: v1.5.1.tar.gz Patch0: orocos-kdl.pybind11.patch Patch1: orocos-kdl.python-site-packages.patch BuildRequires: cmake BuildRequires: cppunit-devel BuildRequires: doxygen BuildRequires: eigen3-devel BuildRequires: gcc-c++ BuildRequires: graphviz Requires: eigen3 %description The Kinematics and Dynamics Library (KDL) develops an application independent framework for modeling and computation of kinematic chains, such as robots, bio-mechanical human models, computer-animated figures, machine tools, etc. It provides class libraries for geometrical objects (point, frame, line,... ), kinematic chains of various families (serial, humanoid, parallel, mobile,... ), and their motion specification and interpolation. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package doc Summary: Documentation for %{name} BuildArch: noarch %description doc The %{name}-doc package contains documentation for %{name}. %package -n python%{python3_pkgversion}-pykdl Summary: Python module for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-pybind11 %{?python_provide:%python_provide python%{python3_pkgversion}-pykdl} %description -n python%{python3_pkgversion}-pykdl The python%{python3_pkgversion}-pykdl package contains the Python module for %{name}. %prep %autosetup -p 1 -n orocos_kinematics_dynamics-%{version} %build pushd orocos_kdl %cmake \ -DENABLE_TESTS:BOOL=ON . %make_build %make_build docs rm doc/kdl.tag popd pushd python_orocos_kdl mkdir -p include/kdl cp -a ../orocos_kdl/src/* include/kdl CXXFLAGS="${CXXFLAGS:-%optflags} -Iinclude" \ %cmake \ -DPYTHON_SITE_PACKAGES_INSTALL_DIR=%{python3_sitearch} \ -DPYTHON_VERSION=3 . %make_build popd %install pushd orocos_kdl %make_install popd pushd python_orocos_kdl %make_install popd %check pushd orocos_kdl %make_build check popd %files %doc README.md %license orocos_kdl/COPYING %{_libdir}/*.so.%{sover}* %files devel %{_includedir}/* %{_datadir}/orocos_kdl %{_libdir}/*.so %{_libdir}/pkgconfig/* %files doc %doc orocos_kdl/doc/api/html %files -n python%{python3_pkgversion}-pykdl %{python3_sitearch}/PyKDL.so %changelog * Wed May 3 2023 will_niutao - 1.5.1-1 - Change upstream to https://github.com/orocos/orocos_kinematics_dynamics, and rename the package to orocos-kdl * Mon Aug 8 2022 Chenyx - 1.4.0-1 - License compliance rectification * Thu 12-15-2020 openEuler Buildteam - Package init