Skip to content

Utility for installing dependencies for building an RPM package

License

Notifications You must be signed in to change notification settings

essentialkaos/spec-builddep

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), then:

go install github.com/essentialkaos/spec-builddep@latest

Prebuilt binaries

You can download prebuilt binaries for Linux from EK Apps Repository:

bash <(curl -fsSL https://apps.kaos.st/get) spec-builddep
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:

sudo spec-builddep --completion=bash 1> /etc/bash_completion.d/spec-builddep

ZSH:

sudo spec-builddep --completion=zsh 1> /usr/share/zsh/site-functions/spec-builddep

Fish:

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:

spec-builddep --generate-man | sudo gzip > /usr/share/man/man1/spec-builddep.1.gz

Usage

CI Status

Branch Status
master CI
develop CI

Contributing

Before contributing to this project please read our Contributing Guidelines.

License

Apache License, Version 2.0