File python-orocos-kdl.spec of Package python_orocos_kdl

#
# spec file for package python_orocos_kdl
#
# Copyright (c) 2021 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 sover   1_5
Name:           python-orocos-kdl
Version:        1.5.3
Release:        0%{?dist}
Summary:        The python_orocos_kdl package
License:        LGPL-2.0-or-later
Group:          Development/Libraries
Url:            https://github.com/orocos/orocos_kinematics_dynamics
Source:         python_orocos_kdl-release.tar.bz2
BuildRequires:  python-rpm-macros
BuildRequires:  orocos-kdl-devel
BuildRequires:  python3-sip-devel
BuildRequires:  cmake
BuildRequires:  eigen3-devel
BuildRequires:  pkg-config
BuildRequires:  %{python_module pybind11}
BuildRequires:  python3-devel

%package -n     %{python_flavor}-pykdl
Summary:        Library for %{name}
Group:          Development/Libraries

%description
This package contains the python bindings PyKDL for the Kinematics and Dynamics
Library (KDL), distributed by the Orocos Project.

%description -n %{python_flavor}-pykdl
This package contains the python bindings PyKDL for the Kinematics and Dynamics
Library (KDL), distributed by the Orocos Project.

%prep
%autosetup -n python_orocos_kdl-release

%build
%cmake \
    -DPYTHON_VERSION=3 \
    -DPYTHON_SITE_PACKAGES_INSTALL_DIR=%{python_sitelib}

%cmake_build

%install
%cmake_install

%files -n     %{python_flavor}-pykdl
%defattr(-,root,root)
%{python_sitelib}/

%changelog
openSUSE Build Service is sponsored by