Группа :: Коммуникации
Пакет: gammu
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: gammu-0.94.0-alt-configure-rpm.patch
diff -Nur gammu-0.94.0.orig/cfg/autoconf/configure.in gammu-0.94.0/cfg/autoconf/configure.in
--- gammu-0.94.0.orig/cfg/autoconf/configure.in 2004-02-24 23:11:38 +0300
+++ gammu-0.94.0/cfg/autoconf/configure.in 2004-03-05 04:28:16 +0300
@@ -119,40 +119,6 @@
)
AC_SUBST(LOCALE_DIR)
-dnl Path for making RPM
-RPM_DIR="/usr/src/RPM"
-AC_ARG_WITH(rpmdir,
- [ --with-rpmdir=DIR Specifies the directory for making RPM],
- [ if test x$withval = xyes; then
- AC_MSG_WARN(Usage is: --with-rpmdir=DIR)
- else
- RPM_DIR="$withval"
- fi
- ],[
- if test -r /usr/lib/rpm/macros ; then
- get_rpm_var() {
- VALUE=$(grep -s "^%$1[[[:space:]]]" ~/.rpmmacros /usr/lib/rpm/macros | head -n 1 | awk '{print $2}')
- if test -z "$VALUE" ; then
- exit 1
- fi
-
- while echo "$VALUE" | grep -q '%' ; do
- VAR=$(echo "$VALUE" | sed 's/^[[^%]]*%{\([[^}]]*\)}.*$/\1/')
- REPL=$(get_rpm_var "$VAR")
- VALUE=$(echo "$VALUE" | sed "s@%{$VAR}@$REPL@")
- done
- echo $VALUE
- }
-
- VALUE=$(get_rpm_var _topdir)
- if test ! -z "$VALUE" ; then
- RPM_DIR="$VALUE"
- fi
- fi
- ]
-)
-AC_SUBST(RPM_DIR)
-
dnl temp directory
TEMP_DIR="/tmp"
AC_ARG_WITH(tmpdir,