Fix spec : build success
authorDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 15 Apr 2021 04:08:19 +0000 (13:08 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 15 Apr 2021 04:08:35 +0000 (13:08 +0900)
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
packaging/behaviortree-cpp.spec

index 1f86a21..41dec4f 100644 (file)
@@ -4,7 +4,7 @@ Version:    3.5.6
 Release:    0
 
 # ==========================================================
-License:    Apache-2.0
+License:    MIT
 # ==========================================================
 
 Group:      Development/ROS
@@ -16,10 +16,18 @@ Source1001: %{name}.manifest
 # specifies build-time dependencies for the package
 # ==========================================================
 BuildRequires:  cmake
+BuildRequires:  gtest-devel
 
 %description
 %{name} version %{version}
 
+%package devel
+Summary:    %{name}-devel
+Group:      Development/ROS
+
+%description devel
+%{name}-devel version %{version}
+
 
 %prep
 %setup -q
@@ -30,6 +38,11 @@ cp %{SOURCE1001} .
 # how to actually build the software we are packaging
 # ==========================================================
 %build
+mkdir -p build
+pushd build
+%{cmake} ..
+%{make_build}
+popd
 
 
 # ==========================================================
@@ -37,6 +50,10 @@ cp %{SOURCE1001} .
 # how to actually build the software we are packaging
 # ==========================================================
 %install
+pushd build
+%{cmake} ..
+%{make_install}
+popd
 
 %clean  
 
@@ -51,4 +68,20 @@ cp %{SOURCE1001} .
 # ==========================================================
 %files
 %manifest %{name}.manifest
+%license LICENSE
+%{_bindir}/bt3_log_cat
+%{_bindir}/bt3_plugin_manifest
+%{_libdir}/libbehaviortree_cpp_v3.so
 
+%files devel
+%manifest %{name}.manifest
+%license LICENSE
+%{_includedir}/behaviortree_cpp_v3/*.h
+%{_includedir}/behaviortree_cpp_v3/actions/*.h
+%{_includedir}/behaviortree_cpp_v3/controls/*.h
+%{_includedir}/behaviortree_cpp_v3/decorators/*.h
+%{_includedir}/behaviortree_cpp_v3/flatbuffers/*.h
+%{_includedir}/behaviortree_cpp_v3/loggers/*.h
+%{_includedir}/behaviortree_cpp_v3/utils/*.h
+%{_includedir}/behaviortree_cpp_v3/utils/*.hpp
+%{_libdir}/BehaviorTreeV3/cmake/*.cmake