Switch to caret versioning

This commit is contained in:
Carl George 2021-05-27 23:02:21 -05:00
parent 17c1a13d7c
commit 96aaaea3ff
1 changed files with 11 additions and 8 deletions

View File

@ -1,21 +1,21 @@
%global forgeurl https://github.com/ggreer/the_silver_searcher
%global commit 5a1c8d83ba1514ca8d045ba80403f93772fb371a
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global date 2020704
%forgemeta
%bcond_without tests
Name: the_silver_searcher
Version: 2.2.0
Release: 4%{?dist}
Version: 2.2.0^%{date}.%{shortcommit}
Release: 1%{?dist}
Summary: Super-fast text searching tool (ag)
License: ASL 2.0 and BSD
URL: %{forgeurl}
Source0: %{forgesource}
URL: https://github.com/ggreer/the_silver_searcher
Source0: %{url}/archive/%{commit}/%{name}-%{commit}.tar.gz
# https://github.com/ggreer/the_silver_searcher/pull/1410
Patch0: 0001-Install-shell-completion-files-to-correct-locations.patch
BuildRequires: make
BuildRequires: make
BuildRequires: gcc
BuildRequires: autoconf
BuildRequires: automake
@ -39,7 +39,7 @@ with a focus on speed.
%prep
%forgeautosetup -p 1
%autosetup -n %{name}-%{commit} -p 1
%build
@ -71,6 +71,9 @@ make test
%changelog
* Fri May 28 2021 Carl George <carl@george.computer> - 2.2.0^2020704.5a1c8d8-1
- Switch to caret versioning
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild