- Go https://copr.fedoraproject.org/api/ and login in and see the values to set.
- Then modify
Usage: How to build rpms
Build docker image
To build the docker image to build the srpm or rpm files, run the following command.
Build rpms using mock on a docker container
To try building rpm files with mock, run the following command.
source .envrc ./docker_wrapper.sh bash
Then in the docker container, run the fowllowing command to build rpms with mock.
If the build finish successfully, run the following command to upload the srpm file to copr.
Build srpm and upload it to copr
If you are sure your rpms will be built successfully, skip the above section "Build rpms interactively" and run the following command to run the docker image to build the srpm file and upload it to copr.
source .envrc ./docker_wrapper.sh run
NOTE: Using direnv
I recommend you to use direnv/direnv
instead of running
source .envrc yourself.
Modify this scripts to build other rpms
- See NOTE comments in
script/build.shand edit variables and commands
- Put the spec file in the
- Put the source files in the
- Include https://github.com/bagder/libbrotli into spec file as -devel RPM
- Provide Nginx instructions to pre-"bro" static files. "If you can perform brotli 10 (11 makes little sense) compression upfront on all your most common static assets you will see very large network performance gains on supporting browsers."