https://github.com/weserv/rpms
RPM spec files and patches for wsrv.nl.
https://github.com/weserv/rpms
Last synced: 8 months ago
JSON representation
RPM spec files and patches for wsrv.nl.
- Host: GitHub
- URL: https://github.com/weserv/rpms
- Owner: weserv
- License: bsd-3-clause
- Created: 2021-01-01T18:16:09.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2025-02-09T10:17:39.000Z (8 months ago)
- Last Synced: 2025-02-09T11:23:17.316Z (8 months ago)
- Language: Dockerfile
- Homepage: https://rpms.wsrv.nl/
- Size: 189 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# weserv/rpms
Spec files and patches used for building the nginx weserv module and dependencies in RHEL 9 (and its derivatives).
## Build instructions
Build the `nginx-mod-weserv` RPM within a Docker container:
* Clone this repository.
```bash
git clone https://github.com/weserv/rpms.git
cd rpms/
```* Build the container locally.
```bash
docker build -t weserv/rpms .
```* Create rpmbuild working directory and change the ownership to the builder user (uid 1000).
```bash
mkdir ~/rpmbuild
chown -R 1000:1000 ~/rpmbuild
```* Build the source RPM.
```bash
docker run --privileged -v $(pwd):/rpms -v $HOME/rpmbuild:/rpmbuild weserv/rpms \
mock --buildsrpm -r el9-wsrv-x86_64 --enable-network -D '_disable_source_fetch 0' --resultdir=/rpmbuild/SRPMS \
--spec=/rpms/nginx-mod-weserv/nginx-mod-weserv.spec --sources=/rpms/nginx-mod-weserv
```* Build the RPM.
```bash
docker run --privileged -v $HOME/rpmbuild:/rpmbuild weserv/rpms \
mock --rebuild -r el9-wsrv-x86_64 --resultdir=/rpmbuild/RPMS/"{{target_arch}}"/ \
/rpmbuild/SRPMS/nginx-mod-weserv-5.0.0-1.20250209git1a0ce63.el9.wsrv.src.rpm
```