| 1 | %define debug_package %{nil}
|
|---|
| 2 | %define _strip_opts --no-compress --no-debuginfo
|
|---|
| 3 |
|
|---|
| 4 | Summary: Dave Boll's RXU REXX library
|
|---|
| 5 | Name: rxu
|
|---|
| 6 | Version: 1.a.0
|
|---|
| 7 | Release: 3%{?dist}
|
|---|
| 8 | License: Freeware
|
|---|
| 9 | Group: System/Libraries
|
|---|
| 10 | URL: http://www.edm2.com/index.php/OS2_API:RXU
|
|---|
| 11 | Vendor: Dave Boll
|
|---|
| 12 | Source: %{name}-%{version}.zip
|
|---|
| 13 | BuildRoot: %_tmppath/%name-%version-%release-root
|
|---|
| 14 | Requires: os2-rpm >= 1-2
|
|---|
| 15 | Obsoletes: RXU
|
|---|
| 16 |
|
|---|
| 17 | %description
|
|---|
| 18 | RXU v1.a - Rich set of Rexx functions which expose most of the OS/2 API set to
|
|---|
| 19 | Rexx programs (memory management/access, semaphores, pipes, queues, module handling,
|
|---|
| 20 | threading/tasking, system information, i/o, devioctl, etc.), as well as providing
|
|---|
| 21 | many functions which aid in Rexx programming (variable pool access, "expose" variables
|
|---|
| 22 | across external function calls, queue manipulation, macrospace management, etc.).
|
|---|
| 23 | Package includes .INF file and sample Rexx programs. Freeware. Uploaded by author.
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 | %prep
|
|---|
| 27 | %setup -n "%{name}-%{version}" -Tc
|
|---|
| 28 | unzip -qj %{_sourcedir}/%{name}-%{version}.zip
|
|---|
| 29 |
|
|---|
| 30 | %build
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 | %install
|
|---|
| 34 | install -p -m0755 -D rxsrs.exe $RPM_BUILD_ROOT%{_bindir}/rxsrs.exe
|
|---|
| 35 | install -p -m0644 -D rxu.dll $RPM_BUILD_ROOT%{_libdir}/rxu.dll
|
|---|
| 36 | install -p -m0644 -D rxu.inf $RPM_BUILD_ROOT%{_datadir}/os2/book/rxu.inf
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 | %clean
|
|---|
| 40 | rm -rf "$RPM_BUILD_ROOT"
|
|---|
| 41 |
|
|---|
| 42 | %post
|
|---|
| 43 | if [ "$1" -ge 1 ]; then # (upon update)
|
|---|
| 44 | %wps_object_delete_all
|
|---|
| 45 | %{_rpmconfigdir_os2}/wpi4rpm del %{vendor}/%{name}/Library %{version}-%{release}
|
|---|
| 46 | fi
|
|---|
| 47 | %{_rpmconfigdir_os2}/wpi4rpm add %{vendor}/%{name}/Library %{version}-%{release}
|
|---|
| 48 |
|
|---|
| 49 | %postun
|
|---|
| 50 | if [ "$1" -eq 0 ]; then # (upon removal)
|
|---|
| 51 | %wps_object_delete_all
|
|---|
| 52 | %{_rpmconfigdir_os2}/wpi4rpm del %{vendor}/%{name}/Library %{version}-%{release}
|
|---|
| 53 | fi
|
|---|
| 54 |
|
|---|
| 55 | %files
|
|---|
| 56 | %defattr(-,root,root,-)
|
|---|
| 57 | %doc rxu.dsc rxusmp.zip
|
|---|
| 58 | %_bindir/*.exe
|
|---|
| 59 | %_libdir/*.dll
|
|---|
| 60 | %_datadir/os2/book/*.inf
|
|---|
| 61 |
|
|---|
| 62 |
|
|---|
| 63 | %changelog
|
|---|
| 64 | * Fri Sep 07 2018 hb <herwig.bauernfeind@bitwiseworks.com> 1.a.0-3
|
|---|
| 65 | - Fix spec file (Silvan Scherrer)
|
|---|
| 66 |
|
|---|
| 67 | * Thu Jun 07 2018 hb <herwig.bauernfeind@bitwiseworks.com> 1.a.0-2
|
|---|
| 68 | - Fix location of wpi4rpm and objects
|
|---|
| 69 |
|
|---|
| 70 | * Sun Feb 05 2017 hb <herwig.bauernfeind@bitwiseworks.com> 1.a.0-1
|
|---|
| 71 | - final release by Dave Boll
|
|---|