source: spec/trunk/SPECS/pr1util.spec@ 1521

Last change on this file since 1521 was 1485, checked in by herwigb, 7 years ago

spec: pr1util: Release version 1.6.5-2.

File size: 1.5 KB
Line 
1%define debug_package %{nil}
2
3Summary: Paul Ratcliffe's PR1UTIL library
4Name: pr1util
5Version: 1.6.5
6Release: 2%{?dist}
7License: Freeware
8Group: Applications/System
9URL: http://home.clara.net/orac/os2.htm
10Vendor: Paul Ratcliffe
11Source: %{name}-%{version}.zip
12BuildRoot: %_tmppath/%name-%version-%release-root
13Obsoletes: PR1UTIL
14Requires: os2-rpm >= 1-2
15
16%description
17PR1UTIL is a REXX library of miscellaneous functions. It uses TCP/IP
18libraries and thus requires TCP/IP to be installed. The program is freeware
19and as such USE OF THIS PROGRAM IS ENTIRELY AT YOUR OWN RISK.
20
21%prep
22%setup -n "%{name}-%{version}" -Tc
23unzip -qj %{_sourcedir}/%{name}-%{version}.zip
24
25%build
26
27
28%install
29install -p -m0644 -D pr1util.dll $RPM_BUILD_ROOT%{_libdir}/pr1util.dll
30
31
32%clean
33rm -rf "$RPM_BUILD_ROOT"
34
35
36%post
37if [ "$1" -ge 1 ]; then # (upon update)
38 %wps_object_delete_all
39 %{_rpmconfigdir_os2}/wpi4rpm del %{vendor}/Pr1Util/Library %{version}-%{release}
40fi
41%{_rpmconfigdir_os2}/wpi4rpm add %{vendor}/Pr1Util/Library %{version}-%{release}
42
43
44%postun
45if [ "$1" -eq 0 ]; then # (upon removal)
46 %wps_object_delete_all
47 %{_rpmconfigdir_os2}/wpi4rpm del %{vendor}/Pr1Util/Library %{version}-%{release}
48fi
49
50
51%files
52%defattr(-,root,root,-)
53%doc pr1util.txt
54%_libdir/*.dll
55
56
57%changelog
58* Tue Sep 11 2018 hb <herwig.bauernfeind@bitwiseworks.com> 1.6.5-2
59- fixed rpm and case
60* Sun Feb 05 2017 hb <herwig.bauernfeind@bitwiseworks.com> 1.6.5-1
61- final release from Paul Ratcliffe
Note: See TracBrowser for help on using the repository browser.