File orocos_kdl.spec of Package orocos_kdl

#
# spec file for package orocus_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:           orocos-kdl
Version:        1.5.1 
Release:        0%{?dist}
Summary:        The orocos_kdl package
License:        LGPL-2.0-or-later
Group:          Development/Libraries 
Url:            https://github.com/orocos/orocos_kinematics_dynamics
Source:         orocos_kdl-%{version}.tar.bz2
Requires:       gcc-c++
Requires:       eigen3-devel
Requires:       pkg-config
BuildRequires:  gcc-c++
BuildRequires:  cmake
BuildRequires:  cppunit-devel
BuildRequires:  eigen3-devel

%description
This package contains a recent version of the Kinematics and Dynamics Library
(KDL), distributed by the Orocos Project.

%package -n     lib%{name}%{sover}
Summary:        Library for %{name}
Group:          Development/Libraries
Provides:       lib%{name}
Requires:       gcc-c++
Requires:       eigen3-devel
Requires:       pkg-config
BuildRequires:  gcc-c++
BuildRequires:  cmake
BuildRequires:  cppunit-devel
BuildRequires:  eigen3-devel

%description -n lib%{name}%{sover}
This library package contains a recent version of the Kinematics and Dynamics Library
(KDL), distributed by the Orocos Project.

%package -n     %{name}-devel
Summary:        Development files for %{name}
Group:          Development/Libraries
Requires:       gcc-c++
Requires:       eigen3-devel
Requires:       lib%{name}%{sover} >= %{version}
Requires:       pkg-config
BuildRequires:  gcc-c++
BuildRequires:  cmake
BuildRequires:  cppunit-devel
BuildRequires:  eigen3-devel

%description -n %{name}-devel
This package contains the development files for the Kinematics and Dynamics Library
(KDL), distributed by the Orocos Project.

%prep
%autosetup -n orocos_kdl-%{version}

%build
%cmake \
    -DENABLE_TESTS:BOOL=ON

%cmake_build

%install
%cmake_install 

%post -n lib%{name}%{sover} -p /sbin/ldconfig
%postun -n lib%{name}%{sover} -p /sbin/ldconfig

%files -n lib%{name}%{sover}
%defattr(-,root,root)
%{_libdir}/lib%{name}.so.*

%files -n %{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/kdl
%{_includedir}/kdl/*.*
%dir %{_includedir}/kdl/utilities
%{_includedir}/kdl/utilities/*.*
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/*.pc
%dir %{_datadir}/orocos_kdl
%dir %{_datadir}/orocos_kdl/cmake
%{_datadir}/orocos_kdl/cmake/*.cmake

%changelog

openSUSE Build Service is sponsored by