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