|
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 |
|
|---|
| 3 | Summary: Install Font
|
|---|
| 4 | Name: instfont
|
|---|
| 5 | Version: 1.0.0
|
|---|
| 6 | Release: 1%{?dist}
|
|---|
| 7 | License: proprietary
|
|---|
| 8 | URL: http://www.altsan.org/programming/os2/#instfont
|
|---|
| 9 | Vendor: Alex Tylor
|
|---|
| 10 | Source: %{name}-%{version}.zip
|
|---|
| 11 | BuildRoot: %_tmppath/%name-%version-%release-root
|
|---|
| 12 |
|
|---|
| 13 | %description
|
|---|
| 14 | The purpose of this utility is to install fonts into the WPS.
|
|---|
| 15 |
|
|---|
| 16 | %prep
|
|---|
| 17 | %setup -n "%{name}-%{version}" -Tc
|
|---|
| 18 | unzip -qj %{_sourcedir}/%{name}-%{version}.zip
|
|---|
| 19 |
|
|---|
| 20 | %build
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 | %install
|
|---|
| 24 | for f in *.exe ; do
|
|---|
| 25 | install -p -m 0755 -D $f $RPM_BUILD_ROOT%{_bindir}/$f
|
|---|
| 26 | done
|
|---|
| 27 | wpi4rpm add %{vendor}/%{name}/binaries %{version}-%{release}
|
|---|
| 28 |
|
|---|
| 29 | %clean
|
|---|
| 30 | rm -rf "$RPM_BUILD_ROOT"
|
|---|
| 31 |
|
|---|
| 32 | %post
|
|---|
| 33 | if [ "$1" -ge 1 ]; then # (upon update)
|
|---|
| 34 | %wps_object_delete_all
|
|---|
| 35 | fi
|
|---|
| 36 |
|
|---|
| 37 | %postun
|
|---|
| 38 | if [ "$1" -eq 0 ]; then # (upon removal)
|
|---|
| 39 | %wps_object_delete_all
|
|---|
| 40 | fi
|
|---|
| 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.