Index: Makefile.in =================================================================== RCS file: /home/cvs/gateway/Makefile.in,v retrieving revision 1.85 diff -u -r1.85 Makefile.in --- Makefile.in 24 Jun 2008 15:05:24 -0000 1.85 +++ Makefile.in 9 Oct 2008 20:25:11 -0000 @@ -27,7 +27,7 @@ mandir = @mandir@ includedir = @includedir@ oldincludedir = /usr/include - +rpmtemp = /tmp/kannel-rpm docdir = @docdir@ DESTDIR = @@ -321,9 +321,29 @@ rm -f core gw-config $(progs) $(testprogs) $(checkprogs) rm -f $(figs) $(ps) $(docs) rm -f $(benchoutputs) + rm -rf "$(rpmtemp)/kannel-cvs" + if [ -d $(rpmtemp) ]; then rmdir "$(rpmtemp)"; fi + rm -f kannel-cvs.tar kannel-cvs.tar.gz distclean: clean - rm -f Makefile gw-config.h config.cache config.log config.status config.nice .depend gwlib/gw_uuid_types.h + rm -f Makefile gw-config.h config.cache config.log config.status config.nice .depend gwlib/gw_uuid_types.h rpm/kannel-cvs.spec + +rpm: clean + @echo "Preparing to build the RPM files" + mkdir -p "$(rpmtemp)/kannel-cvs" + cp -R * "$(rpmtemp)/kannel-cvs" + tar -C "$(rpmtemp)" -c kannel-cvs -zf kannel-cvs.tar.gz + rm -rf "$(rpmtemp)/kannel-cvs" + if [ -d $(rpmtemp) ]; then rmdir "$(rpmtemp)"; fi + @echo "Building the RPM" + rpmbuild -ta kannel-cvs.tar.gz + rm -f kannel-cvs.tar.gz + @echo "**********************************************************************" + @echo "* Success!" + @echo "* Your files are located under $(shell rpm --eval '%_rpmdir')" + @echo "* The Kannel Group " + @echo "**********************************************************************" + @echo "Thank you for using Kannel." nag: utils/find-long-lines Index: configure.in =================================================================== RCS file: /home/cvs/gateway/configure.in,v retrieving revision 1.180 diff -u -r1.180 configure.in --- configure.in 6 Aug 2008 14:22:43 -0000 1.180 +++ configure.in 9 Oct 2008 20:25:48 -0000 @@ -1227,7 +1227,7 @@ dnl Final Output AC_CONFIG_SECTION([Generating output files]) -AC_OUTPUT(gwlib/gw_uuid_types.h Makefile) +AC_OUTPUT(gwlib/gw_uuid_types.h Makefile rpm/kannel-cvs.spec) dnl LICENSE notice