# to override your language shell variable uncomment and edit this
# export LANG=en_US.UTF-8
-# if you have a problem getting bat to build try these (needed on Fedora 8/9)
-# export QTDIR=/usr/lib/qt4
-# export PATH=/usr/lib/qt4/bin;$PATH
+# this is now in the spec file but when building bat on older versions uncomment
+#export QTDIR=$(pkg-config --variable=prefix QtCore)
+#export QTINC=$(pkg-config --variable=includedir QtCore)
+#export QTLIB=$(pkg-config --variable=libdir QtCore)
+#export PATH=${QTDIR}/bin/:${PATH}
# Make no changes below this point without consensus
# 12 Jan 2008 add fc8
# 23 May 2008 add fc9
# 28 Jun 2008 add su110
+# 08 Nov 2008 add use of pkgconfig to obtain QT4 paths
%if %{gconsole}
BuildRequires: pkgconfig, pango-devel, atk-devel
%endif
+%if %{bat}
+BuildRequires: pkgconfig
+%endif
# Rh qt4 packages don't have a provide for, guess what, qt!
# still broken in fc8, ok in fc9
export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
%endif
+%if %{bat}
+export QTDIR=$(pkg-config --variable=prefix QtCore)
+export QTINC=$(pkg-config --variable=includedir QtCore)
+export QTLIB=$(pkg-config --variable=libdir QtCore)
+export PATH=${QTDIR}/bin/:${PATH}
+%endif
+
cwd=${PWD}
cd %{depkgs}
%if %{sqlite}
%endif
%changelog
+* Sat Nov 08 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
+- set paths for QT using pkgconfig
* Sat Oct 11 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
- release 2.4.3 update depkgs to 11Sep08 remove file nmshack from mtx package
* Sun Sep 07 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
%if %{gconsole}
BuildRequires: pkgconfig, pango-devel, atk-devel
%endif
+%if %{bat}
+BuildRequires: pkgconfig
+%endif
# Rh qt4 packages don't have a provide for, guess what, qt!
# still broken in fc8, ok in fc9
export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
%endif
+%if %{bat}
+export QTDIR=$(pkg-config --variable=prefix QtCore)
+export QTINC=$(pkg-config --variable=includedir QtCore)
+export QTLIB=$(pkg-config --variable=libdir QtCore)
+export PATH=${QTDIR}/bin/:${PATH}
+%endif
+
cwd=${PWD}
cd %{depkgs}
%if %{sqlite}
%endif
%changelog
+* Sat Nov 08 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
+- set paths for QT using pkgconfig
* Sat Oct 11 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
- release 2.4.3 update depkgs to 11Sep08 remove file nmshack from mtx package
* Sun Sep 07 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
%if %{gconsole}
BuildRequires: pkgconfig, pango-devel, atk-devel
%endif
+%if %{bat}
+BuildRequires: pkgconfig
+%endif
# Rh qt4 packages don't have a provide for, guess what, qt!
# still broken in fc8, ok in fc9
export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
%endif
+%if %{bat}
+export QTDIR=$(pkg-config --variable=prefix QtCore)
+export QTINC=$(pkg-config --variable=includedir QtCore)
+export QTLIB=$(pkg-config --variable=libdir QtCore)
+export PATH=${QTDIR}/bin/:${PATH}
+%endif
+
cwd=${PWD}
cd %{depkgs}
%if %{sqlite}
%endif
%changelog
+* Sat Nov 08 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
+- set paths for QT using pkgconfig
* Sat Oct 11 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
- release 2.4.3 update depkgs to 11Sep08 remove file nmshack from mtx package
* Sun Sep 07 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>