Fix for bug 3451. Use the commit count and sha1 from git describe to
construct a release string for rpm packages.
Conflicts:
configure.ac
#################################################################################
Name: ceph
Version: @VERSION@
-Release: 6%{?dist}
+Release: @RPM_RELEASE@%{?dist}
Summary: User space components of the Ceph file system
License: GPL-2.0
Group: System Environment/Base
# from 'git describe'; see src/ceph_ver.[ch]
AC_INIT([ceph], [0.48.2argonaut], [ceph-devel@vger.kernel.org])
+# Create release string. Used with VERSION for RPMs.
+AC_SUBST(RPM_RELEASE)
+RPM_RELEASE=`if expr index $(git describe --always) '-' > /dev/null ; then git describe --always | cut -d- -f2- | tr '-' '.' ; fi`
+
+AC_CONFIG_MACRO_DIR([m4])
+
AC_CONFIG_SUBDIRS([src/gtest])
AC_CONFIG_SUBDIRS([src/leveldb])