!7 直接从上游社区选择软件版本,并更新到1.5.1
From: @will_niutao Reviewed-by: @anchuanxu Signed-off-by: @davidhan008, @anchuanxu
This commit is contained in:
commit
cf12ade4a3
BIN
1.4.0.tar.gz
BIN
1.4.0.tar.gz
Binary file not shown.
12
orocos-kdl.pybind11.patch
Normal file
12
orocos-kdl.pybind11.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff --color -ur orocos_kinematics_dynamics-1.5.1/python_orocos_kdl/CMakeLists.txt orocos_kinematics_dynamics-1.5.1.pybind11/python_orocos_kdl/CMakeLists.txt
|
||||
--- orocos_kinematics_dynamics-1.5.1/python_orocos_kdl/CMakeLists.txt 2021-09-12 08:58:27.000000000 +0200
|
||||
+++ orocos_kinematics_dynamics-1.5.1.pybind11/python_orocos_kdl/CMakeLists.txt 2022-04-12 14:43:07.095815770 +0200
|
||||
@@ -46,7 +46,7 @@
|
||||
set(PYTHON_MODULE_EXTENSION ".so")
|
||||
endif()
|
||||
|
||||
-add_subdirectory(pybind11)
|
||||
+find_package(pybind11)
|
||||
pybind11_add_module(${LIBRARY_NAME}
|
||||
PyKDL/PyKDL.h
|
||||
PyKDL/PyKDL.cpp
|
||||
12
orocos-kdl.python-site-packages.patch
Normal file
12
orocos-kdl.python-site-packages.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff --color -ur orocos_kinematics_dynamics-1.5.1/python_orocos_kdl/CMakeLists.txt orocos_kinematics_dynamics-1.5.1.python-site-packages/python_orocos_kdl/CMakeLists.txt
|
||||
--- orocos_kinematics_dynamics-1.5.1/python_orocos_kdl/CMakeLists.txt 2021-09-12 08:58:27.000000000 +0200
|
||||
+++ orocos_kinematics_dynamics-1.5.1.python-site-packages/python_orocos_kdl/CMakeLists.txt 2022-04-12 15:06:19.717530738 +0200
|
||||
@@ -25,7 +25,7 @@
|
||||
find_package(PythonLibs ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR} REQUIRED)
|
||||
# get_python_lib in python3 produces path which isn't in sys.path: https://bugs.launchpad.net/ubuntu/+source/python3-stdlib-extensions/+bug/1832215
|
||||
# execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(plat_specific=True, prefix=''))" OUTPUT_VARIABLE PYTHON_SITE_PACKAGES OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
-set(PYTHON_SITE_PACKAGES_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/dist-packages") # This might be overridden below if built with catkin.
|
||||
+set(PYTHON_SITE_PACKAGES_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/dist-packages" CACHE PATH "Install dir for python site packages") # This might be overridden below if built with catkin.
|
||||
set(LIBRARY_NAME "PyKDL")
|
||||
|
||||
# catkin-specific configuration (optional)
|
||||
124
orocos-kdl.spec
Normal file
124
orocos-kdl.spec
Normal file
@ -0,0 +1,124 @@
|
||||
%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 <niutao2@huawei.com> - 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 <chenyixiong3@huawei.com> - 1.4.0-1
|
||||
- License compliance rectification
|
||||
|
||||
* Thu 12-15-2020 openEuler Buildteam <hanhaomin008@126.com>
|
||||
- Package init
|
||||
129
orocos_kdl.spec
129
orocos_kdl.spec
@ -1,129 +0,0 @@
|
||||
Name: orocos_kdl
|
||||
Version: 1.4.0
|
||||
Release: 1
|
||||
Summary: This is orocos_kdl Package
|
||||
License: Public Domain and Apache-2.0 and BSD and MIT and BSL-1.0 and LGPL-2.1-only and MPL-2.0 and GPL-3.0-only and GPL-2.0-or-later and MPL-1.1 and IJG and Zlib and OFL-1.1
|
||||
URL: https://github.com/ros-gbp/orocos_kdl-release/archive/release/melodic/orocos_kdl
|
||||
Source0: https://github.com/ros-gbp/orocos_kdl-release/archive/release/melodic/orocos_kdl/1.4.0.tar.gz
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: cmake
|
||||
BuildRequires: lz4-devel
|
||||
BuildRequires: bzip2-devel
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
#Requires: python-empy
|
||||
#BuildRequires: openssl-devel
|
||||
#BuildRequires: curl-devel
|
||||
#BuildRequires: curl
|
||||
#BuildRequires: gcc-gfortran
|
||||
#BuildRequires: openblas-devel
|
||||
#BuildRequires: sqlite-devel
|
||||
#BuildRequires: fftw-devel
|
||||
BuildRequires: boost-devel
|
||||
#BuildRequires: uuid-devel
|
||||
#BuildRequires: uuid
|
||||
#BuildRequires: libuuid-devel
|
||||
#BuildRequires: uuid-devel
|
||||
#BuildRequires: python3-devel
|
||||
#BuildRequires: boost-python3-devel
|
||||
|
||||
BuildRequires: gmock-devel
|
||||
BuildRequires: suitesparse-devel
|
||||
BuildRequires: lua-devel
|
||||
BuildRequires: protobuf-devel
|
||||
BuildRequires: cairo-devel
|
||||
BuildRequires: gflags-devel
|
||||
BuildRequires: freeglut-devel
|
||||
BuildRequires: libXt-devel
|
||||
BuildRequires: tinyxml-devel
|
||||
BuildRequires: libX11-devel
|
||||
BuildRequires: libXrandr-devel
|
||||
BuildRequires: libXaw-devel
|
||||
BuildRequires: assimp-devel
|
||||
BuildRequires: qt5-qtdeclarative-devel
|
||||
BuildRequires: yaml-cpp-devel
|
||||
BuildRequires: libatomic
|
||||
#BuildRequires: python2-qt5-devel
|
||||
BuildRequires: lz4-devel
|
||||
BuildRequires: sphinx
|
||||
|
||||
%description
|
||||
This is orocos_kdl Package.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
|
||||
%install
|
||||
cd 3rdparty/
|
||||
|
||||
cd empy-3.3.4/
|
||||
python setup.py install --user
|
||||
cd ..
|
||||
|
||||
cd six-1.15.0/
|
||||
python setup.py install --user
|
||||
cd ..
|
||||
|
||||
cd setuptools_scm-4.1.2/
|
||||
python setup.py install --user
|
||||
cd ..
|
||||
|
||||
cd python-dateutil-2.8.1/
|
||||
python setup.py install --user
|
||||
cd ..
|
||||
|
||||
cd pyparsing-2.4.7/
|
||||
python setup.py install --user
|
||||
cd ..
|
||||
|
||||
cd docutils-0.16/
|
||||
python setup.py install --user
|
||||
cd ..
|
||||
|
||||
cd catkin_pkg-0.4.22/
|
||||
python setup.py install --user
|
||||
cd ..
|
||||
|
||||
cd PyYAML-5.3.1/
|
||||
python setup.py install --user
|
||||
cd ..
|
||||
|
||||
cd distro-1.5.0/
|
||||
python setup.py install --user
|
||||
cd ..
|
||||
|
||||
cd rospkg-1.2.8/
|
||||
python setup.py install --user
|
||||
cd ..
|
||||
|
||||
cd eigen-3.3.7/
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ..
|
||||
make install
|
||||
cd ..
|
||||
cd ..
|
||||
|
||||
cd ..
|
||||
|
||||
./src/catkin/bin/catkin_make_isolated --install
|
||||
|
||||
mkdir -p %{buildroot}/opt/ros/melodic/
|
||||
mkdir -p %{buildroot}/usr/local/
|
||||
cp -r install_isolated/* %{buildroot}/opt/ros/melodic/
|
||||
cp -r 3rdparty/install/* %{buildroot}/usr/local/
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
/opt/ros/melodic/*
|
||||
/usr/local/*
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Aug 8 2022 Chenyx <chenyixiong3@huawei.com> - 1.4.0-1
|
||||
- License compliance rectification
|
||||
|
||||
* Thu 12-15-2020 openEuler Buildteam <hanhaomin008@126.com>
|
||||
- Package init
|
||||
|
||||
BIN
v1.5.1.tar.gz
Normal file
BIN
v1.5.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user