Installation#

$ dnf install rpkg

Creating Spec Template#

Name:       {{{ git_dir_name }}}
Version:    {{{ git_dir_version }}}
Release:    1%{?dist}
Summary:    This is a test package.

License:    GPLv2+
URL:        https://someurl.org
VCS:        {{{ git_dir_vcs }}}

Source:     {{{ git_dir_pack }}}

%description
This is a test package.

%prep
{{{ git_dir_setup_macro }}}

%changelog
{{{ git_dir_changelog }}}

See also Spec templates from scratch.

Generating Spec File#

$ rpkg spec

Creating Source RPM#

$ rpkg srpm

Creating Local Build#

$ rpkg local

See Also#