improvement of rpm generation
This commit is contained in:
		
							
								
								
									
										21
									
								
								ChangeLog
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								ChangeLog
									
									
									
									
									
								
							@@ -1,3 +1,24 @@
 | 
				
			|||||||
 | 
					2017-04-06 08:14  
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						* [r471] configure.ac:
 | 
				
			||||||
 | 
						  fixed typo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					2017-04-05 14:44  
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						* [r470] configure.ac, src/autofunctiontracelog4cxx.cxx:
 | 
				
			||||||
 | 
						  build improvements and a logging fix
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					2017-04-05 10:50  
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						* [r469] configure.ac, src/mrw/auto.hxx,
 | 
				
			||||||
 | 
						  test/mrwexclog4cxx_test.cxx, test/mrwexcstderr_test.cxx:
 | 
				
			||||||
 | 
						  stacktrace, exec amd sys/mman.h are not available in windows
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					2017-03-21 11:04  
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						* [r468] ChangeLog, resolve-rpmbuilddeps.sh:
 | 
				
			||||||
 | 
						  fixed directories with root rights in rpm build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
2017-03-19 23:44  
 | 
					2017-03-19 23:44  
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	* [r467] build-in-docker.sh:
 | 
						* [r467] build-in-docker.sh:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -51,18 +51,33 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
AC_DEFUN([AX_CXX_QT_TOOL], [
 | 
					AC_DEFUN([AX_CXX_QT_TOOL], [
 | 
				
			||||||
  PKG_PROG_PKG_CONFIG
 | 
					  PKG_PROG_PKG_CONFIG
 | 
				
			||||||
  if test -z "$HAVE_$1"; then
 | 
					  if test -z "${HAVE_$1}"; then
 | 
				
			||||||
    HAVE_$1=1
 | 
					    HAVE_$1=1
 | 
				
			||||||
    AC_MSG_CHECKING([for $2])
 | 
					    AC_MSG_CHECKING([for $2])
 | 
				
			||||||
    AC_ARG_VAR([$1], [path to Qt tool $2])
 | 
					    AC_ARG_VAR([$1], [path to Qt tool $2])
 | 
				
			||||||
    $1=${$1:-$(${PKG_CONFIG} --variable=$2_location Qt5Core)}
 | 
					    for package in Qt5Core QtCore; do
 | 
				
			||||||
    $1=${$1:-$(${PKG_CONFIG} --variable=host_bins Qt5Core)/$2-qt5}
 | 
					        if test -x "${$1}"; then
 | 
				
			||||||
    $1=${$1:-$(${PKG_CONFIG} --variable=host_bins Qt5Core)/$2}
 | 
					            break
 | 
				
			||||||
    $1=${$1:-$(${PKG_CONFIG} --variable=$2_location QtCore)}
 | 
					        fi
 | 
				
			||||||
    $1=${$1:-$(${PKG_CONFIG} --variable=host_bins QtCore)/$2}
 | 
					        tool=$(${PKG_CONFIG} --variable=$2_location $package 2> /dev/null)
 | 
				
			||||||
    $1=${$1:-$(${PKG_CONFIG} --variable=host_bins QtCore)/$2-qt4}
 | 
					        if test -x "${tool}"; then
 | 
				
			||||||
    if ! which "${$1%% *}" > /dev/null; then
 | 
					            $1="${tool}"
 | 
				
			||||||
      if which "$2-qt5" > /dev/null; then
 | 
					            break
 | 
				
			||||||
 | 
					        fi
 | 
				
			||||||
 | 
					        tool=$(${PKG_CONFIG} --variable=host_bins $package 2> /dev/null)
 | 
				
			||||||
 | 
					        if test -n "$tool"; then
 | 
				
			||||||
 | 
					            for name in $2 $2-qt5 $2-qt4; do
 | 
				
			||||||
 | 
					                if test -x "${tool}/${name}"; then
 | 
				
			||||||
 | 
					                    $1="${tool}/${name}"
 | 
				
			||||||
 | 
					                    break
 | 
				
			||||||
 | 
					                fi
 | 
				
			||||||
 | 
					            done
 | 
				
			||||||
 | 
					        fi
 | 
				
			||||||
 | 
					    done
 | 
				
			||||||
 | 
					    if ! test -x "${$1}"; then
 | 
				
			||||||
 | 
					      if which "$2" > /dev/null; then
 | 
				
			||||||
 | 
					        $1=$2
 | 
				
			||||||
 | 
					      elif which "$2-qt5" > /dev/null; then
 | 
				
			||||||
        $1=$2-qt5
 | 
					        $1=$2-qt5
 | 
				
			||||||
      elif which "$2" > /dev/null; then
 | 
					      elif which "$2" > /dev/null; then
 | 
				
			||||||
        $1=$2
 | 
					        $1=$2
 | 
				
			||||||
@@ -70,15 +85,15 @@ AC_DEFUN([AX_CXX_QT_TOOL], [
 | 
				
			|||||||
        $1=$2-qt4
 | 
					        $1=$2-qt4
 | 
				
			||||||
      else
 | 
					      else
 | 
				
			||||||
        HAVE_$1=0
 | 
					        HAVE_$1=0
 | 
				
			||||||
        $1=""
 | 
					        unset $1
 | 
				
			||||||
      fi
 | 
					      fi
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
    AC_SUBST($1)
 | 
					    AC_SUBST($1)
 | 
				
			||||||
    AM_CONDITIONAL(HAVE_$1, test $HAVE_[$1] -eq 1)
 | 
					    AM_CONDITIONAL(HAVE_$1, test $HAVE_[$1] -eq 1)
 | 
				
			||||||
    if test $HAVE_$1 -eq 1; then
 | 
					    if test $HAVE_$1 -eq 1; then
 | 
				
			||||||
      AC_MSG_RESULT([$$1])
 | 
					        AC_MSG_RESULT([$$1])
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
      AC_MSG_RESULT([not found])
 | 
					        AC_MSG_RESULT([not found])
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
])
 | 
					])
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,12 +13,12 @@ m4_define(x_least, m4_ifdef([x_least_fix], [x_least_fix],
 | 
				
			|||||||
    mrw_esyscmd_s([
 | 
					    mrw_esyscmd_s([
 | 
				
			||||||
      VCS_REVISION="ERROR-UNDEFINED-REVISION-to-be-built-in-subdirectory-of-checkout"
 | 
					      VCS_REVISION="ERROR-UNDEFINED-REVISION-to-be-built-in-subdirectory-of-checkout"
 | 
				
			||||||
      for path in . .. ../.. ../../..; do
 | 
					      for path in . .. ../.. ../../..; do
 | 
				
			||||||
        if test -d .svn; then
 | 
					        if test -d ${path}/.svn; then
 | 
				
			||||||
          svn upgrade 1>&2 > /dev/null || true
 | 
					          (cd $path; svn upgrade 1>&2 > /dev/null || true)
 | 
				
			||||||
          VCS_REVISION=$(LANG= svn info $path | sed -n 's/Last Changed Rev: //p')
 | 
					          VCS_REVISION=$(LANG= svn info $path | sed -n 's/Last Changed Rev: //p')
 | 
				
			||||||
          if test -n "${VCS_REVISION}"; then break; fi
 | 
					          if test -n "${VCS_REVISION}"; then break; fi
 | 
				
			||||||
        elif test -d .git; then
 | 
					        elif test -d ${path}/.git; then
 | 
				
			||||||
          VCS_REVISION=$(git rev-list --all --count)
 | 
					          VCS_REVISION=$(cd ${path} > /dev/null 2/dev/null; git rev-list --all --count)
 | 
				
			||||||
          if test -n "${VCS_REVISION}"; then break; fi
 | 
					          if test -n "${VCS_REVISION}"; then break; fi
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
      done
 | 
					      done
 | 
				
			||||||
@@ -26,12 +26,12 @@ m4_define(x_least, m4_ifdef([x_least_fix], [x_least_fix],
 | 
				
			|||||||
    ]),  mrw_esyscmd_s([
 | 
					    ]),  mrw_esyscmd_s([
 | 
				
			||||||
      VCS_REVISION="ERROR-UNDEFINED-REVISION-to-be-built-in-subdirectory-of-checkout"
 | 
					      VCS_REVISION="ERROR-UNDEFINED-REVISION-to-be-built-in-subdirectory-of-checkout"
 | 
				
			||||||
      for path in . .. ../.. ../../..; do
 | 
					      for path in . .. ../.. ../../..; do
 | 
				
			||||||
        if test -d .svn; then
 | 
					        if test -d ${path}/.svn; then
 | 
				
			||||||
          svn upgrade 1>&2 > /dev/null || true
 | 
					          (cd $path; svn upgrade 1>&2 > /dev/null || true)
 | 
				
			||||||
          VCS_REVISION=$(LANG= svn info $path | sed -n 's/Last Changed Rev: //p')
 | 
					          VCS_REVISION=$(LANG= svn info $path | sed -n 's/Last Changed Rev: //p')
 | 
				
			||||||
          if test -n "${VCS_REVISION}"; then break; fi
 | 
					          if test -n "${VCS_REVISION}"; then break; fi
 | 
				
			||||||
        elif test -d .git; then
 | 
					        elif test -d ${path}/.git; then
 | 
				
			||||||
          VCS_REVISION=$(git rev-list --all --count)
 | 
					          VCS_REVISION=$(cd ${path} > /dev/null 2/dev/null; git rev-list --all --count)
 | 
				
			||||||
          if test -n "${VCS_REVISION}"; then break; fi
 | 
					          if test -n "${VCS_REVISION}"; then break; fi
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
      done
 | 
					      done
 | 
				
			||||||
@@ -44,12 +44,12 @@ m4_define(x_least, m4_ifdef([x_least_fix], [x_least_fix],
 | 
				
			|||||||
m4_define(x_minor_diff, m4_ifdef([x_least_fix], 0, mrw_esyscmd_s([
 | 
					m4_define(x_minor_diff, m4_ifdef([x_least_fix], 0, mrw_esyscmd_s([
 | 
				
			||||||
  VCS_REVISION="ERROR-UNDEFINED-REVISION-to-be-built-in-subdirectory-of-checkout"
 | 
					  VCS_REVISION="ERROR-UNDEFINED-REVISION-to-be-built-in-subdirectory-of-checkout"
 | 
				
			||||||
  for path in . .. ../.. ../../..; do
 | 
					  for path in . .. ../.. ../../..; do
 | 
				
			||||||
    if test -d .svn; then
 | 
					    if test -d ${path}/.svn; then
 | 
				
			||||||
      svn upgrade 1>&2 > /dev/null || true
 | 
					      (cd $path; svn upgrade 1>&2 > /dev/null || true)
 | 
				
			||||||
      VCS_REVISION=$(LANG= svn info $path | sed -n 's/Last Changed Rev: //p')
 | 
					      VCS_REVISION=$(LANG= svn info $path | sed -n 's/Last Changed Rev: //p')
 | 
				
			||||||
      if test -n "${VCS_REVISION}"; then break; fi
 | 
					      if test -n "${VCS_REVISION}"; then break; fi
 | 
				
			||||||
    elif test -d .git; then
 | 
					    elif test -d ${path}/.git; then
 | 
				
			||||||
      VCS_REVISION=$(git rev-list --all --count)
 | 
					      VCS_REVISION=$(cd ${path} > /dev/null 2/dev/null; git rev-list --all --count)
 | 
				
			||||||
      if test -n "${VCS_REVISION}"; then break; fi
 | 
					      if test -n "${VCS_REVISION}"; then break; fi
 | 
				
			||||||
    fi;
 | 
					    fi;
 | 
				
			||||||
  done
 | 
					  done
 | 
				
			||||||
@@ -594,7 +594,7 @@ AC_DEFUN([AX_USE_DOXYGEN], [
 | 
				
			|||||||
  AC_CHECK_PROG(have_doxygen, doxygen, yes, no)
 | 
					  AC_CHECK_PROG(have_doxygen, doxygen, yes, no)
 | 
				
			||||||
  AC_CHECK_PROG(have_dot, dot, yes, no)
 | 
					  AC_CHECK_PROG(have_dot, dot, yes, no)
 | 
				
			||||||
  AC_CHECK_PROG(have_mscgen, mscgen, yes, no)
 | 
					  AC_CHECK_PROG(have_mscgen, mscgen, yes, no)
 | 
				
			||||||
  AM_CONDITIONAL(NEED_PLANTUML, test "$have_doxygen" = "yes" -a "1.8.11" != $((echo "1.8.11"; doxygen -v) | sort -V | head -1))
 | 
					  AM_CONDITIONAL(NEED_PLANTUML, test "$have_doxygen" = "yes" -a "1.8.11" != $((echo "1.8.11"; doxygen -v 2>/dev/null) | sort -V | head -1))
 | 
				
			||||||
  PDF_DOC=${PACKAGE_NAME}-${PACKAGE_VERSION}.pdf
 | 
					  PDF_DOC=${PACKAGE_NAME}-${PACKAGE_VERSION}.pdf
 | 
				
			||||||
  AC_SUBST(PDF_DOC)
 | 
					  AC_SUBST(PDF_DOC)
 | 
				
			||||||
  if test "$have_doxygen" = "no"; then
 | 
					  if test "$have_doxygen" = "no"; then
 | 
				
			||||||
@@ -714,6 +714,15 @@ EOF
 | 
				
			|||||||
#     $4 = alternative module names (space separated, optional)
 | 
					#     $4 = alternative module names (space separated, optional)
 | 
				
			||||||
#     $5 = optional flags:
 | 
					#     $5 = optional flags:
 | 
				
			||||||
#            manualflags if CXXFLAGS, CPPFLAGS, LIBS should remain unchanged
 | 
					#            manualflags if CXXFLAGS, CPPFLAGS, LIBS should remain unchanged
 | 
				
			||||||
 | 
					#     $6 = optional parameters, allowed are (evaluated in this order):
 | 
				
			||||||
 | 
					#           - RPM_DIST_PKG=<name>
 | 
				
			||||||
 | 
					#             special name for the RPM package
 | 
				
			||||||
 | 
					#           - DEB_DIST_PKG=<name>
 | 
				
			||||||
 | 
					#             special name for the debian package
 | 
				
			||||||
 | 
					#           - DIST_PKG=<name>
 | 
				
			||||||
 | 
					#             if the name of the package is different
 | 
				
			||||||
 | 
					#           - DEV_DIST_PKG=<name>
 | 
				
			||||||
 | 
					#             if the name of the development package is different
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# uses PKG_CHECK_MODULES to test for a module
 | 
					# uses PKG_CHECK_MODULES to test for a module
 | 
				
			||||||
# then, if given, looks for the header file
 | 
					# then, if given, looks for the header file
 | 
				
			||||||
@@ -723,6 +732,11 @@ EOF
 | 
				
			|||||||
AC_DEFUN([AX_PKG_REQUIRE], [
 | 
					AC_DEFUN([AX_PKG_REQUIRE], [
 | 
				
			||||||
  PKG_PROG_PKG_CONFIG
 | 
					  PKG_PROG_PKG_CONFIG
 | 
				
			||||||
  optional_flags="$5"
 | 
					  optional_flags="$5"
 | 
				
			||||||
 | 
					  $6
 | 
				
			||||||
 | 
					  if test -n "$DEV_DIST_PKG"; then
 | 
				
			||||||
 | 
					    DEV_DEB_DIST_PKG=${DEV_DIST_PKG}-dev
 | 
				
			||||||
 | 
					    DEV_RPM_DIST_PKG=${DEV_DIST_PKG}-devel
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
  $1_found=no
 | 
					  $1_found=no
 | 
				
			||||||
  secondpar="m4_default([$2], [$1])"
 | 
					  secondpar="m4_default([$2], [$1])"
 | 
				
			||||||
  PKG_CHECK_MODULES([$1], [m4_default([$2], [$1])], [
 | 
					  PKG_CHECK_MODULES([$1], [m4_default([$2], [$1])], [
 | 
				
			||||||
@@ -802,120 +816,10 @@ AC_DEFUN([AX_PKG_REQUIRE], [
 | 
				
			|||||||
      AC_MSG_ERROR([Feature $1 not found please install module $secondpar])
 | 
					      AC_MSG_ERROR([Feature $1 not found please install module $secondpar])
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
  AX_DEB_DEPEND([${$1_found}])
 | 
					  AX_DEB_BUILD_DEPEND([${DEV_DEB_DIST_PKG:-${DEB_DIST_PKG:-${DIST_PKG:-${$1_found}-dev}}}])
 | 
				
			||||||
  AX_RPM_DEPEND([${$1_found}])
 | 
					  AX_RPM_BUILD_DEPEND([${DEV_RPM_DIST_PKG:-${RPM_DIST_PKG:-${DIST_PKG:-${$1_found}-devel}}}])
 | 
				
			||||||
  [$1]_CPPFLAGS="${$1_CFLAGS}"
 | 
					  AX_DEB_DEPEND([${DEB_DIST_PKG:-${DIST_PKG:-${$1_found}}}])
 | 
				
			||||||
  [$1]_CXXFLAGS="${$1_CFLAGS}"
 | 
					  AX_RPM_DEPEND([${RPM_DIST_PKG:-${DIST_PKG:-${$1_found}}}])
 | 
				
			||||||
  AC_SUBST([$1]_CPPFLAGS)
 | 
					 | 
				
			||||||
  AC_SUBST([$1]_CXXFLAGS)
 | 
					 | 
				
			||||||
  if test "${optional_flags/manualflags/}" = "${optional_flags}"; then
 | 
					 | 
				
			||||||
    CPPFLAGS+=" ${$1_CPPFLAGS}"
 | 
					 | 
				
			||||||
    CXXFLAGS+=" ${$1_CXXFLAGS}"
 | 
					 | 
				
			||||||
    LIBS+=" ${$1_LIBS}"
 | 
					 | 
				
			||||||
    AC_MSG_NOTICE([Adding flags for $1])
 | 
					 | 
				
			||||||
  else
 | 
					 | 
				
			||||||
    AC_MSG_NOTICE([To enable $1, add $1_CPPFLAGS, $1_CXXFLAGS and $1_LIBS])
 | 
					 | 
				
			||||||
  fi
 | 
					 | 
				
			||||||
])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# require a specific development package, with fallback: test for a header
 | 
					 | 
				
			||||||
#  - parameter:
 | 
					 | 
				
			||||||
#     $1 = unique id (no special characters)
 | 
					 | 
				
			||||||
#     $2 = module name (optional, if different from id)
 | 
					 | 
				
			||||||
#     $3 = a header file to find (optional)
 | 
					 | 
				
			||||||
#     $4 = alternative module names (space separated, optional)
 | 
					 | 
				
			||||||
#     $5 = optional flags:
 | 
					 | 
				
			||||||
#            manualflags if CXXFLAGS, CPPFLAGS, LIBS should remain unchanged
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
# uses PKG_CHECK_MODULES to test for a module
 | 
					 | 
				
			||||||
# then, if given, looks for the header file
 | 
					 | 
				
			||||||
# if header file is not found, searches in alternative modules
 | 
					 | 
				
			||||||
# sets all flags, so that the module can be used everywhere
 | 
					 | 
				
			||||||
# fails if not found
 | 
					 | 
				
			||||||
AC_DEFUN([AX_PKG_REQUIRE_DEV], [
 | 
					 | 
				
			||||||
  PKG_PROG_PKG_CONFIG
 | 
					 | 
				
			||||||
  optional_flags="$5"
 | 
					 | 
				
			||||||
  $1_found=no
 | 
					 | 
				
			||||||
  secondpar="m4_default([$2], [$1])"
 | 
					 | 
				
			||||||
  PKG_CHECK_MODULES([$1], [m4_default([$2], [$1])], [
 | 
					 | 
				
			||||||
    $1_found=$secondpar
 | 
					 | 
				
			||||||
    PKG_REQUIREMENTS+=" $secondpar"
 | 
					 | 
				
			||||||
  ], [
 | 
					 | 
				
			||||||
    if test -n "$4"; then
 | 
					 | 
				
			||||||
      AC_MSG_WARN([Recommended package $secondpar for feature $1 not installed, trying $4])
 | 
					 | 
				
			||||||
      for pkg in $4; do
 | 
					 | 
				
			||||||
        PKG_CHECK_MODULES([$1], [$pkg], [
 | 
					 | 
				
			||||||
          PKG_REQUIREMENTS+=" $pkg"
 | 
					 | 
				
			||||||
          $1_found=$pkg
 | 
					 | 
				
			||||||
          break;
 | 
					 | 
				
			||||||
        ], [
 | 
					 | 
				
			||||||
          AC_MSG_WARN([Recommended package $pkg for feature $1 not installed])
 | 
					 | 
				
			||||||
        ])
 | 
					 | 
				
			||||||
      done
 | 
					 | 
				
			||||||
    fi
 | 
					 | 
				
			||||||
  ])
 | 
					 | 
				
			||||||
  AC_SUBST(CPPFLAGS)
 | 
					 | 
				
			||||||
  AC_SUBST(CXXFLAGS)
 | 
					 | 
				
			||||||
  AC_SUBST(PKG_REQUIREMENTS)
 | 
					 | 
				
			||||||
  if test -n "$3"; then
 | 
					 | 
				
			||||||
    if test "${$1_found}" = "no"; then
 | 
					 | 
				
			||||||
      tmp_package="yes"
 | 
					 | 
				
			||||||
    else
 | 
					 | 
				
			||||||
      tmp_package=${$1_found}
 | 
					 | 
				
			||||||
    fi
 | 
					 | 
				
			||||||
    $1_found=no
 | 
					 | 
				
			||||||
    old_CPPFLAGS=${CPPFLAGS}
 | 
					 | 
				
			||||||
    CPPFLAGS=" ${$1_CFLAGS} ${CPPFLAGS}"
 | 
					 | 
				
			||||||
    AC_CHECK_HEADER([$3], [
 | 
					 | 
				
			||||||
      $1_found=${tmp_package}
 | 
					 | 
				
			||||||
    ], [
 | 
					 | 
				
			||||||
      for x in ${$1_CFLAGS}; do
 | 
					 | 
				
			||||||
        AC_MSG_NOTICE([search for $3 in ${x[#]-I}])
 | 
					 | 
				
			||||||
        for f in $(find ${x[#]-I} -name "$3" 2> /dev/null); do
 | 
					 | 
				
			||||||
          if test -f "$f"; then
 | 
					 | 
				
			||||||
            $1_found=${tmp_package}
 | 
					 | 
				
			||||||
            $1_CFLAGS+=" -I${f%/*}"
 | 
					 | 
				
			||||||
            AC_MSG_NOTICE([added path ${f%/*}])
 | 
					 | 
				
			||||||
            break;
 | 
					 | 
				
			||||||
          fi
 | 
					 | 
				
			||||||
        done
 | 
					 | 
				
			||||||
        if test "${$1_found}" != "no"; then
 | 
					 | 
				
			||||||
          break;
 | 
					 | 
				
			||||||
        fi
 | 
					 | 
				
			||||||
      done
 | 
					 | 
				
			||||||
      if test "${$1_found}" = "no"; then
 | 
					 | 
				
			||||||
        tmp_includedir=$(${PKG_CONFIG} --variable=includedir $tmp_package)
 | 
					 | 
				
			||||||
        for x in ${tmp_includedir}; do
 | 
					 | 
				
			||||||
          AC_MSG_NOTICE([search for $3 in $x])
 | 
					 | 
				
			||||||
          for f in $(find ${x} -name "$3" 2> /dev/null); do
 | 
					 | 
				
			||||||
            if test -f "$f"; then
 | 
					 | 
				
			||||||
              $1_found=${tmp_package}
 | 
					 | 
				
			||||||
              $1_CFLAGS+=" -I${f%/*}"
 | 
					 | 
				
			||||||
              AC_MSG_NOTICE([added path ${f%/*}])
 | 
					 | 
				
			||||||
              break;
 | 
					 | 
				
			||||||
            fi
 | 
					 | 
				
			||||||
          done
 | 
					 | 
				
			||||||
          if test "${$1_found}" != "no"; then
 | 
					 | 
				
			||||||
            break;
 | 
					 | 
				
			||||||
          fi
 | 
					 | 
				
			||||||
        done
 | 
					 | 
				
			||||||
      fi
 | 
					 | 
				
			||||||
    ])
 | 
					 | 
				
			||||||
    CPPFLAGS=${old_CPPFLAGS}
 | 
					 | 
				
			||||||
  fi
 | 
					 | 
				
			||||||
  if test "${$1_found}" = "no"; then
 | 
					 | 
				
			||||||
    if test -n "$3"; then
 | 
					 | 
				
			||||||
      if test -n "$4"; then
 | 
					 | 
				
			||||||
        AC_MSG_ERROR([Feature $1 not found, need header $3 in modules $secondpar or $4])
 | 
					 | 
				
			||||||
      else
 | 
					 | 
				
			||||||
        AC_MSG_ERROR([Feature $1 not found, need header $3 in module $secondpar])
 | 
					 | 
				
			||||||
      fi
 | 
					 | 
				
			||||||
    else
 | 
					 | 
				
			||||||
      AC_MSG_ERROR([Feature $1 not found please install module $secondpar])
 | 
					 | 
				
			||||||
    fi
 | 
					 | 
				
			||||||
  fi
 | 
					 | 
				
			||||||
  AX_DEB_BUILD_DEPEND([${$1_found}-dev])
 | 
					 | 
				
			||||||
  AX_RPM_BUILD_DEPEND([${$1_found}-devel])
 | 
					 | 
				
			||||||
  [$1]_CPPFLAGS="${$1_CFLAGS}"
 | 
					  [$1]_CPPFLAGS="${$1_CFLAGS}"
 | 
				
			||||||
  [$1]_CXXFLAGS="${$1_CFLAGS}"
 | 
					  [$1]_CXXFLAGS="${$1_CFLAGS}"
 | 
				
			||||||
  AC_SUBST([$1]_CPPFLAGS)
 | 
					  AC_SUBST([$1]_CPPFLAGS)
 | 
				
			||||||
@@ -936,12 +840,26 @@ AC_DEFUN([AX_PKG_REQUIRE_DEV], [
 | 
				
			|||||||
#     $2 = module name (optional, if different from id)
 | 
					#     $2 = module name (optional, if different from id)
 | 
				
			||||||
#     $3 = optional flags:
 | 
					#     $3 = optional flags:
 | 
				
			||||||
#          manualflags if CXXFLAGS, CPPFLAGS, LIBS should remain unchanged
 | 
					#          manualflags if CXXFLAGS, CPPFLAGS, LIBS should remain unchanged
 | 
				
			||||||
 | 
					#     $4 = optional parameters, allowed are (evaluated in this order):
 | 
				
			||||||
 | 
					#           - RPM_DIST_PKG=<name>
 | 
				
			||||||
 | 
					#             special name for the RPM package
 | 
				
			||||||
 | 
					#           - DEB_DIST_PKG=<name>
 | 
				
			||||||
 | 
					#             special name for the debian package
 | 
				
			||||||
 | 
					#           - DIST_PKG=<name>
 | 
				
			||||||
 | 
					#             if the name of the package is different
 | 
				
			||||||
 | 
					#           - DEV_DIST_PKG=<name>
 | 
				
			||||||
 | 
					#             if the name of the development package is different
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# uses PKG_CHECK_MODULES to test for a module
 | 
					# uses PKG_CHECK_MODULES to test for a module
 | 
				
			||||||
# sets automake conditional HAVE_$1 to 0 (not found) or 1 (found)
 | 
					# sets automake conditional HAVE_$1 to 0 (not found) or 1 (found)
 | 
				
			||||||
# sets all flags, so that the module can be used everywhere
 | 
					# sets all flags, so that the module can be used everywhere
 | 
				
			||||||
AC_DEFUN([AX_PKG_CHECK], [
 | 
					AC_DEFUN([AX_PKG_CHECK], [
 | 
				
			||||||
  optional_flags="$3"
 | 
					  optional_flags="$3"
 | 
				
			||||||
 | 
					  $4
 | 
				
			||||||
 | 
					  if test -n "$DEV_DIST_PKG"; then
 | 
				
			||||||
 | 
					    DEV_DEB_DIST_PKG=${DEV_DIST_PKG}-dev
 | 
				
			||||||
 | 
					    DEV_RPM_DIST_PKG=${DEV_DIST_PKG}-devel
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
  PKG_PROG_PKG_CONFIG
 | 
					  PKG_PROG_PKG_CONFIG
 | 
				
			||||||
  PKG_CHECK_MODULES([$1], [m4_default([$2], [$1])], [
 | 
					  PKG_CHECK_MODULES([$1], [m4_default([$2], [$1])], [
 | 
				
			||||||
    HAVE_$1=1
 | 
					    HAVE_$1=1
 | 
				
			||||||
@@ -965,52 +883,10 @@ AC_DEFUN([AX_PKG_CHECK], [
 | 
				
			|||||||
  ], [
 | 
					  ], [
 | 
				
			||||||
    HAVE_$1=0
 | 
					    HAVE_$1=0
 | 
				
			||||||
  ])
 | 
					  ])
 | 
				
			||||||
  AX_DEB_BUILD_DEPEND(m4_default([$2], [$1]))
 | 
					  AX_DEB_BUILD_DEPEND([${DEV_DEB_DIST_PKG:-${DEB_DIST_PKG:-${DIST_PKG:-m4_default([$2], [$1])-dev}}}])
 | 
				
			||||||
  AX_RPM_BUILD_DEPEND(m4_default([$2], [$1]))
 | 
					  AX_RPM_BUILD_DEPEND([${DEV_RPM_DIST_PKG:-${RPM_DIST_PKG:-${DIST_PKG:-m4_default([$2], [$1])-devel}}}])
 | 
				
			||||||
  AM_CONDITIONAL(HAVE_$1, test $HAVE_[$1] -eq 1)
 | 
					  AX_DEB_DEPEND([${DEB_DIST_PKG:-${DIST_PKG:-m4_default([$2], [$1])}}])
 | 
				
			||||||
  AC_SUBST(HAVE_$1)
 | 
					  AX_RPM_DEPEND([${RPM_DIST_PKG:-${DIST_PKG:-m4_default([$2], [$1])}}])
 | 
				
			||||||
  AC_SUBST(CPPFLAGS)
 | 
					 | 
				
			||||||
  AC_SUBST(CXXFLAGS)
 | 
					 | 
				
			||||||
  AC_SUBST(PKG_REQUIREMENTS)
 | 
					 | 
				
			||||||
])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# check if a specific development package exists
 | 
					 | 
				
			||||||
#  - parameter:
 | 
					 | 
				
			||||||
#     $1 = unique id (no special characters)
 | 
					 | 
				
			||||||
#     $2 = module name (optional, if different from id)
 | 
					 | 
				
			||||||
#     $3 = optional flags:
 | 
					 | 
				
			||||||
#          manualflags if CXXFLAGS, CPPFLAGS, LIBS should remain unchanged
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
# uses PKG_CHECK_MODULES to test for a module
 | 
					 | 
				
			||||||
# sets automake conditional HAVE_$1 to 0 (not found) or 1 (found)
 | 
					 | 
				
			||||||
# sets all flags, so that the module can be used everywhere
 | 
					 | 
				
			||||||
AC_DEFUN([AX_PKG_CHECK_DEV], [
 | 
					 | 
				
			||||||
  optional_flags="$3"
 | 
					 | 
				
			||||||
  PKG_PROG_PKG_CONFIG
 | 
					 | 
				
			||||||
  PKG_CHECK_MODULES([$1], [m4_default([$2], [$1])], [
 | 
					 | 
				
			||||||
    HAVE_$1=1
 | 
					 | 
				
			||||||
    [$1]_CPPFLAGS="${$1_CFLAGS}"
 | 
					 | 
				
			||||||
    [$1]_CXXFLAGS="${$1_CFLAGS}"
 | 
					 | 
				
			||||||
    AC_SUBST([$1]_CPPFLAGS)
 | 
					 | 
				
			||||||
    AC_SUBST([$1]_CXXFLAGS)
 | 
					 | 
				
			||||||
    if test "${optional_flags/manualflags/}" = "${optional_flags}"; then
 | 
					 | 
				
			||||||
      CPPFLAGS+=" ${$1_CPPFLAGS}"
 | 
					 | 
				
			||||||
      CXXFLAGS+=" ${$1_CXXFLAGS}"
 | 
					 | 
				
			||||||
      LIBS+=" ${$1_LIBS}"
 | 
					 | 
				
			||||||
      AC_MSG_NOTICE([Adding flags for $1])
 | 
					 | 
				
			||||||
    else
 | 
					 | 
				
			||||||
      AC_MSG_NOTICE([To enable $1, add $1_CPPFLAGS, $1_CXXFLAGS and $1_LIBS])
 | 
					 | 
				
			||||||
    fi
 | 
					 | 
				
			||||||
    if test -z "$PKG_REQUIREMENTS"; then
 | 
					 | 
				
			||||||
      PKG_REQUIREMENTS="m4_default([$2], [$1])"
 | 
					 | 
				
			||||||
    else
 | 
					 | 
				
			||||||
      PKG_REQUIREMENTS="${PKG_REQUIREMENTS}, m4_default([$2], [$1])"
 | 
					 | 
				
			||||||
    fi
 | 
					 | 
				
			||||||
  ], [
 | 
					 | 
				
			||||||
    HAVE_$1=0
 | 
					 | 
				
			||||||
  ])
 | 
					 | 
				
			||||||
  AX_DEB_BUILD_DEPEND(m4_default([$2], [$1])-dev)
 | 
					 | 
				
			||||||
  AX_RPM_BUILD_DEPEND(m4_default([$2], [$1])-devel)
 | 
					 | 
				
			||||||
  AM_CONDITIONAL(HAVE_$1, test $HAVE_[$1] -eq 1)
 | 
					  AM_CONDITIONAL(HAVE_$1, test $HAVE_[$1] -eq 1)
 | 
				
			||||||
  AC_SUBST(HAVE_$1)
 | 
					  AC_SUBST(HAVE_$1)
 | 
				
			||||||
  AC_SUBST(CPPFLAGS)
 | 
					  AC_SUBST(CPPFLAGS)
 | 
				
			||||||
@@ -1278,8 +1154,8 @@ AC_DEFUN([AX_ALL_BUILD_DEPEND], [
 | 
				
			|||||||
#     $1 = package name
 | 
					#     $1 = package name
 | 
				
			||||||
AC_DEFUN([AX_ALL_BUILD_DEPEND_DEV], [
 | 
					AC_DEFUN([AX_ALL_BUILD_DEPEND_DEV], [
 | 
				
			||||||
  pkg="$1"
 | 
					  pkg="$1"
 | 
				
			||||||
  DEB_BUILD_DEPEND="${DEB_BUILD_DEPEND}, ${pkg}-dev"
 | 
					  DEB_BUILD_DEPEND="${DEB_BUILD_DEPEND}, ${pkg// /-dev}-dev"
 | 
				
			||||||
  RPM_BUILD_DEPEND="${RPM_BUILD_DEPEND}, ${pkg}-devel"
 | 
					  RPM_BUILD_DEPEND="${RPM_BUILD_DEPEND}, ${pkg// /-devel}-devel"
 | 
				
			||||||
])
 | 
					])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# require package in .spec.in append @ALL_DEPEND@ to Depends
 | 
					# require package in .spec.in append @ALL_DEPEND@ to Depends
 | 
				
			||||||
@@ -1295,6 +1171,7 @@ AC_DEFUN([AX_ALL_DEPEND], [
 | 
				
			|||||||
  fi
 | 
					  fi
 | 
				
			||||||
])
 | 
					])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# finish configuration - to be called instead of AC_OUTPUT
 | 
				
			||||||
AC_DEFUN([AX_OUTPUT], [
 | 
					AC_DEFUN([AX_OUTPUT], [
 | 
				
			||||||
  AX_DEB_RESOLVE
 | 
					  AX_DEB_RESOLVE
 | 
				
			||||||
  AX_RPM_RESOLVE
 | 
					  AX_RPM_RESOLVE
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										149
									
								
								bootstrap.sh
									
									
									
									
									
								
							
							
						
						
									
										149
									
								
								bootstrap.sh
									
									
									
									
									
								
							@@ -303,17 +303,22 @@ done
 | 
				
			|||||||
echo -en "\e[1m-> checking:\e[0m for version control system ..."
 | 
					echo -en "\e[1m-> checking:\e[0m for version control system ..."
 | 
				
			||||||
VCS=""
 | 
					VCS=""
 | 
				
			||||||
VCSDEPENDS=""
 | 
					VCSDEPENDS=""
 | 
				
			||||||
if test -d .svn; then
 | 
					for path in . .. ../.. ../../..; do
 | 
				
			||||||
    VCS="svn"
 | 
					    if test -d ${path}/.svn; then
 | 
				
			||||||
    VCSDEPENDS_DEB="svn2cl, subversion, subversion-tools,"
 | 
					        VCS="svn"
 | 
				
			||||||
    VCSDEPENDS_RPM="subversion,"
 | 
					        VCSDEPENDS_DEB="svn2cl, subversion, subversion-tools,"
 | 
				
			||||||
    echo -e " \e[32msuccess\e[0m detected ${VCS}"
 | 
					        VCSDEPENDS_RPM="subversion, "
 | 
				
			||||||
elif test -d .git; then
 | 
					        echo -e " \e[32msuccess\e[0m detected ${VCS}"
 | 
				
			||||||
    VCS="git"
 | 
					        break
 | 
				
			||||||
    VCSDEPENDS_DEB="git2cl, git,"
 | 
					    elif test -d ${path}/.git; then
 | 
				
			||||||
    VCSDEPENDS_RPM="git,"
 | 
					        VCS="git"
 | 
				
			||||||
    echo -e " \e[32msuccess\e[0m detected ${VCS}"
 | 
					        VCSDEPENDS_DEB="git2cl, git,"
 | 
				
			||||||
else
 | 
					        VCSDEPENDS_RPM="git, "
 | 
				
			||||||
 | 
					        echo -e " \e[32msuccess\e[0m detected ${VCS}"
 | 
				
			||||||
 | 
					        break
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
 | 
					done
 | 
				
			||||||
 | 
					if test -z "$VCS"; then
 | 
				
			||||||
    echo -e " \e[33mignored\e[0m"
 | 
					    echo -e " \e[33mignored\e[0m"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -634,7 +639,7 @@ LANGUAGE_FILE_BASE = ${PACKAGE_NAME}
 | 
				
			|||||||
QT_PLUGINS = iconengines imageformats platforms
 | 
					QT_PLUGINS = iconengines imageformats platforms
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#### enable if you deliver a KDE/Gnome desktop file
 | 
					#### enable if you deliver a KDE/Gnome desktop file
 | 
				
			||||||
#applicationsdir = ${datarootdir}/applications
 | 
					#applicationsdir = \${datarootdir}/applications
 | 
				
			||||||
#dist_applications_DATA = ${PACKAGE_NAME}.desktop
 | 
					#dist_applications_DATA = ${PACKAGE_NAME}.desktop
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#### enable (ev. instead of bin_PROGRAMS) if you build a library
 | 
					#### enable (ev. instead of bin_PROGRAMS) if you build a library
 | 
				
			||||||
@@ -671,25 +676,26 @@ ${PACKAGE_NAME//-/_}_TR_FILES = main.cxx version.cxx
 | 
				
			|||||||
${PACKAGE_NAME//-/_}_SOURCES = \${${PACKAGE_NAME//-/_}_TR_FILES} \${BUILT_SOURCES}
 | 
					${PACKAGE_NAME//-/_}_SOURCES = \${${PACKAGE_NAME//-/_}_TR_FILES} \${BUILT_SOURCES}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## automatic assembly, no need to change
 | 
					## automatic assembly, no need to change
 | 
				
			||||||
BUILT_SOURCES = \${${PACKAGE_NAME//-/_}_MOCFILES} \
 | 
					BUILT_SOURCES = \${${PACKAGE_NAME//-/_}_MOCFILES} \\
 | 
				
			||||||
                \${${PACKAGE_NAME//-/_}_UIFILES} \
 | 
					                \${${PACKAGE_NAME//-/_}_UIFILES} \\
 | 
				
			||||||
                \${${PACKAGE_NAME//-/_}_TRANSLATIONS} \
 | 
					                \${${PACKAGE_NAME//-/_}_TRANSLATIONS} \\
 | 
				
			||||||
                \${${PACKAGE_NAME//-/_}_RESOURCES}
 | 
					                \${${PACKAGE_NAME//-/_}_RESOURCES}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## automatic assembly, no need to change
 | 
					## automatic assembly, no need to change
 | 
				
			||||||
EXTRA_DIST_TR = \${${PACKAGE_NAME//-/_}_MOCFILES:moc_%.cxx=%.hxx} \
 | 
					EXTRA_DIST_TR = \${${PACKAGE_NAME//-/_}_MOCFILES:moc_%.cxx=%.hxx} \\
 | 
				
			||||||
                \${${PACKAGE_NAME//-/_}_UIFILES:ui_%.hxx=%.ui}
 | 
					                \${${PACKAGE_NAME//-/_}_UIFILES:ui_%.hxx=%.ui}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## automatic assembly, no need to change
 | 
					## automatic assembly, no need to change
 | 
				
			||||||
## except: adapt the pre-delivered qt_%.qm list (language files you copy from qt
 | 
					## except: adapt the pre-delivered qt_%.qm list (language files you copy from qt
 | 
				
			||||||
EXTRA_DIST = \${EXTRA_DIST_TR} \
 | 
					EXTRA_DIST = \${EXTRA_DIST_TR} \\
 | 
				
			||||||
             \${${PACKAGE_NAME//-/_}_RESOURCES:qrc_%.cxx:%.qrc} \
 | 
					             \${${PACKAGE_NAME//-/_}_RESOURCES:qrc_%.cxx=%.qrc} \\
 | 
				
			||||||
             \${${PACKAGE_NAME//-/_}_TRANSLATIONS:%.qm=%.ts} \
 | 
					             \${${PACKAGE_NAME//-/_}_TRANSLATIONS:%.qm=%.ts} \\
 | 
				
			||||||
             qt_de.qm qt_fr.qm
 | 
					             qt_de.qm qt_fr.qm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## automatic assembly, no need to change
 | 
					## automatic assembly, no need to change
 | 
				
			||||||
LANGUAGE_FILES = \${EXTRA_DIST_TR} \${${PACKAGE_NAME//-/_}_TR_FILES}
 | 
					LANGUAGE_FILES = \${EXTRA_DIST_TR} \${${PACKAGE_NAME//-/_}_TR_FILES}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CLEANFILES = \${${PACKAGE_NAME//-/_}_RESOURCES}
 | 
				
			||||||
MAINTAINERCLEANFILES = makefile.in
 | 
					MAINTAINERCLEANFILES = makefile.in
 | 
				
			||||||
EOF
 | 
					EOF
 | 
				
			||||||
    to --condition AX_USE_CXX src/main.cxx <<EOF
 | 
					    to --condition AX_USE_CXX src/main.cxx <<EOF
 | 
				
			||||||
@@ -1607,62 +1613,39 @@ fi)
 | 
				
			|||||||
$(if testtag AX_RPM_DEPEND; then echo "Requires: @RPM_DEPEND@"; fi)
 | 
					$(if testtag AX_RPM_DEPEND; then echo "Requires: @RPM_DEPEND@"; fi)
 | 
				
			||||||
Source0: %{name}-%{version}.tar.gz
 | 
					Source0: %{name}-%{version}.tar.gz
 | 
				
			||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 | 
					BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 | 
				
			||||||
BuildRequires: gnupg, expect, ${VCSDEPENDS_RPM} make, automake, autoconf, rpm-build$(
 | 
					BuildRequires: which, pkgconfig, gnupg, expect, ${VCSDEPENDS_RPM}make, automake, autoconf, rpm-build$(
 | 
				
			||||||
    if testtag AX_USE_CXX; then
 | 
					    if testtag AX_USE_CXX; then
 | 
				
			||||||
      echo -n ", binutils-devel, gcc-c++"
 | 
					      echo -n ", binutils-devel, gcc-c++"
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
    if testtag AX_USE_LIBTOOL; then
 | 
					    if testtag AX_USE_LIBTOOL; then
 | 
				
			||||||
      echo -n ", libtool";
 | 
					      echo -n ", libtool, libtool-ltdl-devel"
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
 | 
					    if testtag AX_USE_CPPUNIT; then
 | 
				
			||||||
 | 
					      echo -n ", cppunit-devel"
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
    if testtag AX_USE_DOXYGEN; then
 | 
					    if testtag AX_USE_DOXYGEN; then
 | 
				
			||||||
      echo -n ", doxygen, java-openjdk";
 | 
					      echo -n ", doxygen, graphviz, java-openjdk";
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
    if testtag AX_USE_PERLDOC; then
 | 
					    if testtag AX_USE_PERLDOC; then
 | 
				
			||||||
      echo -n ", libpod-tree-perl";
 | 
					      echo -n ", libpod-tree-perl";
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
 | 
					    if testtag AX_REQUIRE_QT || testtag AX_CHECK_QT AX_REQUIRE_QT; then
 | 
				
			||||||
 | 
					      echo -n ", qt-devel, libqt5-qtbase-devel, libqt5-qttools, libQt5WebKit5-devel";
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
)  @RPM_BUILD_DEPEND@ @RPM_DEPEND_IFEXISTS@
 | 
					)  @RPM_BUILD_DEPEND@ @RPM_DEPEND_IFEXISTS@
 | 
				
			||||||
%if 0%{?fedora} != 20
 | 
					
 | 
				
			||||||
$(if testtag AX_USE_DOXYGEN; then echo -n "BuildRequires: graphviz"; fi)
 | 
					#### os dependent definitions ####
 | 
				
			||||||
%endif
 | 
					%if 0%{?suse_version} || 0%{?sles_version}
 | 
				
			||||||
%if 0%{?fedora} || 0%{?rhel} || 0%{?rhl} || 0%{?centos} || 0%{?centos_ver} || 0%{?centos_version} || 0%{?mageia}
 | 
					BuildRequires: lsb-release
 | 
				
			||||||
BuildRequires: which, pkgconfig$(
 | 
					 | 
				
			||||||
    if testtag AX_USE_LIBTOOL; then
 | 
					 | 
				
			||||||
      echo -n ", cppunit-devel"
 | 
					 | 
				
			||||||
    fi
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
%if 0%{?rhel} > 6 || 0%{?rhl} > 6 || 0%{?centos} > 6 || 0%{?fedora} || 0%{?mageia}
 | 
					 | 
				
			||||||
BuildRequires: rpm-sign
 | 
					 | 
				
			||||||
%endif
 | 
					 | 
				
			||||||
%if 0%{?mageia}
 | 
					 | 
				
			||||||
BuildRequires: gnupg, lsb-release$(
 | 
					 | 
				
			||||||
    if testtag AX_USE_LIBTOOL; then
 | 
					 | 
				
			||||||
      echo -n ", libltdl-devel"
 | 
					 | 
				
			||||||
    fi
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
%else
 | 
					%else
 | 
				
			||||||
BuildRequires: gpg, redhat-lsb$(
 | 
					BuildRequires: rpm-sign, redhat-lsb
 | 
				
			||||||
    if testtag AX_USE_LIBTOOL; then
 | 
					%endif$(
 | 
				
			||||||
      echo -n ", libtool-ltdl-devel"
 | 
					    if testtag AX_USE_DOXYGEN; then cat <<EOS
 | 
				
			||||||
    fi
 | 
					%if ! 0%{?centos}
 | 
				
			||||||
)
 | 
					BuildRequires: mscgen
 | 
				
			||||||
%endif
 | 
					%fi
 | 
				
			||||||
%if ! ( 0%{?centos} || 0%{?centos_ver} || 0%{?centos_version} )
 | 
					EOS
 | 
				
			||||||
$(if testtag AX_USE_DOXYGEN; then echo -n "BuildRequires: mscgen"; fi)
 | 
					fi)
 | 
				
			||||||
$(if testtag AX_REQUIRE_QT || testtag AX_CHECK_QT AX_REQUIRE_QT; then echo -n "BuildRequires: qt5-qtbase-devel, qt5-qttools, qt5-qtwebkit-devel"; fi)
 | 
					 | 
				
			||||||
%else
 | 
					 | 
				
			||||||
$(if testtag AX_REQUIRE_QT || testtag AX_CHECK_QT AX_REQUIRE_QT; then echo -n "BuildRequires: qt-devel"; fi)
 | 
					 | 
				
			||||||
%endif
 | 
					 | 
				
			||||||
%else%if 0%{?suse_version} || 0%{?sles_version}
 | 
					 | 
				
			||||||
BuildRequires: pkg-config, lsb-release$(
 | 
					 | 
				
			||||||
    if testtag AX_USE_CPPUNIT; then
 | 
					 | 
				
			||||||
      echo -n ", libcppunit-devel";
 | 
					 | 
				
			||||||
    fi)
 | 
					 | 
				
			||||||
%if 0%{?suse_version} < 1200 ||  0%{?sles_version} < 1200
 | 
					 | 
				
			||||||
$(if testtag AX_REQUIRE_QT || testtag AX_CHECK_QT AX_REQUIRE_QT; then echo -n "BuildRequires: libqt4-devel, qt4-x11-tools, libQtWebKit-devel"; fi)
 | 
					 | 
				
			||||||
%else
 | 
					 | 
				
			||||||
$(if testtag AX_REQUIRE_QT || testtag AX_CHECK_QT AX_REQUIRE_QT; then echo -n "BuildRequires: libqt5-qtbase-devel, libqt5-qttools, libQt5WebKit5-devel"; fi)
 | 
					 | 
				
			||||||
%endif
 | 
					 | 
				
			||||||
%endif%endif
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
%description
 | 
					%description
 | 
				
			||||||
@README@
 | 
					@README@
 | 
				
			||||||
@@ -1831,27 +1814,29 @@ EOF
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#### Cleanup If Makefile Exists ####
 | 
					#### Cleanup If Makefile Exists ####
 | 
				
			||||||
if test -f makefile; then
 | 
					if test -f makefile; then
 | 
				
			||||||
    run --no-check make distclean
 | 
					    run --no-check make maintainer-clean
 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#### Bootstrap Before Configure ####
 | 
					 | 
				
			||||||
run --no-check vcs2cl
 | 
					 | 
				
			||||||
run aclocal
 | 
					 | 
				
			||||||
if testtag AX_USE_LIBTOOL; then run libtoolize --force; fi
 | 
					 | 
				
			||||||
run automake -a
 | 
					 | 
				
			||||||
run autoconf
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#### Run Configure If User Requires ####
 | 
					 | 
				
			||||||
if test "$configure" -eq 1; then
 | 
					 | 
				
			||||||
    ./configure $* || exit 1
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#### Run Make If User Requires ####
 | 
					 | 
				
			||||||
if test "$build" -eq 1; then
 | 
					 | 
				
			||||||
    make $buildtarget || exit 1
 | 
					 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#### Build In Docker If User Requires ####
 | 
					#### Build In Docker If User Requires ####
 | 
				
			||||||
if test "$docker" -eq 1; then
 | 
					if test "$docker" -eq 1; then
 | 
				
			||||||
    ./build-in-docker.sh || exit 1
 | 
					    ./build-in-docker.sh $buildtarget $* || exit 1
 | 
				
			||||||
 | 
					else
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    #### Bootstrap Before Configure ####
 | 
				
			||||||
 | 
					    run --no-check vcs2cl
 | 
				
			||||||
 | 
					    run aclocal
 | 
				
			||||||
 | 
					    if testtag AX_USE_LIBTOOL; then run libtoolize --force; fi
 | 
				
			||||||
 | 
					    run automake -a
 | 
				
			||||||
 | 
					    run autoconf
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    #### Run Configure If User Requires ####
 | 
				
			||||||
 | 
					    if test "$configure" -eq 1; then
 | 
				
			||||||
 | 
					        ./configure $* || exit 1
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    #### Run Make If User Requires ####
 | 
				
			||||||
 | 
					    if test "$build" -eq 1; then
 | 
				
			||||||
 | 
					        make $buildtarget || exit 1
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@ if test "${arch}" = "amd64"; then
 | 
				
			|||||||
    myarch="amd64|i386"
 | 
					    myarch="amd64|i386"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
mode="deb"
 | 
					mode="deb"
 | 
				
			||||||
img="ubuntu:latest"
 | 
					img="mwaeckerlin/ubuntu:latest"
 | 
				
			||||||
repos=()
 | 
					repos=()
 | 
				
			||||||
keys=()
 | 
					keys=()
 | 
				
			||||||
envs=("-e LANG=${LANG}" "-e HOME=${HOME}" "-e TERM=xterm" "-e DEBIAN_FRONTEND=noninteractive" "-e DEBCONF_NONINTERACTIVE_SEEN=true")
 | 
					envs=("-e LANG=${LANG}" "-e HOME=${HOME}" "-e TERM=xterm" "-e DEBIAN_FRONTEND=noninteractive" "-e DEBCONF_NONINTERACTIVE_SEEN=true")
 | 
				
			||||||
@@ -82,12 +82,12 @@ while test $# -gt 0; do
 | 
				
			|||||||
        (-m|--mode) shift;
 | 
					        (-m|--mode) shift;
 | 
				
			||||||
            mode="$1"
 | 
					            mode="$1"
 | 
				
			||||||
            case "$mode" in
 | 
					            case "$mode" in
 | 
				
			||||||
                (deb|apt) img="ubuntu:latest";;
 | 
					                (deb|apt) img="mwaeckerlin/ubuntu:latest";;
 | 
				
			||||||
                (rpm|zypper) img="opensuse:latest";;
 | 
					                (rpm|zypper) img="opensuse:latest";;
 | 
				
			||||||
                (yum) img="centos:latest";;
 | 
					                (yum) img="centos:latest";;
 | 
				
			||||||
                (dnf) img="fedora:latest";;
 | 
					                (dnf) img="fedora:latest";;
 | 
				
			||||||
                (win)
 | 
					                (win)
 | 
				
			||||||
                    img="ubuntu:latest"; host="${host:---host=i686-w64-mingw32}"
 | 
					                    img="mwaeckerlin/ubuntu:latest"; host="${host:---host=i686-w64-mingw32}"
 | 
				
			||||||
                    targets="all install"
 | 
					                    targets="all install"
 | 
				
			||||||
                    flags+=("--prefix=/workdir/usr")
 | 
					                    flags+=("--prefix=/workdir/usr")
 | 
				
			||||||
                    packages1=("mingw-w64")
 | 
					                    packages1=("mingw-w64")
 | 
				
			||||||
@@ -172,7 +172,8 @@ function traperror() {
 | 
				
			|||||||
                echo
 | 
					                echo
 | 
				
			||||||
            fi
 | 
					            fi
 | 
				
			||||||
            if [ "$wait" -eq 1 ]; then
 | 
					            if [ "$wait" -eq 1 ]; then
 | 
				
			||||||
                echo "  ... now you can access the docker container:"
 | 
					                echo "  ... now you can access the docker container as root or user:"
 | 
				
			||||||
 | 
					                echo "      docker exec -it ${DOCKER_ID} bash"
 | 
				
			||||||
                echo "      docker exec -u $(id -u) -it ${DOCKER_ID} bash"
 | 
					                echo "      docker exec -u $(id -u) -it ${DOCKER_ID} bash"
 | 
				
			||||||
                echo -n "  ... press enter to cleanup: "
 | 
					                echo -n "  ... press enter to cleanup: "
 | 
				
			||||||
                read
 | 
					                read
 | 
				
			||||||
@@ -185,13 +186,7 @@ function traperror() {
 | 
				
			|||||||
            exit $e
 | 
					            exit $e
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
    done
 | 
					    done
 | 
				
			||||||
    if [ "$wait" -eq 1 ]; then
 | 
					    echo -n "SUCCESS ... cleanup docker: "
 | 
				
			||||||
        echo "  ... now you can access the docker container:"
 | 
					 | 
				
			||||||
        echo "      docker exec -u $(id -u) -it ${DOCKER_ID} bash"
 | 
					 | 
				
			||||||
        echo -n "  ... press enter to cleanup: "
 | 
					 | 
				
			||||||
        read
 | 
					 | 
				
			||||||
    fi
 | 
					 | 
				
			||||||
    echo -n "   SUCCESS ... cleanup docker: "
 | 
					 | 
				
			||||||
    docker rm -f "${DOCKER_ID}"
 | 
					    docker rm -f "${DOCKER_ID}"
 | 
				
			||||||
    exit 0
 | 
					    exit 0
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,34 +7,16 @@ Group: Development/Libraries/C++
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Source0: %{name}-%{version}.tar.gz
 | 
					Source0: %{name}-%{version}.tar.gz
 | 
				
			||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 | 
					BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 | 
				
			||||||
BuildRequires: gnupg, expect, subversion, make, automake, autoconf, rpm-build, binutils-devel, gcc-c++, libtool, doxygen, java-openjdk  @RPM_BUILD_DEPEND@ @RPM_DEPEND_IFEXISTS@
 | 
					BuildRequires: which, pkgconfig, gnupg, expect, subversion, make, automake, autoconf, rpm-build, binutils-devel, gcc-c++, libtool, libtool-ltdl-devel, cppunit-devel, doxygen, graphviz, java-openjdk  @RPM_BUILD_DEPEND@ @RPM_DEPEND_IFEXISTS@
 | 
				
			||||||
%if 0%{?fedora} != 20
 | 
					
 | 
				
			||||||
BuildRequires: graphviz
 | 
					#### os dependent definitions ####
 | 
				
			||||||
%endif
 | 
					%if 0%{?suse_version} || 0%{?sles_version}
 | 
				
			||||||
%if 0%{?fedora} || 0%{?rhel} || 0%{?rhl} || 0%{?centos} || 0%{?centos_ver} || 0%{?centos_version} || 0%{?mageia}
 | 
					BuildRequires: lsb-release
 | 
				
			||||||
BuildRequires: which, pkgconfig, cppunit-devel
 | 
					 | 
				
			||||||
%if 0%{?rhel} > 6 || 0%{?rhl} > 6 || 0%{?centos} > 6 || 0%{?fedora} || 0%{?mageia}
 | 
					 | 
				
			||||||
BuildRequires: rpm-sign
 | 
					 | 
				
			||||||
%endif
 | 
					 | 
				
			||||||
%if 0%{?mageia}
 | 
					 | 
				
			||||||
BuildRequires: gnupg, lsb-release, libltdl-devel
 | 
					 | 
				
			||||||
%else
 | 
					%else
 | 
				
			||||||
BuildRequires: gpg, redhat-lsb, libtool-ltdl-devel
 | 
					BuildRequires: rpm-sign, redhat-lsb
 | 
				
			||||||
%endif
 | 
					%endif%if ! 0%{?centos}
 | 
				
			||||||
%if ! ( 0%{?centos} || 0%{?centos_ver} || 0%{?centos_version} )
 | 
					 | 
				
			||||||
BuildRequires: mscgen
 | 
					BuildRequires: mscgen
 | 
				
			||||||
 | 
					%fi
 | 
				
			||||||
%else
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
%endif
 | 
					 | 
				
			||||||
%else%if 0%{?suse_version} || 0%{?sles_version}
 | 
					 | 
				
			||||||
BuildRequires: pkg-config, lsb-release, libcppunit-devel
 | 
					 | 
				
			||||||
%if 0%{?suse_version} < 1200 ||  0%{?sles_version} < 1200
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
%else
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
%endif
 | 
					 | 
				
			||||||
%endif%endif
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
%description
 | 
					%description
 | 
				
			||||||
@README@
 | 
					@README@
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -30,7 +30,9 @@ if HAVE_STACKTRACE
 | 
				
			|||||||
if HAVE_LOG4CXX
 | 
					if HAVE_LOG4CXX
 | 
				
			||||||
    VALGRIND_CHECKS += mrwexclog4cxx_test
 | 
					    VALGRIND_CHECKS += mrwexclog4cxx_test
 | 
				
			||||||
if AUTOFNTRACE
 | 
					if AUTOFNTRACE
 | 
				
			||||||
      NO_VALGRIND_CHECKS += mrwautofunctiontracelog4cxx_test
 | 
					# @bug Actually, the following test fails; to be repaired, see
 | 
				
			||||||
 | 
					# 
 | 
				
			||||||
 | 
					#      NO_VALGRIND_CHECKS += mrwautofunctiontracelog4cxx_test
 | 
				
			||||||
if HAVE_THREADS
 | 
					if HAVE_THREADS
 | 
				
			||||||
if HAVE_BOOST_THREAD
 | 
					if HAVE_BOOST_THREAD
 | 
				
			||||||
# @bug Actually, the following test fails; to be repaired, see
 | 
					# @bug Actually, the following test fails; to be repaired, see
 | 
				
			||||||
@@ -150,15 +152,17 @@ if HAVE_LOG4CXX
 | 
				
			|||||||
    mrwexclog4cxx_test_LDFLAGS = @CPPUNIT_LIBS@ -L${top_builddir}/src
 | 
					    mrwexclog4cxx_test_LDFLAGS = @CPPUNIT_LIBS@ -L${top_builddir}/src
 | 
				
			||||||
    mrwexclog4cxx_test_LDADD = -lmrw -lmrwexclog4cxx -llog4cxx
 | 
					    mrwexclog4cxx_test_LDADD = -lmrw -lmrwexclog4cxx -llog4cxx
 | 
				
			||||||
if AUTOFNTRACE
 | 
					if AUTOFNTRACE
 | 
				
			||||||
      mrwautofunctiontracelog4cxx_test_SOURCES = \
 | 
					# @bug Actually, the following test fails; to be repaired, see
 | 
				
			||||||
        mrwautofunctiontracelog4cxx_test.cxx
 | 
					# 
 | 
				
			||||||
      mrwautofunctiontracelog4cxx_test_CPPFLAGS = -I ${top_srcdir}/src \
 | 
					#      mrwautofunctiontracelog4cxx_test_SOURCES = \
 | 
				
			||||||
        @CPPUNIT_CFLAGS@ -finstrument-functions -g3 -O0
 | 
					#        mrwautofunctiontracelog4cxx_test.cxx
 | 
				
			||||||
      mrwautofunctiontracelog4cxx_test_CXXFLAGS = -g3 -O0 -finstrument-functions
 | 
					#      mrwautofunctiontracelog4cxx_test_CPPFLAGS = -I ${top_srcdir}/src \
 | 
				
			||||||
      mrwautofunctiontracelog4cxx_test_LDFLAGS = \
 | 
					#        @CPPUNIT_CFLAGS@ -finstrument-functions -g3 -O0
 | 
				
			||||||
        @CPPUNIT_LIBS@ -L${top_builddir}/src -finstrument-functions
 | 
					#      mrwautofunctiontracelog4cxx_test_CXXFLAGS = -g3 -O0 -finstrument-functions
 | 
				
			||||||
      mrwautofunctiontracelog4cxx_test_LDADD = \
 | 
					#      mrwautofunctiontracelog4cxx_test_LDFLAGS = \
 | 
				
			||||||
        -llog4cxx -lmrwautofunctiontracelog4cxx -lmrw
 | 
					#        @CPPUNIT_LIBS@ -L${top_builddir}/src -finstrument-functions
 | 
				
			||||||
 | 
					#      mrwautofunctiontracelog4cxx_test_LDADD = \
 | 
				
			||||||
 | 
					#        -llog4cxx -lmrwautofunctiontracelog4cxx -lmrw
 | 
				
			||||||
if HAVE_THREADS
 | 
					if HAVE_THREADS
 | 
				
			||||||
if HAVE_BOOST_THREAD
 | 
					if HAVE_BOOST_THREAD
 | 
				
			||||||
# @bug Actually, the following test fails; to be repaired, see
 | 
					# @bug Actually, the following test fails; to be repaired, see
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user