# OpenWebSpider on IBM i

This packaging directory targets IBM i PASE. It does not target native ILE
objects or service programs.

Expected environment:

- PASE shell.
- Open Source Package Management under `/QOpenSys/pkgs`.
- GCC, GNU make, pkg-config, MariaDB connector, OpenSSL, zlib, poppler, ffmpeg.
- ASCII/UTF-8 compatible PASE locale; native ILE/EBCDIC builds are out of scope.

Build:

```sh
gmake ibmi
```

The Makefile defaults `PREFIX` and `LOCALBASE` to `/QOpenSys/pkgs` when
`UNAME_S=OS400`, and exports `OBJECT_MODE=64`.

Stage install:

```sh
gmake install PREFIX=/QOpenSys/pkgs DESTDIR=/tmp/openwebspider-stage
```

The RPM skeleton is a starting point for sites that build their own IBM i open
source packages.
