| 1 | Summary: OS/2 specific RPM macros and scripts
|
|---|
| 2 | Name: os2-rpm
|
|---|
| 3 | Version: 0
|
|---|
| 4 | Release: 4%{?dist}
|
|---|
| 5 | License: GPLv2+
|
|---|
| 6 | Group: Development/System
|
|---|
| 7 | Vendor: bww bitwise works GmbH
|
|---|
| 8 |
|
|---|
| 9 | BuildArch: noarch
|
|---|
| 10 |
|
|---|
| 11 | Requires: rpm >= 4.13.0-16
|
|---|
| 12 | Requires: cube
|
|---|
| 13 |
|
|---|
| 14 | Provides: system-rpm-config = %{version}-%{release}
|
|---|
| 15 |
|
|---|
| 16 | BuildRequires: rexx_exe
|
|---|
| 17 |
|
|---|
| 18 | Source0: macros.os2
|
|---|
| 19 | Source1: brp-strip-os2
|
|---|
| 20 | Source2: find-legacy-runtime.sh
|
|---|
| 21 | Source3: macros.scm
|
|---|
| 22 | Source4: macros.cfg
|
|---|
| 23 | Source5: macros.wps
|
|---|
| 24 | Source6: wps-object.cmd
|
|---|
| 25 | Source7: warpin-conflicts.cmd
|
|---|
| 26 | Source8: getbootdrive.cmd
|
|---|
| 27 |
|
|---|
| 28 | # This is necessary due to a silly "Provides: os2-rpm" in os2-rpm-build-0-1
|
|---|
| 29 | Conflicts: os2-rpm-build <= 0-1
|
|---|
| 30 |
|
|---|
| 31 | %description
|
|---|
| 32 | OS/2 specific RPM macros and scripts neecessary to install RPM packages on
|
|---|
| 33 | the OS/2 operating system.
|
|---|
| 34 |
|
|---|
| 35 | %package build
|
|---|
| 36 | Summary: OS/2 specific RPM macros and scripts to build RPM packages
|
|---|
| 37 | Requires: %{name} = %{version}-%{release}
|
|---|
| 38 | Requires: rpm-build >= 4.13.0-15
|
|---|
| 39 |
|
|---|
| 40 | %description build
|
|---|
| 41 | OS/2 specific RPM macros and scripts neecessary to build RPM packages for
|
|---|
| 42 | the OS/2 operating system.
|
|---|
| 43 |
|
|---|
| 44 | %global _rpmconfigdir_os2 %{_rpmconfigdir}/%{_vendor}
|
|---|
| 45 | %global _rpmconfigdir_macros_d %{_rpmconfigdir}/macros.d
|
|---|
| 46 |
|
|---|
| 47 | %prep
|
|---|
| 48 | # Move all sources to build subdir to reference them by name instead of SOURCEx
|
|---|
| 49 | %setup -c -T
|
|---|
| 50 | %{__cp} -a %{sources} .
|
|---|
| 51 |
|
|---|
| 52 | # Note: we put the value of _rpmconfigdir_os2 unexpanded.
|
|---|
| 53 | %{__sed} -e 's|@RPMCONFIGDIR_OS2@|%%{_rpmconfigdir}/%%{_vendor}|' -i macros.os2
|
|---|
| 54 |
|
|---|
| 55 | %install
|
|---|
| 56 | %{__mkdir_p} %{buildroot}%{_rpmconfigdir_os2}
|
|---|
| 57 | %{__install} -p -m 644 macros.os2 %{buildroot}%{_rpmconfigdir_os2}/macros
|
|---|
| 58 | %{__install} -p -m 644 -t %{buildroot}%{_rpmconfigdir_os2} brp-strip-os2 find-legacy-runtime.sh
|
|---|
| 59 |
|
|---|
| 60 | %{__mkdir_p} %{buildroot}%{_rpmconfigdir_macros_d}
|
|---|
| 61 | %{__install} -p -m 644 -t %{buildroot}%{_rpmconfigdir_macros_d} \
|
|---|
| 62 | macros.scm macros.cfg macros.wps
|
|---|
| 63 |
|
|---|
| 64 | # Pack and install OS/2 Rexx scripts
|
|---|
| 65 | for f in *.cmd ; do
|
|---|
| 66 | rexx2vio "$f" "%{buildroot}%{_rpmconfigdir_os2}/${f%.cmd}.exe"
|
|---|
| 67 | ln -sf %{_rpmconfigdir_os2}/${f%.cmd}.exe %{buildroot}%{_libdir}/rpm/${f%.cmd}.exe
|
|---|
| 68 | done
|
|---|
| 69 |
|
|---|
| 70 | %files
|
|---|
| 71 | %dir %{_rpmconfigdir_os2}
|
|---|
| 72 | %{_rpmconfigdir_os2}/macros
|
|---|
| 73 | %{_rpmconfigdir_os2}/*.exe
|
|---|
| 74 | %{_libdir}/rpm/*.exe
|
|---|
| 75 | %{_rpmconfigdir_macros_d}/macros.cfg
|
|---|
| 76 | %{_rpmconfigdir_macros_d}/macros.wps
|
|---|
| 77 |
|
|---|
| 78 | %files build
|
|---|
| 79 | %{_rpmconfigdir_os2}/brp-strip-os2
|
|---|
| 80 | %{_rpmconfigdir_os2}/find-legacy-runtime.sh
|
|---|
| 81 | %{_rpmconfigdir_macros_d}/macros.scm
|
|---|
| 82 |
|
|---|
| 83 | %changelog
|
|---|
| 84 | * Fri Jul 28 2017 Dmitriy Kuminov <coding@dmik.org> 0-4
|
|---|
| 85 | - Add os2_langdir, os2_bookdir and os2_helpdir macros.
|
|---|
| 86 | - Make os2_dos_path understand ';' as path separator.
|
|---|
| 87 | - Make os2_dos_path replace /@unixroot with %UNIXROOT% rather its current value
|
|---|
| 88 | (build-time values may differ from install-time values so should not be used).
|
|---|
| 89 | - Add os2_fwdslashes and os2_backslashes for easy slash conversion in paths.
|
|---|
| 90 | - Add os2_expand_dos_vars to expand env.vars (should only be used with -e
|
|---|
| 91 | option in scriplets to cause install-time expansion, as well as os2_boot_drive
|
|---|
| 92 | and os2_unixroot_path).
|
|---|
| 93 |
|
|---|
| 94 | * Mon Jul 10 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 0-3
|
|---|
| 95 | - add a symlink to the *.exe, so old rpm still work
|
|---|
| 96 |
|
|---|
| 97 | * Fri Jun 9 2017 Dmitriy Kuminov <coding@dmik.org> 0-2
|
|---|
| 98 | - Change mistyped "Provides: os2-rpm" to "Requires" in os2-rpm-base.
|
|---|
| 99 | - Move scm_source/scm_setup macros from rpm to os2-rpm-build sub-package.
|
|---|
| 100 | - Better support for local git repos via file://.
|
|---|
| 101 | - Move WPS/WarpIn macros from rpm to os2-rpm-build sub-package.
|
|---|
| 102 | - Move config.sys macros from rpm to os2-rpm package.
|
|---|
| 103 | - Move os2_boot_drive from rpm to os2-rpm package.
|
|---|
| 104 | - Add os2_dos_path macro to convert from Unix paths to DOS paths.
|
|---|
| 105 | - Add os2_unixroot_path macro (replaces former os2_unixroot_drive in rpm).
|
|---|
| 106 | - Install main OS/2 macros file from os2-rpm as RPM installation scriptlets
|
|---|
| 107 | need some definitions from it.
|
|---|
| 108 |
|
|---|
| 109 | * Thu Apr 6 2017 Dmitriy Kuminov <coding@dmik.org> 0-1
|
|---|
| 110 | - Initial release.
|
|---|