spec-builddep

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

README

GoReportCard Code Climate Maintainability Codebeat 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.20+ 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

From ESSENTIAL KAOS Public Repository

sudo yum install -y https://pkgs.kaos.st/kaos-repo-latest.el$(grep 'CPE_NAME' /etc/os-release | tr -d '"' | cut -d':' -f5).noarch.rpm
sudo yum 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

Usage: spec-builddep {options} spec-file

Options

  --list, -L                 List required build dependencies
  --actual, -A               Install the latest versions of all packages
  --clean, -C                Clean package manager cache before install
  --define, -D macro         Define a macro for spec file parsing (mergeble)
  --exclude, -x package      Exclude packages by name or glob (mergeble)
  --enablerepo, -ER repo     Enable additional repositories (mergeble)
  --disablerepo, -DR repo    Disable repositories (mergeble)
  --no-color, -nc            Disable colors in output
  --help, -h                 Show this help message
  --version, -v              Show version

Examples

  spec-builddep -L nginx.spec
  List all required build dependencies from nginx spec

  spec-builddep nginx.spec -ER epel-testing -ER kaos-testing
  Install packages required for building nginx package

  spec-builddep --clean --actual nginx.spec
  Install the latest version of packages required for building nginx package

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL