An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          


GoReportCard
Code Climate Maintainability
Codacy badge
GitHub Actions CI Status
GitHub Actions CodeQL Status

InstallationCommand-line completionMan documentationUsageCI StatusContributingLicense


`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` | [![CI](https://kaos.sh/w/spec-builddep/ci.svg?branch=master)](https://kaos.sh/w/spec-builddep/ci?query=branch:master) |
| `develop` | [![CI](https://kaos.sh/w/spec-builddep/ci.svg?branch=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)