source: spec/trunk/SPECS/os2-rpm.spec@ 1300

Last change on this file since 1300 was 1299, checked in by herwigb, 8 years ago

spec: os2-rpm: Release version 0-6.

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