1 | Summary: OS/2 specific RPM macros and scripts
|
---|
2 | Name: os2-rpm
|
---|
3 | Version: 1
|
---|
4 | Release: 6%{?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 | Source10: macros.scm_pwd
|
---|
32 |
|
---|
33 | # This is necessary due to a silly "Provides: os2-rpm" in os2-rpm-build-0-1
|
---|
34 | Conflicts: os2-rpm-build <= 0-1
|
---|
35 |
|
---|
36 | %description
|
---|
37 | OS/2 specific RPM macros and scripts neecessary to install RPM packages on
|
---|
38 | the OS/2 operating system.
|
---|
39 |
|
---|
40 | %package build
|
---|
41 | Summary: OS/2 specific RPM macros and scripts to build RPM packages
|
---|
42 | Requires: %{name} = %{version}-%{release}
|
---|
43 | Requires: rpm-build >= 4.13.0-15
|
---|
44 |
|
---|
45 | %description build
|
---|
46 | OS/2 specific RPM macros and scripts neecessary to build RPM packages for
|
---|
47 | the OS/2 operating system.
|
---|
48 |
|
---|
49 | %global _rpmconfigdir_os2 %{_rpmconfigdir}/%{_vendor}
|
---|
50 | %global _rpmconfigdir_macros_d %{_rpmconfigdir}/macros.d
|
---|
51 |
|
---|
52 | %prep
|
---|
53 | # Move all sources to build subdir to reference them by name instead of SOURCEx
|
---|
54 | %setup -c -T
|
---|
55 | %{__cp} -a %{sources} .
|
---|
56 |
|
---|
57 | # Note: we put the value of _rpmconfigdir_os2 unexpanded.
|
---|
58 | %{__sed} -e 's|@RPMCONFIGDIR_OS2@|%%{_rpmconfigdir}/%%{_vendor}|' -i macros.os2
|
---|
59 |
|
---|
60 | %build
|
---|
61 | # create a exe out of the cmd files
|
---|
62 | for f in *.cmd ; do
|
---|
63 | rexx2vio "$f" "${f%.cmd}.exe"
|
---|
64 | done
|
---|
65 |
|
---|
66 | %install
|
---|
67 | %{__mkdir_p} %{buildroot}%{_rpmconfigdir_os2}
|
---|
68 | %{__install} -p -m 644 macros.os2 %{buildroot}%{_rpmconfigdir_os2}/macros
|
---|
69 | %{__install} -p -m 644 -t %{buildroot}%{_rpmconfigdir_os2} brp-strip-os2 find-legacy-runtime.sh
|
---|
70 |
|
---|
71 | %{__mkdir_p} %{buildroot}%{_rpmconfigdir_macros_d}
|
---|
72 | %{__install} -p -m 644 -t %{buildroot}%{_rpmconfigdir_macros_d} \
|
---|
73 | macros.scm macros.cfg macros.wps
|
---|
74 | %{__mkdir_p} %{buildroot}%{_sysconfdir}/rpm
|
---|
75 | %{__install} -p -m 644 -t %{buildroot}%{_sysconfdir}/rpm macros.scm_pwd
|
---|
76 |
|
---|
77 | # install OS/2 Rexx scripts
|
---|
78 | for f in *.exe ; do
|
---|
79 | %{__install} -p -m 755 $f %{buildroot}%{_rpmconfigdir_os2}/$f
|
---|
80 | ln -sf %{_rpmconfigdir_os2}/$f %{buildroot}%{_libdir}/rpm/${f%.exe}
|
---|
81 | done
|
---|
82 | %{__install} -D -p -m 755 wpi4rpm.exe %{buildroot}%{_bindir}/wpi4rpm.exe
|
---|
83 | %{__install} -D -p -m 755 warpin-conflicts.exe %{buildroot}%{_libdir}/rpm/warpin-conflicts.exe
|
---|
84 |
|
---|
85 | %files
|
---|
86 | %dir %{_rpmconfigdir_os2}
|
---|
87 | %{_rpmconfigdir_os2}/macros
|
---|
88 | %{_rpmconfigdir_os2}/*.exe
|
---|
89 | %{_libdir}/rpm/wpi4rpm
|
---|
90 | %{_libdir}/rpm/warpin-conflicts*
|
---|
91 | %{_libdir}/rpm/wps-object
|
---|
92 | %{_libdir}/rpm/getbootdrive
|
---|
93 | %{_bindir}/wpi4rpm.exe
|
---|
94 | %{_rpmconfigdir_macros_d}/macros.cfg
|
---|
95 | %{_rpmconfigdir_macros_d}/macros.wps
|
---|
96 |
|
---|
97 | %files build
|
---|
98 | %{_rpmconfigdir_os2}/brp-strip-os2
|
---|
99 | %{_rpmconfigdir_os2}/find-legacy-runtime.sh
|
---|
100 | %{_rpmconfigdir_macros_d}/macros.scm
|
---|
101 | %config(noreplace) %{_sysconfdir}/rpm/macros.scm_pwd
|
---|
102 |
|
---|
103 | %changelog
|
---|
104 | * Mon Jan 21 2019 Silvan Scherrer <silvan.scherrer@aroa.ch> 1-6
|
---|
105 | - fix scm_macro to work with noarch only spec as well
|
---|
106 |
|
---|
107 | * Tue Nov 27 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> 1-5
|
---|
108 | - some rather old packages still need warpin-conflicts at the ols location,
|
---|
109 | so copy it there as well ticket #321
|
---|
110 |
|
---|
111 | * Sun Nov 11 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> 1-4
|
---|
112 | - add the possibility to have password protected github projects
|
---|
113 |
|
---|
114 | * Mon Aug 20 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> 1-3
|
---|
115 | - copy wpi4rpm also to %{_bindir} ticket #308
|
---|
116 | - don't add an extention to symlinks
|
---|
117 |
|
---|
118 | * Mon Apr 23 2018 Dmitriy Kuminov <coding@dmik.org> 1-2
|
---|
119 | - Fix os2_fwdslashes and os2_backslashes that would return garbage at the end.
|
---|
120 | - Remove useless os2_dos_path_f and add os2_expand_unixroot instead.
|
---|
121 |
|
---|
122 | * Tue Feb 20 2018 Herwig Bauernfeind <herwig.bauernfeind@bitwiseworks.com> 1-1
|
---|
123 | - Unify format of error messages from wps-object, warpin-conflicts and wpi4rpm
|
---|
124 | - Integrate wpi4rpm into os2-rpm (as we don't want to add a
|
---|
125 | Provides wpi4rpm=version, we changed the spec version to 1)
|
---|
126 |
|
---|
127 | * Wed Oct 4 2017 Dmitriy Kuminov <coding@dmik.org> 0-5
|
---|
128 | - Work around kLIBC bug #379 when unzipping archives with long file names
|
---|
129 | in scm_setup.
|
---|
130 |
|
---|
131 | * Fri Jul 28 2017 Dmitriy Kuminov <coding@dmik.org> 0-4
|
---|
132 | - Add os2_langdir, os2_bookdir and os2_helpdir macros.
|
---|
133 | - Make os2_dos_path understand ';' as path separator.
|
---|
134 | - Make os2_dos_path replace /@unixroot with %UNIXROOT% rather its current value
|
---|
135 | (build-time values may differ from install-time values so should not be used).
|
---|
136 | - Add os2_fwdslashes and os2_backslashes for easy slash conversion in paths.
|
---|
137 | - Add os2_expand_dos_vars to expand env.vars (should only be used with -e
|
---|
138 | option in scriplets to cause install-time expansion, as well as os2_boot_drive
|
---|
139 | and os2_unixroot_path).
|
---|
140 |
|
---|
141 | * Mon Jul 10 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 0-3
|
---|
142 | - add a symlink to the *.exe, so old rpm still work
|
---|
143 |
|
---|
144 | * Fri Jun 9 2017 Dmitriy Kuminov <coding@dmik.org> 0-2
|
---|
145 | - Change mistyped "Provides: os2-rpm" to "Requires" in os2-rpm-base.
|
---|
146 | - Move scm_source/scm_setup macros from rpm to os2-rpm-build sub-package.
|
---|
147 | - Better support for local git repos via file://.
|
---|
148 | - Move WPS/WarpIn macros from rpm to os2-rpm-build sub-package.
|
---|
149 | - Move config.sys macros from rpm to os2-rpm package.
|
---|
150 | - Move os2_boot_drive from rpm to os2-rpm package.
|
---|
151 | - Add os2_dos_path macro to convert from Unix paths to DOS paths.
|
---|
152 | - Add os2_unixroot_path macro (replaces former os2_unixroot_drive in rpm).
|
---|
153 | - Install main OS/2 macros file from os2-rpm as RPM installation scriptlets
|
---|
154 | need some definitions from it.
|
---|
155 |
|
---|
156 | * Thu Apr 6 2017 Dmitriy Kuminov <coding@dmik.org> 0-1
|
---|
157 | - Initial release.
|
---|
158 |
|
---|