source: spec/trunk/SPECS/rxextras.spec@ 1330

Last change on this file since 1330 was 1286, checked in by herwigb, 8 years ago

spec: rxextras: Release version 1.g.0-1.

File size: 1.9 KB
Line 
1%define debug_package %{nil}
2
3Summary: Dion Gillard's RXExtras REXX library
4Name: rxextras
5Version: 1.g.0
6Release: 1%{?dist}
7License: Freeware
8Group: System/Libraries
9URL: http://www.edm2.com/index.php/OS2_API:RXU
10Vendor: Dave Boll
11Source: %{name}-%{version}.zip
12BuildRoot: %_tmppath/%name-%version-%release-root
13Requires: wpi4rpm >= 0.9.2
14
15%description
16RxExtras is a set of functions to enhance OS/2's REXX programming language,
17and is accompanied by additional functions to be used by other PM Rexx-based
18software (VisPro/Rexx and VX-Rexx, among others). Some of the functions
19provided by RxExtras can be accomplished by various other means using "pure"
20OS/2 REXX code, but RxExtras provides an easier interface and more efficient
21processing.
22
23%prep
24%setup -n "%{name}-%{version}" -Tc
25unzip -q %{_sourcedir}/%{name}-%{version}.zip
26
27%build
28
29
30%install
31mkdir -p $RPM_BUILD_ROOT%{_libdir}
32cp usr/lib/*.dll $RPM_BUILD_ROOT%{_libdir}
33mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}
34cp usr/share/doc/rxextras/* $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}
35mkdir -p $RPM_BUILD_ROOT%{_datadir}/os2/book
36cp usr/share/os2/book/*.inf $RPM_BUILD_ROOT%{_datadir}/os2/book
37
38%clean
39rm -rf "$RPM_BUILD_ROOT"
40
41%post
42if [ "$1" -ge 1 ]; then # (upon update)
43 %wps_object_delete_all
44 wpi4rpm del %{vendor}/%{name}/Library %{version}-%{release}
45fi
46%global title %{summary}
47wpi4rpm add %{vendor}/%{name}/Library %{version}-%{release}
48
49%postun
50if [ "$1" -eq 0 ]; then # (upon removal)
51 %wps_object_delete_all
52 wpi4rpm del %{vendor}/%{name}/Library %{version}-%{release}
53fi
54
55%files
56%defattr(-,root,root,-)
57%_defaultdocdir/%{name}-%{version}/*
58%_libdir/*.dll
59%_datadir/os2/book/*.inf
60
61%changelog
62* Sun Feb 05 2017 hb <herwig.bauernfeind@bitwiseworks.com> 1.g.0-1
63- final release by Dion Gillard
Note: See TracBrowser for help on using the repository browser.