Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron D. Marasco committed Jul 15, 2020
1 parent 77315b2 commit 8f794d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions build/README.md.src
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ Feel free to create a new chapter and submit a PR!
----

## How to... !heading
### Define Version, Release, etc. in another file, environment variable, etc. !heading
This is shown in most chapters, including [Importing a Pre-Existing File Tree](#importing-a-pre-existing-file-tree).
### Define key parameters elsewhere !heading
The techniques to define Version, Release, etc. in another file, environment variable, etc. are shown in most chapters, including [Importing a Pre-Existing File Tree](#importing-a-pre-existing-file-tree). As an alternative to using the `rpmbuild` command line's `--define` option, you can also pre-process the specfile using `sed`, `autotools`, etc. I've seen them all and done them all for various reasons.

### Call `rpmbuild` from a `Makefile` !heading
### Call rpmbuild from a Makefile !heading
This is shown in most chapters, including [Git Branch or Tag in Release](#git-branch-or-tag-in-release).

### Disable debug packaging !heading
While **not recommended**, because debug packages are very useful, this is shown in most chapters as well.

### Include Jenkins (or Any CI) Job Number in Release !heading
### Include Jenkins Job Number in Release !heading
This is shown in the `git` chapter as [Jenkins Build Number in Release](#jenkins-build-number-in-release)

### Provide Older Versions of Libraries !heading
Expand Down
6 changes: 3 additions & 3 deletions quick_tips/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Quick Tips !heading
In reviewing some of the most highly voted answers on Stack Overflow, I decided to gather a few here that don't require a full example to explain:

### Don't Put Single % In Comments !heading
This happens [a](https://stackoverflow.com/a/14063974/836748) [*lot*](https://stackoverflow.com/a/18440679/836748). You need to double it with `%%`, or a multi-line macro will only have the first line commented out!
### RPM Preprocessor is Really Dumb !heading
**Don't** put single `%` in comments... this happens [a](https://stackoverflow.com/a/14063974/836748) [*lot*](https://stackoverflow.com/a/18440679/836748). You need to double it with `%%`, or a multi-line macro will only have the first line commented out! Newer versions of `rpmbuild` will _at least_ warn you now.

### Extract All Files !heading
Use `rpm2cpio` with `cpio`. This will extract all files treating the current directory as `/`:
Expand All @@ -18,7 +18,7 @@ $ rpm2cpio package-3.8.3.rpm | cpio -iv --to-stdout ./usr/share/doc/package-3.8.
2173 blocks
```

### Change (or No) Compression !heading
### Change Compression or No Compression !heading
As noted [here](https://stackoverflow.com/a/10255406/836748):
```rpm-spec
%define _source_payload w0.gzdio
Expand Down

0 comments on commit 8f794d5

Please sign in to comment.