# 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@
%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
%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
%description postgresql
%endif
+%if %{python}
+Requires: python >= %{pyver}
+%endif
+
%{blurb}
%{blurb2}
Requires: libtermcap
%endif
+%if %{python}
+Requires: python >= %{pyver}
+%endif
+
%description client
%{blurb}
%build
%if %{su9} || %{su10}
-export LDFLAGS="-L/usr/lib/termcap"
+export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
%endif
cwd=${PWD}
# 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 \
%endif
%if %{wxconsole}
--enable-wx-console \
+%endif
+%if %{python}
+ --with-python \
%endif
--with-working-dir=%{working_dir} \
--with-pid-dir=/var/run \
%endif
%changelog
+* Mon Jul 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
+- add python build support
+- fix LDFLAGS declarations
* Sun Jul 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
- add requires for standard compiler toolchain
- move version and release tags up
# 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@
%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
%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
%description postgresql
%endif
+%if %{python}
+Requires: python >= %{pyver}
+%endif
+
%{blurb}
%{blurb2}
Requires: libtermcap
%endif
+%if %{python}
+Requires: python >= %{pyver}
+%endif
+
%description client
%{blurb}
%build
%if %{su9} || %{su10}
-export LDFLAGS="-L/usr/lib/termcap"
+export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
%endif
cwd=${PWD}
# 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 \
%endif
%if %{wxconsole}
--enable-wx-console \
+%endif
+%if %{python}
+ --with-python \
%endif
--with-working-dir=%{working_dir} \
--with-pid-dir=/var/run \
%endif
%changelog
+* Mon Jul 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
+- add python build support
+- fix LDFLAGS declarations
* Sun Jul 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
- add requires for standard compiler toolchain
- move version and release tags up
# 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@
%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
%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
%description postgresql
%endif
+%if %{python}
+Requires: python >= %{pyver}
+%endif
+
%{blurb}
%{blurb2}
Requires: libtermcap
%endif
+%if %{python}
+Requires: python >= %{pyver}
+%endif
+
%description client
%{blurb}
%build
%if %{su9} || %{su10}
-export LDFLAGS="-L/usr/lib/termcap"
+export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
%endif
cwd=${PWD}
# 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 \
%endif
%if %{wxconsole}
--enable-wx-console \
+%endif
+%if %{python}
+ --with-python \
%endif
--with-working-dir=%{working_dir} \
--with-pid-dir=/var/run \
%endif
%changelog
+* Mon Jul 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
+- add python build support
+- fix LDFLAGS declarations
* Sun Jul 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
- add requires for standard compiler toolchain
- move version and release tags up