forked from taviso/wpunix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wordperfect8.spec
71 lines (60 loc) · 2.21 KB
/
wordperfect8.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Name: wordperfect8
Version: 0.13
Release: 1%{?dist}
Summary: WordPerfect for UNIX (TM) Character Terminals
License: Abandonware
URL: https://github.com/taviso/wpunix
#Source0: https://github.com/taviso/wpunix/archive/refs/heads/main.tar.gz
Source0: https://github.com/taviso/wpunix/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: https://archive.download.redhat.com/pub/redhat/linux/5.2/en/os/i386/RedHat/RPMS/libc-5.3.12-27.i386.rpm
Source2: https://archive.download.redhat.com/pub/redhat/linux/5.2/en/os/i386/RedHat/RPMS/glibc-2.0.7-29.i386.rpm
Source3: https://archive.org/download/corel-wpunix-8/COREL_WPUNIX_1.iso
ExclusiveArch: i686
BuildRequires: bsdtar
BuildRequires: chrpath
BuildRequires: gcc
BuildRequires: gdb
BuildRequires: glibc-devel%{_isa}
BuildRequires: glibc-static%{_isa}
BuildRequires: make
BuildRequires: patchelf
# just to avoid patching build script, not used for build
BuildRequires: wget
Provides: bundled(glibc) = 2.0.7-27
Provides: bundled(libc) = 5.3.12-29
# Instructions:
# $ spectool -g -R wordperfect8.spec
# $ QA_RPATHS=$(( 0x0001|0x0010 )) setarch i686 rpmbuild -bb wordperfect8.spec
#
%define __strip /bin/true
%global __provides_exclude_from ^/opt/wp80/lib
%description
WordPerfect is a word processing application for character terminals.
%global debug_package %{nil}
%prep
#%setup -q -n wpunix-main
%setup -q -n wpunix-%{version}
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} .
%build
make %{name}_i386
# FIXME: This should work but can cause crashes on startup.
# chrpath -d %{name}_i386/opt/wp80/lib/ld-2.0.7.so
%install
cp -pr %{name}_i386/opt %{buildroot}
cp -pr %{name}_i386/usr %{buildroot}
%files
/opt/wp80
%{_bindir}/wp
%changelog
* Tue Sep 27 2022 Dominik Mierzejewski <dominik@greysector.net> - 0.10-1
- make version match actual tag in github release
- fix typo in libc download URL
- use a nicer source download URL
- add missing BuildRequires and appropriate ExclusiveArch
- strip redundant rpath
- filter private libs from Provides:
- preserve file timestamps
* Sat Aug 13 2022 Tavis Ormandy <taviso@gmail.com>
- Renamed to match deb.
* Sat Aug 13 2022 Tavis Ormandy <taviso@gmail.com>
- Initial Version