-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5333 from daniviga/better-rpm
Improve buildrpms.sh for nightly builds
- Loading branch information
Showing
4 changed files
with
112 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
result | ||
*.tar.gz | ||
*.tar.bz2 | ||
local.cfg | ||
version.cfg | ||
qgis.spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
## QGIS RPM generator | ||
|
||
### Build RPM using mock | ||
|
||
```bash | ||
$ ./buildrpms.sh | ||
``` | ||
|
||
### Generate a valid spec file from template | ||
|
||
```bash | ||
$ ./buildrpms.sh -c | ||
``` | ||
|
||
### Build SRPM using mock | ||
|
||
```bash | ||
$ ./buildrpms.sh -s | ||
``` | ||
|
||
### Rebuild last generated RPM using mock | ||
|
||
```bash | ||
$ ./buildrpms.sh -b | ||
``` | ||
|
||
### Build an unstable release | ||
|
||
```bash | ||
$ ./buildrpms.sh [flags] -u | ||
``` | ||
|
||
This generates an RPM with release `.git<short commit ID>` | ||
|
||
|
||
### MOCK old chroot | ||
|
||
It is possible to execute `mock` using the 'old chroot' behavior (which does not uses `systemd-nspawn`) setting | ||
the environment variable `_MOCK_OLD_CHROOT` before running `buildrpms.sh`: | ||
|
||
```bash | ||
export _MOCK_OLD_CHROOT=1 | ||
``` | ||
|
||
This may be useful when running `mock` inside environments that do not play well with `systemd-nspawn` (LXC/LXD, Docker...). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters