rpm

package
v0.0.0-...-db847b8 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
	Name          string            `json:"name"`
	Version       string            `json:"version,omitempty"`
	Arch          string            `json:"arch,omitempty"`
	Release       string            `json:"release,omitempty"`
	Group         string            `json:"group,omitempty"`
	License       string            `json:"license,omitempty"`
	URL           string            `json:"url,omitempty"`
	Summary       string            `json:"summary,omitempty"`
	Description   string            `json:"description,omitempty"`
	ChangelogFile string            `json:"changelog-file,omitempty"`
	ChangelogCmd  string            `json:"changelog-cmd,omitempty"`
	Files         []fileInstruction `json:"files,omitempty"`
	PreInst       string            `json:"preinst,omitempty"`
	PostInst      string            `json:"postinst,omitempty"`
	PreRm         string            `json:"prerm,omitempty"`
	PostRm        string            `json:"postrm,omitempty"`
	Verify        string            `json:"verify,omitempty"`
	BuildRequires []string          `json:"build-requires,omitempty"`
	Requires      []string          `json:"requires,omitempty"`
	Provides      []string          `json:"provides,omitempty"`
	Conflicts     []string          `json:"conflicts,omitempty"`
	Envs          map[string]string `json:"envs,omitempty"`
	Menus         []menu            `json:"menus"`
	AutoReqProv   string            `json:"auto-req-prov,omitempty"`
}

Package contains the build information

func (*Package) GenerateFilesSection

func (p *Package) GenerateFilesSection(sourceDir string) (string, error)

GenerateFilesSection generates the files section.

func (*Package) GenerateInstallSection

func (p *Package) GenerateInstallSection(sourceDir string) (string, error)

GenerateInstallSection generates the install section.

func (*Package) GenerateSpecFile

func (p *Package) GenerateSpecFile(sourceDir string) (string, error)

GenerateSpecFile generates the spec file.

func (*Package) GetChangelogContent

func (p *Package) GetChangelogContent() (string, error)

GetChangelogContent generates the changelog content.

func (*Package) InitializeBuildArea

func (p *Package) InitializeBuildArea(buildAreaPath string) error

InitializeBuildArea intializes the build area

func (*Package) Load

func (p *Package) Load(file string) error

Load package build information

func (*Package) Normalize

func (p *Package) Normalize(arch string, version string) error

Normalize build information

func (*Package) RunBuild

func (p *Package) RunBuild(buildAreaPath string, output string) error

RunBuild executes the build of buildAreaPath.

func (*Package) WriteEnvFile

func (p *Package) WriteEnvFile() (string, error)

WriteEnvFile writes the env file in the build area.

func (*Package) WriteShortcutFiles

func (p *Package) WriteShortcutFiles() ([]string, error)

WriteShortcutFiles writes the shortcuts in the build area.

func (*Package) WriteSpecFile

func (p *Package) WriteSpecFile(sourceDir string, buildAreaPath string) error

WriteSpecFile writes the spec file.

Jump to

Keyboard shortcuts

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