aboutsummaryrefslogtreecommitdiffstats
path: root/build.macros.in
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2018-09-24 11:36:47 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2018-09-24 11:52:16 +0200
commita69ccd115238357c706383bc49db5c6ff33a5f4a (patch)
treecfe7b7e93c19d3a9dd0337d68bbf3fb867dfc0ea /build.macros.in
parent6b898bfc25eee5cc8d4823f4062a039cb2e7cda5 (diff)
downloadrpm-setup-a69ccd115238357c706383bc49db5c6ff33a5f4a.tar
rpm-setup-a69ccd115238357c706383bc49db5c6ff33a5f4a.tar.gz
rpm-setup-a69ccd115238357c706383bc49db5c6ff33a5f4a.tar.bz2
rpm-setup-a69ccd115238357c706383bc49db5c6ff33a5f4a.tar.xz
rpm-setup-a69ccd115238357c706383bc49db5c6ff33a5f4a.zip
add __brp_mangle_shebangs from FC in order to:
- fix /bin -> /usr/bin - resolve "env foobar" -> "foobar" install it in /usr/lib/rpm/redhat to make clear from where it comes
Diffstat (limited to 'build.macros.in')
-rw-r--r--build.macros.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/build.macros.in b/build.macros.in
index 1125682..e37e157 100644
--- a/build.macros.in
+++ b/build.macros.in
@@ -447,11 +447,17 @@ fi
%__brp_python_bytecompile /usr/lib/rpm/brp-python-bytecompile "%{__python}" "%{?_python_bytecompile_errors_terminate_build}" "%{?_python_bytecompile_extra}"
%__brp_python_hardlink /usr/lib/rpm/brp-python-hardlink
+# __brp_mangle_shebangs_exclude - shebangs to exclude
+# __brp_mangle_shebangs_exclude_file - file from which to get shebangs to exclude
+# __brp_mangle_shebangs_exclude_from - files to ignore
+# __brp_mangle_shebangs_exclude_from_file - file from which to get files to ignore
+%__brp_mangle_shebangs /usr/lib/rpm/redhat/brp-mangle-shebangs %{?__brp_mangle_shebangs_exclude:--shebangs "%{?__brp_mangle_shebangs_exclude}"} %{?__brp_mangle_shebangs_exclude_file:--shebangs-from "%{__brp_mangle_shebangs_exclude_file}"} %{?__brp_mangle_shebangs_exclude_from:--files "%{?__brp_mangle_shebangs_exclude_from}"} %{?__brp_mangle_shebangs_exclude_from_file:--files-from "%{__brp_mangle_shebangs_exclude_from_file}"}
%__os_install_post \
%{?__spec_helper_post}%{?!__spec_helper_post:/usr/share/spec-helper/spec-helper} \
%{?py_auto_byte_compile:%{?__brp_python_bytecompile}} \
%{?__brp_python_hardlink} \
+ %{?__brp_mangle_shebangs} \
%{nil}
%install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package}}}\