Hello community,

here is the log from the commit of package ibutils for openSUSE:Factory checked 
in at 2017-06-12 15:30:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ibutils (Old)
 and      /work/SRC/openSUSE:Factory/.ibutils.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ibutils"

Mon Jun 12 15:30:34 2017 rev:5 rq:501507 version:1.5.7.0.2

Changes:
--------
New Changes file:

--- /dev/null   2017-03-01 00:40:19.279048016 +0100
+++ /work/SRC/openSUSE:Factory/.ibutils.new/ibutils-ui.changes  2017-06-12 
15:31:16.002219468 +0200
@@ -0,0 +1,154 @@
+-------------------------------------------------------------------
+Fri Jun  2 13:18:19 UTC 2017 - [email protected]
+
+- Fix ibutils-diagui.patch to not build ibdiagui
+  with the ibutils package.
+
+-------------------------------------------------------------------
+Thu Jun  1 08:01:59 UTC 2017 - [email protected]
+
+- Scriptlets and %packages need not be wrapped in %if.
+
+-------------------------------------------------------------------
+Fri Apr 28 16:38:48 UTC 2017 - [email protected]
+
+- Normalize all macros
+- Replace "1 tool" by one tool for better reading
+
+-------------------------------------------------------------------
+Thu Mar 30 15:49:38 UTC 2017 - [email protected]
+
+- Add ibutils-diagui.patch to allow UI less compilation
+- Add a separate ibutils-ui package for UI tools. BSC #1030891
+
+-------------------------------------------------------------------
+Mon Feb 23 20:51:12 UTC 2015 - [email protected]
+
+- Add COPYING to package docs.
+
+-------------------------------------------------------------------
+Fri Feb 13 15:37:06 UTC 2015 - [email protected]
+
+- Update to version 1.5.7-0.2
+  * No changelog available
+- Remove ibutils-add_shebang.patch; not needed anymore
+- Use download Url as source
+
+-------------------------------------------------------------------
+Fri Jul 18 13:08:19 CEST 2014 - [email protected]
+
+- Remove the bogus rpath from ibdmsh and that vein do not link
+  ibdmsh statically.
+
+-------------------------------------------------------------------
+Thu Jul 17 13:10:08 CEST 2014 - [email protected]
+
+- Do not build and install the dynamic library so remove all
+  traces.
+- Remove .la files as they were only needed for the static libs.
+
+-------------------------------------------------------------------
+Tue Jun  3 11:24:34 CEST 2014 - [email protected]
+
+- Update to OFED 3.12 final.
+
+-------------------------------------------------------------------
+Fri Jan 17 13:21:45 CET 2014 - [email protected]
+
+- Update to OFED 3.12 daily snapshot
+- Use spdx.org format for license specification
+
+-------------------------------------------------------------------
+Wed Aug 28 16:16:57 CEST 2013 - [email protected]
+
+- Add ibutils-tk-8.6.patch to include tk 8.6 in the check for accetable
+  tk versions.
+- Add ibutils-add_shebang.patch to add a shebang to git_version.tcl
+  which is installed in _bindir.
+- Run fdupes to eleminate file duplication.
+- Add a rpmlintrc file to silence useless warnings.
+- Add ibutils-autotools.patch to modify the neccessary files
+  so that autoreconf can be called.
+- (Build)Require graphviz-tcl as ibdiag won't work correctly without
+  the graphviz tcl plugin.
+
+-------------------------------------------------------------------
+Tue Sep 11 14:19:04 CEST 2012 - [email protected]
+
+- Update to 1.5.7-0.1.g05a9d1a from OFED 1.5.4.1:
+
+  New Features:
+  * Added scripts that convert OSM dump files for ibdmchk
+   ibutils: added support for GUIDInfo MAD in ibis and simulator
+
+  Major Bugs Fixed:
+  * ibmgtsim: fixed various bugs with running simulations
+  * ibutils: fixed rpmbuild with and w/o ibmgtsim
+
+  Known Issues:
+  * Ibdiagnet "-wt" option may generate a bad topology file when
+    running on a cluster that contains complex switch systems.
+
+  * ibutils works only partially on any distro with TCL 8.5. 
+    ibdiagnet/ibdiagpath/ibis don't work with TCL 8.5 due to a change
+    in TCL behavior: the built-in TCL function "dump" on TCL 8.5
+    always includes field names.
+    Until the fix, any user script that uses ibis needs to be fixed
+    in order to function correctly on TCL 8.5
+
+- Adapt the patch.
+- Package static library in a devel-static package.
+
+-------------------------------------------------------------------
+Tue May  8 18:28:17 CEST 2012 - [email protected]
+
+- BuildRequire automake, autoconf and libtool.
+
+Tue May 25 01:30:35 CEST 2010 - [email protected]
+
+- Updated to v1.5.4 from OFED 1.5.1
+- Removed patch for libreplace
+- Updated the retval patch to include a fix to CredLoops.cpp
+
+-------------------------------------------------------------------
+Fri May 14 23:44:28 CEST 2010 - [email protected]
+
+- Updated the ibutils tarball to the one found in the OFED 1.4.2
+  release.  There is no version change as the ibutils package in
+  OFED changed, but did not change version numbers.
+
+-------------------------------------------------------------------
+Thu Oct 16 04:42:41 CEST 2008 - [email protected]
+
+- Updated with version from OFED 1.3.1 release
+
+-------------------------------------------------------------------
+Fri Feb 29 05:53:44 CET 2008 - [email protected]
+
+- Updated with release from OFED 1.3 GA
+
+-------------------------------------------------------------------
+Tue Jan 29 22:36:30 CET 2008 - [email protected]
+
+- Updated with release from OFED 1.3 rc2 (still v1.2)
+
+-------------------------------------------------------------------
+Mon Jul  9 11:54:29 CEST 2007 - [email protected]
+
+- Use correct version number
+
+-------------------------------------------------------------------
+Wed Jul  4 11:53:35 CEST 2007 - [email protected]
+
+- add GPL COPYING file [#288790]
+
+-------------------------------------------------------------------
+Mon Jul  2 15:20:44 CEST 2007 - [email protected]
+
+- Update to the OFED 1.2 release
+
+-------------------------------------------------------------------
+Wed Jun 20 15:02:37 CEST 2007 - [email protected]
+
+- Initial Package, Version 1.0
+
--- /work/SRC/openSUSE:Factory/ibutils/ibutils.changes  2015-02-24 
13:07:18.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.ibutils.new/ibutils.changes     2017-06-12 
15:31:25.524876432 +0200
@@ -1,0 +2,23 @@
+Fri Jun  2 13:18:19 UTC 2017 - [email protected]
+
+- Fix ibutils-diagui.patch to not build ibdiagui
+  with the ibutils package.
+
+-------------------------------------------------------------------
+Thu Jun  1 08:01:59 UTC 2017 - [email protected]
+
+- Scriptlets and %packages need not be wrapped in %if.
+
+-------------------------------------------------------------------
+Fri Apr 28 16:38:48 UTC 2017 - [email protected]
+
+- Normalize all macros
+- Replace "1 tool" by one tool for better reading
+
+-------------------------------------------------------------------
+Thu Mar 30 15:49:38 UTC 2017 - [email protected]
+
+- Add ibutils-diagui.patch to allow UI less compilation
+- Add a separate ibutils-ui package for UI tools. BSC #1030891
+
+-------------------------------------------------------------------

New:
----
  ibutils-diagui.patch
  ibutils-ui.changes
  ibutils-ui.spec
  pre_checkin.sh

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ibutils-ui.spec ++++++
#
# spec file for package ibutils-ui
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define ibdm_major 1
%define upstream_ver 1.5.7
%define tar_rel 0.2

Name:           ibutils-ui
Summary:        OpenIB Mellanox InfiniBand Diagnostic Tools
License:        BSD-3-Clause or GPL-2.0+
Group:          Productivity/Networking/Diagnostic
Version:        %upstream_ver.%tar_rel
Release:        0
Source0:        
https://www.openfabrics.org/downloads/ibutils/ibutils-%upstream_ver-%tar_rel.gbd7e502.tar.gz
Source1:        ibutils-rpmlintrc
#PATCH-FIX-UPSTREAM Fix non-void functions returning no value
Patch1:         ibutils-1.2-retval.patch
#PATCH-FIX-UPSTREAM Extend the check to include tk 8.6
Patch2:         ibutils-tk-8.6.patch
#PATCH-FIX-UPSTREAM Prepare for autoreconf run
Patch4:         ibutils-autotools.patch
#PATCH-FIX-UPSTREAM Do not link ibdmsh statically and remove rpath
Patch5:         ibutils-no_special_ldflags_for_ibdmsh.patch
# Add --disable-ibdiagui option to allow for split builds
Patch6:         ibutils-diagui.patch
Url:            http://www.openfabrics.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  chrpath
BuildRequires:  fdupes
BuildRequires:  gawk
BuildRequires:  gcc-c++
BuildRequires:  libibverbs-devel
BuildRequires:  libtool
BuildRequires:  opensm-devel
%if "%name" == "ibutils-ui"
BuildRequires:  graphviz-tcl
BuildRequires:  swig
BuildRequires:  tk-devel
Requires:       graphviz-tcl
Requires:       ibutils = %version
%else
BuildRequires:  tcl-devel
%endif

%description
%if "%name" == "ibutils"
The ibutils package provides a set of diagnostic tools that check the health
of an InfiniBand fabric.

Package components:
ibis:     IB interface - A TCL shell that provides interface for sending various
          MADs on the IB fabric. This is the component that actually accesses
          the IB Hardware.

ibdm:     IB Data Model - A library that provides IB fabric analysis.

ibmgtsim: An IB fabric simulator. Useful for developing IB tools.

ibdiag:   This package provides two tools which provide the user interface
          to activate the above functionality:
            - ibdiagnet:  Performs various quality and health checks on the IB
                          fabric.
            - ibdiagpath: Performs various fabric quality and health checks on
                          the given links and nodes in a specific path.
%else
The ibutils-ui package provides a set of graphical UI tools that check the 
health
of an InfiniBand fabric.

Package components:
ibdiag:   This package provides one tool which provide the user interface
          to activate the above functionality:
            - ibdiagui:   A GUI wrapper for ibdiagnet and ibdiagpath.
%endif

%package        devel
Summary:        SDK for OpenIB Mellanox InfiniBand Diagnostic Tools
Group:          Development/Libraries/C and C++
Requires:       %name = %version
Requires:       libibdm%ibdm_major = %version

%description    devel
ibutils provides IB network and path diagnostics.

%package     -n libibdm%ibdm_major
Summary:        Shared libraries for ibutils
Group:          System/Libraries

%description -n libibdm%ibdm_major
This package contains shared libraries for the IB utils.

%prep
%setup -q -n ibutils-%upstream_ver
%patch1
%patch2
%patch4
%patch5
%patch6

%build
autoreconf -fi
./autogen.sh
%if "%name" == "ibutils"
%configure --with-graphviz-lib=%_libdir --disable-static --disable-ibdiagui
make %{?_smp_mflags}
%else
%configure --with-graphviz-lib=%_libdir --disable-static
make %{?_smp_mflags} -Cibdiag
%endif

%install
export NO_BRP_TCL_INDEX_CHECK=true
%if "%name" == "ibutils"
%makeinstall 
%else
%makeinstall -Cibdiag/
rm -f %buildroot%_bindir/git_version.tcl %buildroot%_bindir/ibdiagnet 
%buildroot%_bindir/ibdiagpath
rm -Rf %buildroot%_libdir/ibdiagnet*  %buildroot%_libdir/ibdiagpath*
rm -f %buildroot%_mandir/man1/ibdiagnet.1* %buildroot%_mandir/man1/ibdiagpath.1*
%endif
%fdupes -s %buildroot%_libdir
rm -f %buildroot%_libdir/*.la %buildroot%_libdir/*.a

%post -n libibdm%ibdm_major -p /sbin/ldconfig
%postun -n libibdm%ibdm_major -p /sbin/ldconfig

%if "%name" == "ibutils"

%files
%defattr(-, root, root)
%doc COPYING
%_bindir/*
%_libdir/ibdiagnet%upstream_ver
%_libdir/ibdiagpath%upstream_ver
%_libdir/ibdm%upstream_ver
%_libdir/ibis%upstream_ver

%files -n libibdm%ibdm_major
%defattr(-, root, root)
%_libdir/libibdm.so.*
%_libdir/libibdmcom.so.*
%_libdir/libibsysapi.so.*

%files devel
%defattr(-, root, root)
%_includedir/ibdm
%_libdir/libibdm.so
%_libdir/libibdmcom.so
%_libdir/libibsysapi.so
%_mandir/man1/*

%else

%files
%defattr(-, root, root)
%doc COPYING
%_bindir/ibdiagui
%_libdir/ibdiagui%upstream_ver
%_mandir/man1/ibdiagui*
%endif

%changelog
++++++ ibutils.spec ++++++
--- /var/tmp/diff_new_pack.h4Aq8q/_old  2017-06-12 15:31:29.072376107 +0200
+++ /var/tmp/diff_new_pack.h4Aq8q/_new  2017-06-12 15:31:29.076375543 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ibutils
 #
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,9 +24,9 @@
 Summary:        OpenIB Mellanox InfiniBand Diagnostic Tools
 License:        BSD-3-Clause or GPL-2.0+
 Group:          Productivity/Networking/Diagnostic
-Version:        %{upstream_ver}.%{tar_rel}
+Version:        %upstream_ver.%tar_rel
 Release:        0
-Source0:        
https://www.openfabrics.org/downloads/ibutils/%{name}-%{upstream_ver}-%{tar_rel}.gbd7e502.tar.gz
+Source0:        
https://www.openfabrics.org/downloads/ibutils/ibutils-%upstream_ver-%tar_rel.gbd7e502.tar.gz
 Source1:        ibutils-rpmlintrc
 #PATCH-FIX-UPSTREAM Fix non-void functions returning no value
 Patch1:         ibutils-1.2-retval.patch
@@ -36,6 +36,8 @@
 Patch4:         ibutils-autotools.patch
 #PATCH-FIX-UPSTREAM Do not link ibdmsh statically and remove rpath
 Patch5:         ibutils-no_special_ldflags_for_ibdmsh.patch
+# Add --disable-ibdiagui option to allow for split builds
+Patch6:         ibutils-diagui.patch
 Url:            http://www.openfabrics.org
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  autoconf
@@ -44,15 +46,21 @@
 BuildRequires:  fdupes
 BuildRequires:  gawk
 BuildRequires:  gcc-c++
-BuildRequires:  graphviz-tcl
 BuildRequires:  libibverbs-devel
 BuildRequires:  libtool
 BuildRequires:  opensm-devel
+%if "%name" == "ibutils-ui"
+BuildRequires:  graphviz-tcl
 BuildRequires:  swig
 BuildRequires:  tk-devel
 Requires:       graphviz-tcl
+Requires:       ibutils = %version
+%else
+BuildRequires:  tcl-devel
+%endif
 
 %description 
+%if "%name" == "ibutils"
 The ibutils package provides a set of diagnostic tools that check the health
 of an InfiniBand fabric.
 
@@ -65,66 +73,85 @@
 
 ibmgtsim: An IB fabric simulator. Useful for developing IB tools.
 
-ibdiag:   This package provides 3 tools which provide the user interface
+ibdiag:   This package provides two tools which provide the user interface
           to activate the above functionality:
             - ibdiagnet:  Performs various quality and health checks on the IB
                           fabric.
             - ibdiagpath: Performs various fabric quality and health checks on
                           the given links and nodes in a specific path.
-            - ibdiagui:   A GUI wrapper for the above tools.
+%else
+The ibutils-ui package provides a set of graphical UI tools that check the 
health
+of an InfiniBand fabric.
 
+Package components:
+ibdiag:   This package provides one tool which provide the user interface
+          to activate the above functionality:
+            - ibdiagui:   A GUI wrapper for ibdiagnet and ibdiagpath.
+%endif
 
 %package        devel
 Summary:        SDK for OpenIB Mellanox InfiniBand Diagnostic Tools
 Group:          Development/Libraries/C and C++
-Requires:       %{name} = %{version}
-Requires:       libibdm%{ibdm_major} = %{version}
+Requires:       %name = %version
+Requires:       libibdm%ibdm_major = %version
 
 %description    devel
 ibutils provides IB network and path diagnostics.
 
-%package     -n libibdm%{ibdm_major}
+%package     -n libibdm%ibdm_major
 Summary:        Shared libraries for ibutils
 Group:          System/Libraries
 
-%description -n libibdm%{ibdm_major}
+%description -n libibdm%ibdm_major
 This package contains shared libraries for the IB utils.
 
 %prep
-%setup -q -n %{name}-%{upstream_ver}
+%setup -q -n ibutils-%upstream_ver
 %patch1
 %patch2
 %patch4
 %patch5
+%patch6
 
 %build
 autoreconf -fi
-NOCONFIGURE=1 ./autogen.sh
-%configure --with-graphviz-lib=%{_libdir} --disable-static
+./autogen.sh
+%if "%name" == "ibutils"
+%configure --with-graphviz-lib=%_libdir --disable-static --disable-ibdiagui
 make %{?_smp_mflags}
+%else
+%configure --with-graphviz-lib=%_libdir --disable-static
+make %{?_smp_mflags} -Cibdiag
+%endif
 
 %install
 export NO_BRP_TCL_INDEX_CHECK=true
+%if "%name" == "ibutils"
 %makeinstall 
-%fdupes -s %{buildroot}%{_libdir}
+%else
+%makeinstall -Cibdiag/
+rm -f %buildroot%_bindir/git_version.tcl %buildroot%_bindir/ibdiagnet 
%buildroot%_bindir/ibdiagpath
+rm -Rf %buildroot%_libdir/ibdiagnet*  %buildroot%_libdir/ibdiagpath*
+rm -f %buildroot%_mandir/man1/ibdiagnet.1* 
%buildroot%_mandir/man1/ibdiagpath.1*
+%endif
+%fdupes -s %buildroot%_libdir
+rm -f %buildroot%_libdir/*.la %buildroot%_libdir/*.a
 
-rm -f %{buildroot}%{_libdir}/*.la %{buildroot}%{_libdir}/*.a
+%post -n libibdm%ibdm_major -p /sbin/ldconfig
+%postun -n libibdm%ibdm_major -p /sbin/ldconfig
 
-%post -n libibdm%{ibdm_major} -p /sbin/ldconfig
-%postun -n libibdm%{ibdm_major} -p /sbin/ldconfig
+%if "%name" == "ibutils"
 
 %files
 %defattr(-, root, root)
 %doc COPYING
 %_bindir/*
-%_libdir/ibdiagnet%{upstream_ver}
-%_libdir/ibdiagpath%{upstream_ver}
-%_libdir/ibdiagui%{upstream_ver}
-%_libdir/ibdm%{upstream_ver}
-%_libdir/ibis%{upstream_ver}
-%_mandir/man1/*
+%_libdir/ibdiagnet%upstream_ver
+%_libdir/ibdiagpath%upstream_ver
+%_libdir/ibdm%upstream_ver
+%_libdir/ibis%upstream_ver
 
-%files -n libibdm%{ibdm_major}
+%files -n libibdm%ibdm_major
 %defattr(-, root, root)
 %_libdir/libibdm.so.*
 %_libdir/libibdmcom.so.*
@@ -136,5 +163,16 @@
 %_libdir/libibdm.so
 %_libdir/libibdmcom.so
 %_libdir/libibsysapi.so
+%_mandir/man1/*
+
+%else
+
+%files
+%defattr(-, root, root)
+%doc COPYING
+%_bindir/ibdiagui
+%_libdir/ibdiagui%upstream_ver
+%_mandir/man1/ibdiagui*
+%endif
 
 %changelog

++++++ ibutils-diagui.patch ++++++
diff --git ibdiag/configure.in ibdiag/configure.in
index 0ddf85d..f436939 100644
--- ibdiag/configure.in
+++ ibdiag/configure.in
@@ -61,13 +61,26 @@ AC_ARG_ENABLE(libcheck,
   *) AC_MSG_ERROR(bad value ${enableval} for --enable-libcheck) ;;
 esac],[libcheck=true])
 
+AC_ARG_ENABLE(ibdiagui,
+[  --enable-ibdiagui    Build ibdiagui],
+[case "${enableval}" in
+  yes) ibdiagui=true ;;
+  no)  ibdiagui=false ;;
+  *) AC_MSG_ERROR(bad value ${enableval} for --enable-ibdiagui) ;;
+esac],[ibdiagui=true])
+AM_CONDITIONAL([BUILD_IBDIAGUI], [test "x$ibdiagui" != xfalse])
+
 if test $libcheck = true; then
 dnl Checks for libraries.
 CHECK_IBIS_EXEC_DIR
 CHECK_IBDM_TCLLIB
+
+dnl Check for UI libs if ibdiagui is being built
+if test "x$ibdiagui" = "xtrue"; then
 SET_TK_LIBS
 SET_GRAPHVIZ_LIBS
 fi
+fi
 
 dnl Create the following Makefiles
 AC_OUTPUT(Makefile src/Makefile doc/Makefile)
diff --git ibdiag/doc/Makefile.am ibdiag/doc/Makefile.am
index b64c568..129f184 100644
--- ibdiag/doc/Makefile.am
+++ ibdiag/doc/Makefile.am
@@ -30,8 +30,13 @@
 # SOFTWARE.
 #--
 
-man_MANS = ibdiagnet.1 ibdiagpath.1 ibdiagui.1
-EXTRA_DIST = ibdiagnet.pod ibdiagpath.pod ibdiagui.pod ibdiag_pod2man
+man_MANS = ibdiagnet.1 ibdiagpath.1
+EXTRA_DIST = ibdiagnet.pod ibdiagpath.pod ibdiag_pod2man
+
+if BUILD_IBDIAGUI
+man_MANS += ibdiagui.1
+EXTRA_DIST += ibdiagui.pod
+endif
 
 ibdiagnet.1: ibdiagnet.pod
        $(srcdir)/ibdiag_pod2man $(srcdir)/ibdiagnet.pod ibdiagnet.1
@@ -39,5 +44,7 @@ ibdiagnet.1: ibdiagnet.pod
 ibdiagpath.1: ibdiagpath.pod
        $(srcdir)/ibdiag_pod2man $(srcdir)/ibdiagpath.pod ibdiagpath.1
 
+if BUILD_IBDIAGUI
 ibdiagui.1: ibdiagui.pod
        $(srcdir)/ibdiag_pod2man $(srcdir)/ibdiagui.pod ibdiagui.1
+endif
diff --git ibdiag/src/Makefile.am ibdiag/src/Makefile.am
index c33e9f0..1233b96 100644
--- ibdiag/src/Makefile.am
+++ ibdiag/src/Makefile.am
@@ -32,11 +32,16 @@
 
 ACLOCAL_AMFLAGS      = -I config
 
-bin_SCRIPTS = ibdiagnet ibdiagpath ibdiagui git_version.tcl
+bin_SCRIPTS = ibdiagnet ibdiagpath git_version.tcl
 EXTRA_DIST = ibdebug_if.tcl ibdebug.tcl \
        ibdiagnet.in ibdiagnet.pkg ibdiagnet.tcl \
        ibdiagpath.in ibdiagpath.pkg ibdiagpath.tcl \
-       ibdiagui.in ibdiagui.pkg ibdiagui.tcl git_version.tcl
+        git_version.tcl
+
+if BUILD_IBDIAGUI
+bin_SCRIPTS += ibdiagui
+EXTRA_DIST += ibdiagui.in ibdiagui.pkg ibdiagui.tcl
+endif
 
 GIT=$(shell which git)
 
@@ -73,13 +78,15 @@ ibdiagpath: ibdiagpath.in
            -e 's=%with_ibis_bindir%='$(DESTDIR)$(bindir)'=' \
            -e 's=%with_ibis%='$(with_ibis)'=' $(srcdir)/ibdiagpath.in > 
ibdiagpath
 
-ibdiagui: ibdiagui.in
+if BUILD_IBDIAGUI
+ ibdiagui: ibdiagui.in
        sed -e 's=%ibdiag_libdir%='$(DESTDIR)$(libdir)'=' \
            -e 's=%with_ibdm_lib%='$(with_ibdm_lib)'=' \
            -e 's=%with_tk_lib%='$(with_tk_lib)'=' \
            -e 's=%with_graphviz_lib%='$(with_graphviz_lib)'=' \
            -e 's=%with_ibis_bindir%='$(DESTDIR)$(bindir)'=' \
            -e 's=%with_ibis%='$(with_ibis)'=' $(srcdir)/ibdiagui.in > ibdiagui
+endif
 
 clean:
        rm -f ibdiagui ibdiagnet ibdiagpath
@@ -100,9 +107,11 @@ install-exec-am: install-binSCRIPTS
        cp $(srcdir)/ibdebug_if.tcl $(PATH_LIB_DIR)/ibdebug_if.tcl
        cp $(srcdir)/ibdiagpath.tcl $(PATH_LIB_DIR)/ibdiagpath.tcl
        cp $(srcdir)/git_version.tcl $(PATH_LIB_DIR)/git_version.tcl
+if BUILD_IBDIAGUI
        mkdir -p $(UI_LIB_DIR)
        cp $(srcdir)/ibdiagui.pkg $(UI_LIB_DIR)/pkgIndex.tcl
        cp $(srcdir)/ibdebug.tcl $(UI_LIB_DIR)/ibdebug.tcl
        cp $(srcdir)/ibdebug_if.tcl $(UI_LIB_DIR)/ibdebug_if.tcl
        cp $(srcdir)/ibdiagui.tcl $(UI_LIB_DIR)/ibdiagui.tcl
        cp $(srcdir)/git_version.tcl $(UI_LIB_DIR)/git_version.tcl
+endif

Reply via email to