## START: Set by rpmautospec ## (rpmautospec version 0.6.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: setgittag Version: 0.1.1 Release: %autorelease Summary: Sets a git tag to the current folder License: MIT URL: https://github.com/grillo-delmal/setgittag Source0: https://github.com/grillo-delmal/setgittag/archive/%{version}/%{name}-%{version}.tar.gz Requires: bash BuildArch: noarch %description Creates a repository in the current folder, creates an empty commit and sets the described tag for it. The purpose of this is to have a method to set what the 'git describe' command shows without needing to import a project's git history. %prep %setup -q sed -i "s/VERSION=\"UNTAGGED\"/VERSION=\"%{version}\"/" setgittag %build %install mkdir -p %{buildroot}/%{_bindir} install -m 0755 %{name} %{buildroot}/%{_bindir}/%{name} %files %license LICENSE %{_bindir}/%{name} %changelog ## START: Generated by rpmautospec * Sun Oct 09 2022 Grillo del Mal - 0.1.1-1 - New version * Sun Oct 09 2022 Grillo del Mal - 0.1.0-3 - The configuration in the commit is not enough * Sun Oct 09 2022 Grillo del Mal - 0.1.0-2 - .git can also be a file * Sun Oct 09 2022 Grillo del Mal - 0.1.0-1 - Initial version ## END: Generated by rpmautospec