gnucash-2.6.9/packaging/gnucash.spec and gnucash-2.6.9/packaging/gnucash.spec.in are not part of the Debian packaging. They are the project's own spec files (the second one is a template) for packaging gnucash in RPM form.
gnucash-2.6.9/configure.ac is also part of upstream. This is an Autoconf file which is used to generate the gnucash-2.6.9/configure. This autoconf.ac file is used by the Debian packaging, but is not part of it.
All the Debian packaging lives inside the debian/ subdirectory.
The actual build script (which is really just a Makefile), is debian/rules, so that is all you need to concern yourself about here. Most Debian packages use the debhelper program. This package happens to use the more recent and modern dh variant, which is part of debhelper.
Briefly, the way "traditional" debhelper works is to offer a suite of standard commands that can be used to build the package, rather than having to do everything from scratch. dh is a newer variant which has defaults for every stahdard debhelper step, which can be overridden if necessary. Which links up to what A.P. is saying. In this case, the rules file is overriding the default configure step. Hence. you need to modify this override_dh_auto_configure target to change what the configure step does. Here is the override_dh_auto_configure target:
override_dh_auto_configure:
dh_auto_configure -- \
--libdir=/usr/lib/$(DEB_HOST_MULTIARCH)/gnucash \
--infodir=/noinst \
--mandir=/noinst \
--docdir=/noinst \
--disable-static \
--enable-dbi \
--enable-ofx \
--enable-aqbanking \
--enable-locale-specific-tax \
--enable-python
So, this is overriding the dh_auto_configure debhelper target. Check out man dh_auto_configure for more information about that target.
In this case, the default dh_auto_configure would just run configure with no arguments, i.e. ./configure. The override just runs configure with the given arguments/option. So, you need to remove the --enable-aqbanking argument/option here.
Here are some slides about dh: Not Your Grandpa's Debhelper. There is other information on the net.
debuildinstead. From thedevscriptspackage.debuildis better ? I am following official howto, which is usingdpkg-buildpackage