From: David E. <tw...@us...> - 2002-11-30 08:39:25
|
Update of /cvsroot/synce/dccmd In directory sc8-pr-cvs1:/tmp/cvs-serv16718 Modified Files: .cvsignore bootstrap Added Files: VERSION configure.ac.in dccm.spec.in Removed Files: configure.ac dccm.spec Log Message: Set version number in bootstrap. --- NEW FILE: VERSION --- 0.5 --- NEW FILE: configure.ac.in --- dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.53) AC_INIT(src/dccm.c) dnl AC_CANONICAL_HOST dnl AC_CANONICAL_TARGET AM_INIT_AUTOMAKE(dccm, YOU_DID_NOT_RUN_THE_BOOTSTRAP_SCRIPT) AM_CONFIG_HEADER(dccm_config.h) dnl Checks for programs. AC_PROG_AWK AC_PROG_CC AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_LIBTOOL AC_PROG_MAKE_SET dnl Check for libsynce AM_PATH_LIBSYNCE dnl Checks for header files. dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_REPLACE_FUNCS(daemon) AC_CONFIG_FILES( [script/synce-sound], [chmod +x script/synce-sound] ) AC_OUTPUT([Makefile src/Makefile man/Makefile script/Makefile]) --- NEW FILE: dccm.spec.in --- %define prefix /usr %define name synce-dccm %define rel 1 Summary: SynCE: Communication application. Name: %{name} Version: YOU_DID_NOT_RUN_THE_BOOTSTRAP_SCRIPT Release: %{rel} License: MIT Group: Applications/Communications Source: %{name}-%{version}.tar.gz URL: http://synce.sourceforge.net/ Distribution: SynCE RPM packages Vendor: The SynCE Project Packager: David Eriksson <tw...@us...> #Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root Buildroot: %{_tmppath}/synce-root Requires: synce-libsynce %description DCCM is part of the SynCE project: http://synce.sourceforge.net/ This application is required to be able to communicate with a remote device. %prep %setup %build %configure --with-libsynce=$RPM_BUILD_ROOT%{prefix} #--with-libsynce=%{prefix} make %install %makeinstall %files %doc README LICENSE %{prefix}/bin/dccm %{prefix}/bin/synce-sound %{_mandir}/man1/dccm.* %{_mandir}/man1/synce-sound.* Index: .cvsignore =================================================================== RCS file: /cvsroot/synce/dccmd/.cvsignore,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- .cvsignore 14 Nov 2002 15:20:48 -0000 1.2 +++ .cvsignore 30 Nov 2002 08:39:19 -0000 1.3 @@ -6,6 +6,8 @@ config.status config.sub configure +configure.ac +dccm.spec dccm_config.h* depcomp install-sh Index: bootstrap =================================================================== RCS file: /cvsroot/synce/dccmd/bootstrap,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- bootstrap 7 Nov 2002 09:26:29 -0000 1.2 +++ bootstrap 30 Nov 2002 08:39:20 -0000 1.3 @@ -1,10 +1,48 @@ #!/bin/sh +set -e +VERSION=`cat VERSION` + +if [ -z "$VERSION" ]; then + echo "Empty version" + exit 1 +fi + +# create configure.ac with correct version number +ACFILE="configure.ac" +ACFILE_IN="$ACFILE.in" +if [ -f $ACFILE ]; then + rm $ACFILE +fi +echo -n "Creating $ACFILE..." +cat $ACFILE_IN | sed "s/\\(AM_INIT_AUTOMAKE(.*,\\).*)/\\1 $VERSION)/" > $ACFILE +if [ -s $ACFILE ]; then + echo "done." +else + exit 1 +fi + +# create .spec file with correct version number +for SPEC_IN in "*.spec.in"; do + SPEC=`basename $SPEC_IN .in` + if [ -f $SPEC ]; then + rm $SPEC + fi + echo -n "Creating $SPEC..." + cat $SPEC_IN | sed "s/^\\(Version:\\).*/\\1 $VERSION/" > $SPEC + if [ -s $SPEC ]; then + echo "done." + else + exit 1 + fi +done + rm -f config.cache -#echo 'Please ignore "warning: AC_TRY_RUN called without default to allow cross compiling"' -set -x -e -aclocal -I m4 +if [ -d "m4" ]; then + INCLUDES="-I m4" +fi +set -x +aclocal $INCLUDES autoheader libtoolize --automake automake --foreign --add-missing autoconf - --- configure.ac DELETED --- --- dccm.spec DELETED --- |