]> git.sur5r.net Git - bacula/bacula/commitdiff
Add use of pkgconfig to find QT4 paths.
authorScott Barninger <scott@barninger.com>
Sat, 8 Nov 2008 14:12:01 +0000 (14:12 +0000)
committerScott Barninger <scott@barninger.com>
Sat, 8 Nov 2008 14:12:01 +0000 (14:12 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.4@8020 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/platforms/contrib-rpm/build_rpm.sh
bacula/platforms/mandrake/bacula.spec.in
bacula/platforms/redhat/bacula.spec.in
bacula/platforms/suse/bacula.spec.in

index 9f82f263496f2f2f30243d11e24b8b3c522883f5..ee0278e9f0f824efe2cd824285108bcc00ae04a5 100755 (executable)
@@ -76,9 +76,11 @@ SAVEUPDATEDB=0
 # 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
 
@@ -189,3 +191,4 @@ ls
 # 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
index 1dbf7cfdc4c908977ca01b2b704b55a1f7e5d45f..a28a60f440810e3729cfe068292c4e84b5f1b19d 100644 (file)
@@ -329,6 +329,9 @@ BuildRequires: python, python-devel
 %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
@@ -1348,6 +1351,13 @@ the client or server packages.
 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}
@@ -2428,6 +2438,8 @@ fi
 %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>
index 1dbf7cfdc4c908977ca01b2b704b55a1f7e5d45f..a28a60f440810e3729cfe068292c4e84b5f1b19d 100644 (file)
@@ -329,6 +329,9 @@ BuildRequires: python, python-devel
 %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
@@ -1348,6 +1351,13 @@ the client or server packages.
 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}
@@ -2428,6 +2438,8 @@ fi
 %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>
index 1dbf7cfdc4c908977ca01b2b704b55a1f7e5d45f..a28a60f440810e3729cfe068292c4e84b5f1b19d 100644 (file)
@@ -329,6 +329,9 @@ BuildRequires: python, python-devel
 %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
@@ -1348,6 +1351,13 @@ the client or server packages.
 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}
@@ -2428,6 +2438,8 @@ fi
 %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>