Autogenerate the redhat/zebra.spec file using autoconf
supplied VERSION and CONFDATE.
diff --git a/configure.ac b/configure.ac
index aa9bac0..5862455 100755
--- a/configure.ac
+++ b/configure.ac
@@ -908,7 +908,11 @@
ac_cv_htonl_works=no)])
AC_MSG_RESULT($ac_cv_htonl_works)
-AC_OUTPUT(Makefile lib/Makefile zebra/Makefile ripd/Makefile ripngd/Makefile bgpd/Makefile ospfd/Makefile ospf6d/Makefile vtysh/Makefile doc/Makefile ospfclient/Makefile)
+AC_OUTPUT(Makefile lib/Makefile zebra/Makefile ripd/Makefile
+ ripngd/Makefile bgpd/Makefile ospfd/Makefile
+ ospf6d/Makefile vtysh/Makefile doc/Makefile
+ ospfclient/Makefile
+ redhat/zebra.spec)
echo "
zebra configuration
diff --git a/configure.in b/configure.in
index aa9bac0..5862455 100755
--- a/configure.in
+++ b/configure.in
@@ -908,7 +908,11 @@
ac_cv_htonl_works=no)])
AC_MSG_RESULT($ac_cv_htonl_works)
-AC_OUTPUT(Makefile lib/Makefile zebra/Makefile ripd/Makefile ripngd/Makefile bgpd/Makefile ospfd/Makefile ospf6d/Makefile vtysh/Makefile doc/Makefile ospfclient/Makefile)
+AC_OUTPUT(Makefile lib/Makefile zebra/Makefile ripd/Makefile
+ ripngd/Makefile bgpd/Makefile ospfd/Makefile
+ ospf6d/Makefile vtysh/Makefile doc/Makefile
+ ospfclient/Makefile
+ redhat/zebra.spec)
echo "
zebra configuration
diff --git a/redhat/zebra.spec b/redhat/zebra.spec.in
similarity index 99%
rename from redhat/zebra.spec
rename to redhat/zebra.spec.in
index 6419faf..ce3a6fb 100644
--- a/redhat/zebra.spec
+++ b/redhat/zebra.spec.in
@@ -26,8 +26,8 @@
Summary: Routing daemon
Name: zebra
-Version: 0.94
-Release: 2003032501
+Version: @VERSION@
+Release: @CONFDATE@
License: GPL
Group: System Environment/Daemons
Source0: ftp://ftp.zebra.org/pub/zebra/%{name}-%{version}.tar.gz