https://github.com/essentialkaos/spec-builddep
Utility for installing dependencies for building an RPM package
https://github.com/essentialkaos/spec-builddep
dnf rpm-build rpm-spec yum
Last synced: over 1 year ago
JSON representation
Utility for installing dependencies for building an RPM package
- Host: GitHub
- URL: https://github.com/essentialkaos/spec-builddep
- Owner: essentialkaos
- License: apache-2.0
- Created: 2023-09-24T18:56:49.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2025-03-12T08:02:44.000Z (over 1 year ago)
- Last Synced: 2025-03-12T09:21:46.720Z (over 1 year ago)
- Topics: dnf, rpm-build, rpm-spec, yum
- Language: Go
- Homepage: https://kaos.sh/spec-builddep
- Size: 234 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
Installation • Command-line completion • Man documentation • Usage • CI Status • Contributing • License
`spec-builddep` is a simple utility for installing dependencies for building an RPM package (`yum-builddep` _drop-in replacement_).
### Installation
#### From source
To build the `spec-builddep` from scratch, make sure you have a working Go 1.22+ workspace (_[instructions](https://go.dev/doc/install)_), then:
```
go install github.com/essentialkaos/spec-builddep@latest
```
#### Prebuilt binaries
You can download prebuilt binaries for Linux from [EK Apps Repository](https://apps.kaos.st/spec-builddep/latest):
```bash
bash <(curl -fsSL https://apps.kaos.st/get) spec-builddep
```
#### From [ESSENTIAL KAOS Public Repository](https://kaos.sh/kaos-repo)
```bash
sudo dnf install -y https://pkgs.kaos.st/kaos-repo-latest.el$(grep 'CPE_NAME' /etc/os-release | tr -d '"' | cut -d':' -f5).noarch.rpm
sudo dnf install spec-builddep
```
### Command-line completion
You can generate completion for `bash`, `zsh` or `fish` shell.
Bash:
```bash
sudo spec-builddep --completion=bash 1> /etc/bash_completion.d/spec-builddep
```
ZSH:
```bash
sudo spec-builddep --completion=zsh 1> /usr/share/zsh/site-functions/spec-builddep
```
Fish:
```bash
sudo spec-builddep --completion=fish 1> /usr/share/fish/vendor_completions.d/spec-builddep.fish
```
### Man documentation
You can generate man page using next command:
```bash
spec-builddep --generate-man | sudo gzip > /usr/share/man/man1/spec-builddep.1.gz
```
### Usage

### CI Status
| Branch | Status |
|--------|----------|
| `master` | [](https://kaos.sh/w/spec-builddep/ci?query=branch:master) |
| `develop` | [](https://kaos.sh/w/spec-builddep/ci?query=branch:develop) |
### Contributing
Before contributing to this project please read our [Contributing Guidelines](https://github.com/essentialkaos/contributing-guidelines#contributing-guidelines).
### License
[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)