From: Scott Barninger Date: Mon, 3 Jul 2006 19:09:42 +0000 (+0000) Subject: Add python support, some corrections to 84 bit lib location hacks. X-Git-Tag: Release-2.0.0~779 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9fe2552c982e18980258abe0bde6fd7583bc38f2;p=bacula%2Fbacula Add python support, some corrections to 84 bit lib location hacks. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3118 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/platforms/mandrake/bacula.spec.in b/bacula/platforms/mandrake/bacula.spec.in index 21cfd8cb0e..cb092ce1a1 100644 --- a/bacula/platforms/mandrake/bacula.spec.in +++ b/bacula/platforms/mandrake/bacula.spec.in @@ -5,7 +5,7 @@ # basic defines for every build %define _version @VERSION@ -%define _release 1 +%define _release 3 %define depkgs_version 25Jun06 %define _rescuever 1.8.6 %define docs_version @VERSION@ @@ -62,6 +62,8 @@ Packager: D. Scott Barninger %define storage_daemon_group disk %define user_file /etc/passwd %define group_file /etc/group + +# program locations %define useradd /usr/sbin/useradd %define groupadd /usr/sbin/groupadd %define usermod /usr/sbin/usermod @@ -195,10 +197,18 @@ Distribution: %{_dist} %define wxconsole 0 %{?build_wxconsole:%define wxconsole 1} +# should we turn on python support +%define python 0 +%{?build_python:%define python 1} + BuildRequires: gcc, gcc-c++, make, autoconf BuildRequires: atk-devel, ncurses-devel, pango-devel, perl BuildRequires: libstdc++-devel, libxml2-devel, zlib-devel BuildRequires: openssl-devel +%if %{python} +BuildRequires: python, python-devel +%{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')} +%endif %if %{gconsole} BuildRequires: pkgconfig %endif @@ -459,6 +469,10 @@ Requires: postgresql-server >= 7 %description postgresql %endif +%if %{python} +Requires: python >= %{pyver} +%endif + %{blurb} %{blurb2} @@ -515,6 +529,10 @@ Requires: glibc >= 2.4 Requires: libtermcap %endif +%if %{python} +Requires: python >= %{pyver} +%endif + %description client %{blurb} @@ -732,7 +750,7 @@ server packages. %build %if %{su9} || %{su10} -export LDFLAGS="-L/usr/lib/termcap" +export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap" %endif cwd=${PWD} @@ -768,11 +786,15 @@ patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch # 64 bit lib location hacks %if %{x86_64} -export LDFLAGS=-L/usr/lib64 +export LDFLAGS="${LDFLAGS} -L/usr/lib64" %endif %if %{mysql} && %{x86_64} -export LDFLAGS=-L/usr/lib64/mysql +export LDFLAGS="${LDFLAGS} -L/usr/lib64/mysql" %endif +# this MAY be necessary for python support - waiting for feedback to enable +#%if %{python} && %{x86_64} +#export LDFLAGS="${LDFLAGS} -L/usr/lib64/python-%{pyver}" +#%endif %configure \ --prefix=/usr \ @@ -811,6 +833,9 @@ make %endif %if %{wxconsole} --enable-wx-console \ +%endif +%if %{python} + --with-python \ %endif --with-working-dir=%{working_dir} \ --with-pid-dir=/var/run \ @@ -1504,6 +1529,9 @@ fi %endif %changelog +* Mon Jul 03 2006 D. Scott Barninger +- add python build support +- fix LDFLAGS declarations * Sun Jul 02 2006 D. Scott Barninger - add requires for standard compiler toolchain - move version and release tags up diff --git a/bacula/platforms/redhat/bacula.spec.in b/bacula/platforms/redhat/bacula.spec.in index 21cfd8cb0e..cb092ce1a1 100644 --- a/bacula/platforms/redhat/bacula.spec.in +++ b/bacula/platforms/redhat/bacula.spec.in @@ -5,7 +5,7 @@ # basic defines for every build %define _version @VERSION@ -%define _release 1 +%define _release 3 %define depkgs_version 25Jun06 %define _rescuever 1.8.6 %define docs_version @VERSION@ @@ -62,6 +62,8 @@ Packager: D. Scott Barninger %define storage_daemon_group disk %define user_file /etc/passwd %define group_file /etc/group + +# program locations %define useradd /usr/sbin/useradd %define groupadd /usr/sbin/groupadd %define usermod /usr/sbin/usermod @@ -195,10 +197,18 @@ Distribution: %{_dist} %define wxconsole 0 %{?build_wxconsole:%define wxconsole 1} +# should we turn on python support +%define python 0 +%{?build_python:%define python 1} + BuildRequires: gcc, gcc-c++, make, autoconf BuildRequires: atk-devel, ncurses-devel, pango-devel, perl BuildRequires: libstdc++-devel, libxml2-devel, zlib-devel BuildRequires: openssl-devel +%if %{python} +BuildRequires: python, python-devel +%{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')} +%endif %if %{gconsole} BuildRequires: pkgconfig %endif @@ -459,6 +469,10 @@ Requires: postgresql-server >= 7 %description postgresql %endif +%if %{python} +Requires: python >= %{pyver} +%endif + %{blurb} %{blurb2} @@ -515,6 +529,10 @@ Requires: glibc >= 2.4 Requires: libtermcap %endif +%if %{python} +Requires: python >= %{pyver} +%endif + %description client %{blurb} @@ -732,7 +750,7 @@ server packages. %build %if %{su9} || %{su10} -export LDFLAGS="-L/usr/lib/termcap" +export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap" %endif cwd=${PWD} @@ -768,11 +786,15 @@ patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch # 64 bit lib location hacks %if %{x86_64} -export LDFLAGS=-L/usr/lib64 +export LDFLAGS="${LDFLAGS} -L/usr/lib64" %endif %if %{mysql} && %{x86_64} -export LDFLAGS=-L/usr/lib64/mysql +export LDFLAGS="${LDFLAGS} -L/usr/lib64/mysql" %endif +# this MAY be necessary for python support - waiting for feedback to enable +#%if %{python} && %{x86_64} +#export LDFLAGS="${LDFLAGS} -L/usr/lib64/python-%{pyver}" +#%endif %configure \ --prefix=/usr \ @@ -811,6 +833,9 @@ make %endif %if %{wxconsole} --enable-wx-console \ +%endif +%if %{python} + --with-python \ %endif --with-working-dir=%{working_dir} \ --with-pid-dir=/var/run \ @@ -1504,6 +1529,9 @@ fi %endif %changelog +* Mon Jul 03 2006 D. Scott Barninger +- add python build support +- fix LDFLAGS declarations * Sun Jul 02 2006 D. Scott Barninger - add requires for standard compiler toolchain - move version and release tags up diff --git a/bacula/platforms/suse/bacula.spec.in b/bacula/platforms/suse/bacula.spec.in index 21cfd8cb0e..cb092ce1a1 100644 --- a/bacula/platforms/suse/bacula.spec.in +++ b/bacula/platforms/suse/bacula.spec.in @@ -5,7 +5,7 @@ # basic defines for every build %define _version @VERSION@ -%define _release 1 +%define _release 3 %define depkgs_version 25Jun06 %define _rescuever 1.8.6 %define docs_version @VERSION@ @@ -62,6 +62,8 @@ Packager: D. Scott Barninger %define storage_daemon_group disk %define user_file /etc/passwd %define group_file /etc/group + +# program locations %define useradd /usr/sbin/useradd %define groupadd /usr/sbin/groupadd %define usermod /usr/sbin/usermod @@ -195,10 +197,18 @@ Distribution: %{_dist} %define wxconsole 0 %{?build_wxconsole:%define wxconsole 1} +# should we turn on python support +%define python 0 +%{?build_python:%define python 1} + BuildRequires: gcc, gcc-c++, make, autoconf BuildRequires: atk-devel, ncurses-devel, pango-devel, perl BuildRequires: libstdc++-devel, libxml2-devel, zlib-devel BuildRequires: openssl-devel +%if %{python} +BuildRequires: python, python-devel +%{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')} +%endif %if %{gconsole} BuildRequires: pkgconfig %endif @@ -459,6 +469,10 @@ Requires: postgresql-server >= 7 %description postgresql %endif +%if %{python} +Requires: python >= %{pyver} +%endif + %{blurb} %{blurb2} @@ -515,6 +529,10 @@ Requires: glibc >= 2.4 Requires: libtermcap %endif +%if %{python} +Requires: python >= %{pyver} +%endif + %description client %{blurb} @@ -732,7 +750,7 @@ server packages. %build %if %{su9} || %{su10} -export LDFLAGS="-L/usr/lib/termcap" +export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap" %endif cwd=${PWD} @@ -768,11 +786,15 @@ patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch # 64 bit lib location hacks %if %{x86_64} -export LDFLAGS=-L/usr/lib64 +export LDFLAGS="${LDFLAGS} -L/usr/lib64" %endif %if %{mysql} && %{x86_64} -export LDFLAGS=-L/usr/lib64/mysql +export LDFLAGS="${LDFLAGS} -L/usr/lib64/mysql" %endif +# this MAY be necessary for python support - waiting for feedback to enable +#%if %{python} && %{x86_64} +#export LDFLAGS="${LDFLAGS} -L/usr/lib64/python-%{pyver}" +#%endif %configure \ --prefix=/usr \ @@ -811,6 +833,9 @@ make %endif %if %{wxconsole} --enable-wx-console \ +%endif +%if %{python} + --with-python \ %endif --with-working-dir=%{working_dir} \ --with-pid-dir=/var/run \ @@ -1504,6 +1529,9 @@ fi %endif %changelog +* Mon Jul 03 2006 D. Scott Barninger +- add python build support +- fix LDFLAGS declarations * Sun Jul 02 2006 D. Scott Barninger - add requires for standard compiler toolchain - move version and release tags up