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

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

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

  • Property svn:eol-style set to native
File size: 3.7 KB
Line 
1Summary: OS/2 specific RPM macros and scripts
2Name: os2-rpm
3Version: 0
4Release: 4%{?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}
15
16BuildRequires: rexx_exe
17
18Source0: macros.os2
19Source1: brp-strip-os2
20Source2: find-legacy-runtime.sh
21Source3: macros.scm
22Source4: macros.cfg
23Source5: macros.wps
24Source6: wps-object.cmd
25Source7: warpin-conflicts.cmd
26Source8: getbootdrive.cmd
27
28# This is necessary due to a silly "Provides: os2-rpm" in os2-rpm-build-0-1
29Conflicts: os2-rpm-build <= 0-1
30
31%description
32OS/2 specific RPM macros and scripts neecessary to install RPM packages on
33the OS/2 operating system.
34
35%package build
36Summary: OS/2 specific RPM macros and scripts to build RPM packages
37Requires: %{name} = %{version}-%{release}
38Requires: rpm-build >= 4.13.0-15
39
40%description build
41OS/2 specific RPM macros and scripts neecessary to build RPM packages for
42the 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
65for 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
68done
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.
Note: See TracBrowser for help on using the repository browser.