From 52f1c8f115a3f4f86ed38ff137887042d0a734ad Mon Sep 17 00:00:00 2001 From: Michael Jennings Date: Fri, 28 Feb 2020 16:30:10 -0700 Subject: Bump version; git-ize Release in specfile Bump version to 0.8.1 so we can cleanly change the Release field in the specfile (and resulting RPMs, of course) to include git-related history information (similar to Zathras). Git metadata is now used to determine the latest commit hash, the "modified" state of the tree, and the number of commits since the most recent tag. --- configure.ac | 2 +- libast.spec | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 3478a2f..df8625b 100644 --- a/configure.ac +++ b/configure.ac @@ -29,7 +29,7 @@ # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -AC_INIT([LibAST], [0.8]) +AC_INIT([LibAST], [0.8.1]) AC_CONFIG_SRCDIR([configure.ac]) AM_INIT_AUTOMAKE diff --git a/libast.spec b/libast.spec index dfc3e4e..bbd5615 100644 --- a/libast.spec +++ b/libast.spec @@ -1,3 +1,5 @@ +%{!?_rel:%{expand:%%global _rel 0.%(git describe --abbrev=4 --always --tags --long --dirty=.1 | cut -d- -f 2- | tr '-' '.')}} + %define __os_install_post /usr/lib/rpm/brp-compress %if %{!?optflags:1}0 %{expand:%%define optflags %{!?el8:${RPM_OPT_FLAGS:--O0 -g3}}%{?el8:-O2 -ggdb3 -fPIC}} @@ -5,9 +7,8 @@ Summary: Library of Assorted Spiffy Things Name: libast -Version: 0.8 -#Release: 1 -Release: 0.%(date '+%Y%m%d')%{?dist} +Version: 0.8.1 +Release: %{_rel}%{?dist} Group: System Environment/Libraries License: BSD URL: http://www.eterm.org/ -- cgit v1.2.1