summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Jennings <mej@lanl.gov>2020-02-28 16:30:10 -0700
committerMichael Jennings <mej@lanl.gov>2020-02-28 16:30:10 -0700
commit52f1c8f115a3f4f86ed38ff137887042d0a734ad (patch)
treeabe1fe602f2eb8f8ba6b02a1a4fc1515994e1fe8
parentc6a008f51b38014e7620937bd13ca312dfdeeed5 (diff)
downloadlibast-52f1c8f115a3f4f86ed38ff137887042d0a734ad.tar.gz
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.
-rw-r--r--configure.ac2
-rw-r--r--libast.spec7
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/