From 25b6060a9a4e5b13f5c51d9e062c2cf4cf40bc1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Victor=20Pal=C3=A9ologue?= Date: Wed, 22 Nov 2023 11:16:46 +0100 Subject: [PATCH] Generated RPM files for 9 --- .write_tar | 0 rpm/{template.spec.em => template.spec} | 61 ++++++++++++------------- 2 files changed, 28 insertions(+), 33 deletions(-) create mode 100644 .write_tar rename rpm/{template.spec.em => template.spec} (50%) diff --git a/.write_tar b/.write_tar new file mode 100644 index 0000000..e69de29 diff --git a/rpm/template.spec.em b/rpm/template.spec similarity index 50% rename from rpm/template.spec.em rename to rpm/template.spec index bebb96b..b464aec 100644 --- a/rpm/template.spec.em +++ b/rpm/template.spec @@ -2,33 +2,27 @@ %bcond_without weak_deps %global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') -%global __provides_exclude_from ^@(InstallationPrefix)/.*$ -%global __requires_exclude_from ^@(InstallationPrefix)/.*$ +%global __provides_exclude_from ^/opt/ros/iron/.*$ +%global __requires_exclude_from ^/opt/ros/iron/.*$ -Name: @(Package) -Version: @(Version) -Release: @(RPMInc)%{?dist}%{?release_suffix} -Summary: ROS @(Name) package +Name: ros-iron-pepper-meshes +Version: 3.0.0 +Release: 1%{?dist}%{?release_suffix} +Summary: ROS pepper_meshes package -License: @(License) -@[if Homepage and Homepage != '']URL: @(Homepage)@\n@[end if]@ +License: Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License +URL: http://github.com/ros-naoqi/pepper_meshes2/ Source0: %{name}-%{version}.tar.gz -@[if NoArch]@\nBuildArch: noarch@\n@[end if]@ -@[for p in Depends]Requires: @p@\n@[end for]@ -@[for p in BuildDepends]BuildRequires: @p@\n@[end for]@ -@[for p in Conflicts]Conflicts: @p@\n@[end for]@ -@[for p in Replaces]Obsoletes: @p@\n@[end for]@ -@[for p in Provides]Provides: @p@\n@[end for]@ -@[if TestDepends]@\n%if 0%{?with_tests} -@[for p in TestDepends]BuildRequires: @p@\n@[end for]@ -%endif@\n@[end if]@ -@[if Supplements]@\n%if 0%{?with_weak_deps} -@[for p in Supplements]Supplements: @p@\n@[end for]@ -%endif@\n@[end if]@ +Requires: ros-iron-ros-workspace +BuildRequires: ros-iron-ament-cmake +BuildRequires: ros-iron-ros-workspace +Provides: %{name}-devel = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +Provides: %{name}-runtime = %{version}-%{release} %description -@(Description) +Meshes for the Pepper robot, for ROS2 %prep %autosetup -p1 @@ -37,7 +31,7 @@ Source0: %{name}-%{version}.tar.gz # In case we're installing to a non-standard location, look for a setup.sh # in the install tree and source it. It will set things like # CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH. -if [ -f "@(InstallationPrefix)/setup.sh" ]; then . "@(InstallationPrefix)/setup.sh"; fi +if [ -f "/opt/ros/iron/setup.sh" ]; then . "/opt/ros/iron/setup.sh"; fi mkdir -p .obj-%{_target_platform} && cd .obj-%{_target_platform} %cmake3 \ -UINCLUDE_INSTALL_DIR \ @@ -45,9 +39,9 @@ mkdir -p .obj-%{_target_platform} && cd .obj-%{_target_platform} -USYSCONF_INSTALL_DIR \ -USHARE_INSTALL_PREFIX \ -ULIB_SUFFIX \ - -DCMAKE_INSTALL_PREFIX="@(InstallationPrefix)" \ - -DAMENT_PREFIX_PATH="@(InstallationPrefix)" \ - -DCMAKE_PREFIX_PATH="@(InstallationPrefix)" \ + -DCMAKE_INSTALL_PREFIX="/opt/ros/iron" \ + -DAMENT_PREFIX_PATH="/opt/ros/iron" \ + -DCMAKE_PREFIX_PATH="/opt/ros/iron" \ -DSETUPTOOLS_DEB_LAYOUT=OFF \ %if !0%{?with_tests} -DBUILD_TESTING=OFF \ @@ -60,7 +54,7 @@ mkdir -p .obj-%{_target_platform} && cd .obj-%{_target_platform} # In case we're installing to a non-standard location, look for a setup.sh # in the install tree and source it. It will set things like # CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH. -if [ -f "@(InstallationPrefix)/setup.sh" ]; then . "@(InstallationPrefix)/setup.sh"; fi +if [ -f "/opt/ros/iron/setup.sh" ]; then . "/opt/ros/iron/setup.sh"; fi %make_install -C .obj-%{_target_platform} %if 0%{?with_tests} @@ -71,18 +65,19 @@ if [ -n "$TEST_TARGET" ]; then # In case we're installing to a non-standard location, look for a setup.sh # in the install tree and source it. It will set things like # CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH. -if [ -f "@(InstallationPrefix)/setup.sh" ]; then . "@(InstallationPrefix)/setup.sh"; fi +if [ -f "/opt/ros/iron/setup.sh" ]; then . "/opt/ros/iron/setup.sh"; fi CTEST_OUTPUT_ON_FAILURE=1 \ %make_build -C .obj-%{_target_platform} $TEST_TARGET || echo "RPM TESTS FAILED" else echo "RPM TESTS SKIPPED"; fi %endif %files -@[for lf in LicenseFiles]%license @lf@\n@[end for]@ -@(InstallationPrefix) +/opt/ros/iron -%changelog@ -@[for change_version, (change_date, main_name, main_email) in changelogs] -* @(change_date) @(main_name) <@(main_email)> - @(change_version) +%changelog +* Wed Nov 22 2023 Victor Paléologue - 3.0.0-1 - Autogenerated by Bloom -@[end for] + +* Mon Nov 20 2023 Maxime Busy - 2.0.1-1 +- Autogenerated by Bloom +