diff options
author | wangbiao <biao716.wang@samsung.com> | 2023-11-16 18:17:42 +0900 |
---|---|---|
committer | wangbiao <biao716.wang@samsung.com> | 2023-11-16 18:17:42 +0900 |
commit | c30d127e8780dc678168ee121b9f2eeb1a8aaafa (patch) | |
tree | cdc9ddc3123edd5741e5151f3076c9bfc9535916 /platform.in | |
parent | 258ff2bdb80c458b743417c427f66fa5f27bf7c5 (diff) | |
download | librpm-tizen-c30d127e8780dc678168ee121b9f2eeb1a8aaafa.tar.gz librpm-tizen-c30d127e8780dc678168ee121b9f2eeb1a8aaafa.tar.bz2 librpm-tizen-c30d127e8780dc678168ee121b9f2eeb1a8aaafa.zip |
Upgrade version to 4.14tizen/4.14.1.1.tizen20230628
Change-Id: I21bf1a3a7c25cbec43022202cf2e5865b603a309
Signed-off-by: wangbiao <biao716.wang@samsung.com>
Diffstat (limited to 'platform.in')
-rw-r--r-- | platform.in | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/platform.in b/platform.in index 20c564e2a..e84431a40 100644 --- a/platform.in +++ b/platform.in @@ -41,15 +41,20 @@ %_oldincludedir @oldincludedir@ %_infodir @infodir@ %_mandir @mandir@ -%_initddir %{_sysconfdir}/init.d +%_initddir %{_sysconfdir}/rc.d/init.d # Deprecated misspelling, present for backwards compatibility. %_initrddir %{_initddir} +%_rundir @RUNDIR@ %_defaultdocdir %{_datadir}/doc +# Maximum number of CPU's to use when building, 0 for unlimited. +#%_smp_ncpus_max 0 %_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ - [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") + ncpus_max=%{?_smp_ncpus_max}; \\\ + if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$RPM_BUILD_NCPUS" -gt "$ncpus_max" ]; then RPM_BUILD_NCPUS="$ncpus_max"; fi; \\\ + if [ "$RPM_BUILD_NCPUS" -gt 1 ]; then echo "-j$RPM_BUILD_NCPUS"; fi) #============================================================================== # ---- Build policy macros. @@ -63,6 +68,8 @@ %__os_install_post \ %{_rpmconfigdir}/brp-compress \ %{_rpmconfigdir}/brp-strip %{__strip} \ + %{_rpmconfigdir}/brp-strip-static-archive %{__strip} \ + %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} \ %{nil} %__spec_install_post\ |