From 8de3799b923ab0436819c95002fc191fbcca00c2 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sat, 27 Jun 2009 23:48:12 +0000 Subject: Add support for building rpm packages. Now just a rpmbuild -ta will do. --- configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 01dbdc7..c65509d 100644 --- a/configure.ac +++ b/configure.ac @@ -76,5 +76,10 @@ if test "x$GCC" = "xyes"; then fi fi -AC_CONFIG_FILES([netrom/Makefile tcpip/Makefile ax25/Makefile ax25/axgetput/Makefile Makefile rose/Makefile user_call/Makefile kiss/Makefile 6pack/Makefile hdlcutil/Makefile hdlcutil/fl/Makefile yamdrv/Makefile dmascc/Makefile]) +basever=$(echo $PACKAGE_VERSION | sed -e 's@-.*$@@') +AC_SUBST(BASEVERSION, [$basever]) +extraver=$(echo $PACKAGE_VERSION | sed -e 's@@<:@^-@:>@*-@@' -e 's@-@_@') +AC_SUBST(EXTRAVERSION, [$extraver]) + +AC_CONFIG_FILES([netrom/Makefile tcpip/Makefile ax25/Makefile ax25/axgetput/Makefile Makefile rose/Makefile user_call/Makefile kiss/Makefile 6pack/Makefile hdlcutil/Makefile hdlcutil/fl/Makefile yamdrv/Makefile dmascc/Makefile ax25-tools.spec]) AC_OUTPUT -- cgit v1.2.3