source: spec/trunk/SPECS/instfont.spec@ 1566

Last change on this file since 1566 was 1467, checked in by herwigb, 7 years ago

spec: instfont: Release version 1.0.0-1.

File size: 1.0 KB
Line 
1%define debug_package %{nil}
2
3Summary: Install Font
4Name: instfont
5Version: 1.0.0
6Release: 1%{?dist}
7License: proprietary
8URL: http://www.altsan.org/programming/os2/#instfont
9Vendor: Alex Tylor
10Source: %{name}-%{version}.zip
11BuildRoot: %_tmppath/%name-%version-%release-root
12
13%description
14The purpose of this utility is to install fonts into the WPS.
15
16%prep
17%setup -n "%{name}-%{version}" -Tc
18unzip -qj %{_sourcedir}/%{name}-%{version}.zip
19
20%build
21
22
23%install
24for f in *.exe ; do
25 install -p -m 0755 -D $f $RPM_BUILD_ROOT%{_bindir}/$f
26done
27wpi4rpm add %{vendor}/%{name}/binaries %{version}-%{release}
28
29%clean
30rm -rf "$RPM_BUILD_ROOT"
31
32%post
33if [ "$1" -ge 1 ]; then # (upon update)
34 %wps_object_delete_all
35fi
36
37%postun
38if [ "$1" -eq 0 ]; then # (upon removal)
39 %wps_object_delete_all
40fi
41
42%files
43%defattr(-,root,root,-)
44%doc instfont.txt instfont.c
45%_bindir/*.exe
46
47%changelog
48* Tue Mar 21 2017 Alex Taylor <herwig.bauernfeind@bitwiseworks.com> 1.0.0-1
49- first public version
Note: See TracBrowser for help on using the repository browser.