source: spec/trunk/SPECS/rxu.spec@ 1569

Last change on this file since 1569 was 1481, checked in by Silvan Scherrer, 7 years ago

update spec to current version again

File size: 2.1 KB
Line 
1%define debug_package %{nil}
2%define _strip_opts --no-compress --no-debuginfo
3
4Summary: Dave Boll's RXU REXX library
5Name: rxu
6Version: 1.a.0
7Release: 3%{?dist}
8License: Freeware
9Group: System/Libraries
10URL: http://www.edm2.com/index.php/OS2_API:RXU
11Vendor: Dave Boll
12Source: %{name}-%{version}.zip
13BuildRoot: %_tmppath/%name-%version-%release-root
14Requires: os2-rpm >= 1-2
15Obsoletes: RXU
16
17%description
18RXU v1.a - Rich set of Rexx functions which expose most of the OS/2 API set to
19Rexx programs (memory management/access, semaphores, pipes, queues, module handling,
20threading/tasking, system information, i/o, devioctl, etc.), as well as providing
21many functions which aid in Rexx programming (variable pool access, "expose" variables
22across external function calls, queue manipulation, macrospace management, etc.).
23Package includes .INF file and sample Rexx programs. Freeware. Uploaded by author.
24
25
26%prep
27%setup -n "%{name}-%{version}" -Tc
28unzip -qj %{_sourcedir}/%{name}-%{version}.zip
29
30%build
31
32
33%install
34install -p -m0755 -D rxsrs.exe $RPM_BUILD_ROOT%{_bindir}/rxsrs.exe
35install -p -m0644 -D rxu.dll $RPM_BUILD_ROOT%{_libdir}/rxu.dll
36install -p -m0644 -D rxu.inf $RPM_BUILD_ROOT%{_datadir}/os2/book/rxu.inf
37
38
39%clean
40rm -rf "$RPM_BUILD_ROOT"
41
42%post
43if [ "$1" -ge 1 ]; then # (upon update)
44 %wps_object_delete_all
45 %{_rpmconfigdir_os2}/wpi4rpm del %{vendor}/%{name}/Library %{version}-%{release}
46fi
47%{_rpmconfigdir_os2}/wpi4rpm add %{vendor}/%{name}/Library %{version}-%{release}
48
49%postun
50if [ "$1" -eq 0 ]; then # (upon removal)
51 %wps_object_delete_all
52 %{_rpmconfigdir_os2}/wpi4rpm del %{vendor}/%{name}/Library %{version}-%{release}
53fi
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
Note: See TracBrowser for help on using the repository browser.