source: spec/trunk/SPECS/os2-rpm/macros.os2@ 1167

Last change on this file since 1167 was 1167, checked in by dmik, 8 years ago

spec: os2-rpm: Move macros to control locked files and modify config.sys from rpm.

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1# OS/2 specific rpm configuration file.
2
3%_rpmconfigdir_os2 @RPMCONFIGDIR_OS2@
4
5# Path to script that installs legacy runtime libraries.
6%__legacy_runtime_install_post \
7 %{_rpmconfigdir_os2}/find-legacy-runtime.sh install "%{_target_cpu}" "%{_builddir}/%{?buildsubdir}"\
8%{nil}
9
10# Template for legacy runtime sub-packages.
11%legacy_runtime_packages \
12%global __legacy_runtime_packages 1\
13%{expand:%(%{_rpmconfigdir_os2}/find-legacy-runtime.sh package "%{name}" "%{_sourcedir}" "%{_target_cpu}" "%{buildroot}")}\
14%{nil}
15
16# List of debug files generated by brp-strip-os2 with %exclude prepended (to be
17# used with -f option in %files to automatically exclude them from packages).
18%debug_package_exclude_files "%{_builddir}/%{?buildsubdir}/exclude-debugfiles.list"
19
20# Only run what we really need in post-install on OS/2.
21%__os_install_post \
22 %{_rpmconfigdir}/brp-compress "./@unixroot"\
23 %{_rpmconfigdir_os2}/brp-strip-os2 "%{_builddir}/%{?buildsubdir}" %{?_strip_no_compress:--no-compress} %{!?__debug_package:--no-debuginfo} %{?_strip_opts}\
24 %{?__legacy_runtime_packages:%{__legacy_runtime_install_post}}\
25 %{?__debug_package:%{__sed} -e 's/^/%exclude /' "%{_builddir}/%{?buildsubdir}/debugfiles.list" > %{debug_package_exclude_files}}\
26%{nil}
27
28# Disable using find-debuginfo.sh, brp-strip-os2 does the job.
29%__debug_install_post %{nil}
30
31#------------------------------------------------------------------------
32# handle file unlocking, options:
33# 0 - automatic handling (default)
34# 1 - use config.sys driver only
35# 2 - do nothing, report error
36#
37%_os2_unlock_mode 0
38
39#------------------------------------------------------------------------
40# OS/2 macros to handle config.sys changes (using cube script)
41#
42%os2_boot_drive %{_os2_boot_drive}
43%os2_unixroot_drive %{_os2_unixroot_drive}
44%os2_config_sys %{os2_boot_drive}\\config.sys
45%cube() cmd /c '%UNIXROOT%\\usr\\bin\\cube.exe %{*}'\
46%{nil}
Note: See TracBrowser for help on using the repository browser.