# The following tag is to get correct syntax highlighting for this file in vim text editor
# vim: syntax=spec
# git_dir_name returns repository name derived from remote Git repository URL
Name: {{{ git_dir_name }}}
# we specify version manually here because this is a downstream project
Version: 1.14.0
# git_dir_release returns release based on the current branch
# and also commit and tag history of the Git project
# Equivalent of {{{ git_dir_release prefix="$GIT_BRANCH" }}}
Release: {{{ git_dir_release_branched }}}
# Basic description of the package
Summary: Hello rpkg release package.
# License. Hopefully free or at least open-source. We assume GPLv2+ here.
License: GPLv2+
# Home page of the project. Can also point to the public Git repository page.
URL: https://pagure.io/hello_rpkg_release
# Detailed information about the source Git repository and the source commit
# for the created rpm package
VCS: {{{ git_dir_vcs }}}
# git_dir_pack macro places the repository content (the source files) into a tarball
# and returns its filename. The tarball will be used to build the rpm.
Source: {{{ git_dir_pack }}}
# More detailed description of the package
%description
This is a hello world package. And this is change in master branch.
# The following four sections already describe the rpm build process itself.
# prep will extract the tarball defined as Source above and descend into it.
%prep
{{{ git_dir_setup_macro }}}
# This will invoke `make` command in the directory with the extracted sources.
%build
make
# This will copy the files generated by the `make` command above into
# the installable rpm package.
%install
make install root=%{buildroot}
# This lists all the files that are included in the rpm package and that
# are going to be installed into target system where the rpm is installed.
%files
/usr/bin/hello_rpkg
# Finally, changes from the latest release of your application are generated from
# your project's Git history. It will be empty until you make first annotated Git tag.
%changelog
{{{ git_dir_changelog }}}