summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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/