https://github.com/jameslikeslinux/glue-packages
Temporary -- to be moved to GitLab.
https://github.com/jameslikeslinux/glue-packages
Last synced: about 1 month ago
JSON representation
Temporary -- to be moved to GitLab.
- Host: GitHub
- URL: https://github.com/jameslikeslinux/glue-packages
- Owner: jameslikeslinux
- Created: 2015-10-05T16:37:35.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-14T01:08:36.000Z (over 9 years ago)
- Last Synced: 2025-02-13T15:41:15.693Z (3 months ago)
- Language: Shell
- Size: 31.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### Table of Contents
1. [Creating a new package](#creating-a-new-package)
2. [Installing build dependencies](#installing-build-dependencies)
3. [Building a package](#building-a-package)## Creating a new package
`rpmdevtools` provides a number of boilerplate spec files to get started from. See the output of `rpmdev-newspec --help` to see the list of package types it can generate specs for. At a minimum, you can use
```
$ rpmdev-newspec SPECS/package-name.spec
```to get started, or copy and modify an existing spec file, like `glue-bootstrap.spec` or `glue-scripts.spec`.
The benefit of using spec files to build packages is [tons of documentation](https://fedoraproject.org/wiki/How_to_create_an_RPM_package), [a fairly good set of standards to start from](https://fedoraproject.org/wiki/Packaging:Guidelines), and plenty of good macros to make our lives easier.
## Installing build dependencies
Pull in any build dependencies specified by the spec file:
```
# yum-builddeps SPECS/package-name.spec
```## Building a package
The following two commands will download package source files (if URLs to the source are provided in the spec file) and then build and sign the package file.
```
$ ./do spectool -R -g SPECS/package-name.spec
$ ./do rpmbuild -bb --sign --define 'dist .el7' SPECS/package-name.spec
```You will have to run the `do rpmbuild` command with AFS admin rights to be able to read the GPG key.