diff options
author | Mateusz Moscicki <m.moscicki2@partner.samsung.com> | 2023-05-17 13:02:21 +0200 |
---|---|---|
committer | Adam Michalski <a.michalski2@partner.samsung.com> | 2023-07-10 14:10:22 +0000 |
commit | 43caf34cbefeb392b3262748253befaaf02ee1e0 (patch) | |
tree | 0a43bcecaf450bf872302c59542c6b945c3b5d67 /packaging/find-isufiles.sh | |
parent | 34ca0dc68d0a7742eb1cee295c2131d0ac11b3e5 (diff) | |
download | rpm-tizen_7.0_base.tar.gz rpm-tizen_7.0_base.tar.bz2 rpm-tizen_7.0_base.zip |
Add macro %isu_package to generate ISU Packagesubmit/tizen_7.0_base/20230714.091612accepted/tizen/7.0/base/20230719.134318tizen_7.0_baseaccepted/tizen_7.0_base
The macro makes it easier to prepare a separate configuration for ISU package.
Files from path %{BUILDROOT}/etc/isu/ are packed into a separate rpm
package: %{name}-isu
In addition, pattern occurrences are substituted:
#NAME# - %{name}
#VERSION# - %{version}
#ISU_CONFIG_PATH# - /etc/isu
#ISU_INSTALL_PATH# - /opt/isu
#ISU_RUN_PATH# - /run/isu
Change-Id: Ia60a964165a9a838fb3422ded0410402924c5adf
(cherry picked from commit 0cb94f2a960168fb4cc6eed7acdd19dba633fcd9)
Diffstat (limited to 'packaging/find-isufiles.sh')
-rw-r--r-- | packaging/find-isufiles.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/packaging/find-isufiles.sh b/packaging/find-isufiles.sh new file mode 100644 index 000000000..ab8abdeb6 --- /dev/null +++ b/packaging/find-isufiles.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +LIST_FILE_PATH="$1" +pushd "$RPM_BUILD_ROOT" || exit +if [ -d ./etc/isu/ ]; then + echo "Process ISU files" + find etc/isu -type f -printf "/%p\n" \ + -exec sed -i -e "s@#VERSION#@$RPM_PACKAGE_VERSION@g" \ + -e "s@#NAME#@$RPM_PACKAGE_NAME@g" \ + -e "s@#ISU_CONFIG_PATH#@/etc/isu@g" \ + -e "s@#ISU_INSTALL_PATH#@/opt/isu@g" \ + -e "s@#ISU_RUN_PATH#@/run/isu@g" \ + {} \; > "$LIST_FILE_PATH" +fi +popd || exit |