Issue #2163 - convert the few remaining python rpms for 14.1.1; remove 13.6 feature modifications

Former-commit-id: 6578b9a7de [formerly 1adf764747] [formerly 6578b9a7de [formerly 1adf764747] [formerly 79e88c19aa [formerly 4503735d3a05071878683f4a523d0dbd37e47ea3]]]
Former-commit-id: 79e88c19aa
Former-commit-id: 2a35fb001d [formerly aa8eb47b95]
Former-commit-id: 8dad5af165
This commit is contained in:
Bryan Kowal 2013-09-06 12:30:01 -05:00
parent c9a29b19ff
commit 39bd67265e
5 changed files with 59 additions and 50 deletions

View file

@ -89,13 +89,6 @@
install-size="0" install-size="0"
version="0.0.0"/> version="0.0.0"/>
<plugin
id="org.apache.commons.logging"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin <plugin
id="org.apache.ws.security" id="org.apache.ws.security"
download-size="0" download-size="0"

View file

@ -123,13 +123,13 @@ if [ "${1}" = "-64bit" ]; then
fi fi
if [ "${1}" = "-rh6" ]; then if [ "${1}" = "-rh6" ]; then
buildRPM "awips2-notification"
buildRPM "awips2-common-base" buildRPM "awips2-common-base"
buildEDEX buildEDEX
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
buildRPM "awips2-hydroapps-shared" buildRPM "awips2-hydroapps-shared"
buildRPM "awips2-notification"
buildJava buildJava
buildRPM "awips2-python" buildRPM "awips2-python"
buildRPM "awips2-python-cherrypy" buildRPM "awips2-python-cherrypy"
@ -150,6 +150,9 @@ if [ "${1}" = "-rh6" ]; then
buildRPM "awips2-python-tpg" buildRPM "awips2-python-tpg"
buildRPM "awips2-python-ufpy" buildRPM "awips2-python-ufpy"
buildRPM "awips2-python-dynamicserialize" buildRPM "awips2-python-dynamicserialize"
buildRPM "awips2-python-pycairo"
buildRPM "awips2-python-pygtk"
buildRPM "awips2-python-shapely"
buildRPM "awips2-ant" buildRPM "awips2-ant"
buildRPM "awips2-tools" buildRPM "awips2-tools"
buildRPM "awips2-postgres" buildRPM "awips2-postgres"

View file

@ -1,6 +1,7 @@
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') %global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
%define _build_arch %(uname -i) %define _build_arch %(uname -i)
%define _python_pkgs_dir "%{_baseline_workspace}/pythonPackages" %define _python_pkgs_dir "%{_baseline_workspace}/pythonPackages"
%define _python_build_loc %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# #
# AWIPS II Python pycairo Spec File # AWIPS II Python pycairo Spec File
@ -36,29 +37,30 @@ fi
rm -rf %{_build_root} rm -rf %{_build_root}
mkdir -p %{_build_root} mkdir -p %{_build_root}
mkdir -p %{_build_root}/build-python if [ -d %{_python_build_loc} ]; then
rm -rf %{_python_build_loc}
fi
mkdir -p %{_python_build_loc}
%build
PYCAIRO_SRC_DIR="%{_python_pkgs_dir}/pycairo" PYCAIRO_SRC_DIR="%{_python_pkgs_dir}/pycairo"
PYCAIRO_TAR="pycairo-1.2.2.tar.gz" PYCAIRO_TAR="pycairo-1.2.2.tar.gz"
cp -v ${PYCAIRO_SRC_DIR}/${PYCAIRO_TAR} \ cp -v ${PYCAIRO_SRC_DIR}/${PYCAIRO_TAR} \
%{_build_root}/build-python %{_python_build_loc}
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
pushd . > /dev/null pushd . > /dev/null
cd %{_build_root}/build-python cd %{_python_build_loc}
tar -xvf ${PYCAIRO_TAR} tar -xvf ${PYCAIRO_TAR}
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
popd > /dev/null
%build cd pycairo-1.2.2
pushd . > /dev/null ./configure --prefix=/awips2/python
cd %{_build_root}/build-python/pycairo-1.2.2
./configure --prefix=%{_build_root}/awips2/python
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
@ -70,16 +72,15 @@ popd > /dev/null
%install %install
pushd . > /dev/null pushd . > /dev/null
cd %{_build_root}/build-python/pycairo-1.2.2 cd %{_python_build_loc}/pycairo-1.2.2
make install make install prefix=%{_build_root}/awips2/python
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
popd > /dev/null popd > /dev/null
rm -rf %{_build_root}/build-python
%clean %clean
rm -rf %{_python_build_loc}
rm -rf ${RPM_BUILD_ROOT} rm -rf ${RPM_BUILD_ROOT}
%files %files
@ -87,4 +88,4 @@ rm -rf ${RPM_BUILD_ROOT}
%dir /awips2/python/lib %dir /awips2/python/lib
/awips2/python/lib/* /awips2/python/lib/*
%dir /awips2/python/include %dir /awips2/python/include
/awips2/python/include/* /awips2/python/include/*

View file

@ -1,6 +1,7 @@
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') %global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
%define _build_arch %(uname -i) %define _build_arch %(uname -i)
%define _python_pkgs_dir "%{_baseline_workspace}/pythonPackages" %define _python_pkgs_dir "%{_baseline_workspace}/pythonPackages"
%define _python_build_loc %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# #
# AWIPS II Python pygtk Spec File # AWIPS II Python pygtk Spec File
@ -37,29 +38,30 @@ fi
rm -rf %{_build_root} rm -rf %{_build_root}
mkdir -p %{_build_root} mkdir -p %{_build_root}
mkdir -p %{_build_root}/build-python if [ -d %{_python_build_loc} ]; then
rm -rf %{_python_build_loc}
fi
mkdir -p %{_python_build_loc}
%build
PYGTK_SRC_DIR="%{_python_pkgs_dir}/pygtk" PYGTK_SRC_DIR="%{_python_pkgs_dir}/pygtk"
PYGTK_TAR="pygtk-2.8.6.tar.gz" PYGTK_TAR="pygtk-2.8.6.tar.gz"
cp -v ${PYGTK_SRC_DIR}/${PYGTK_TAR} \ cp -v ${PYGTK_SRC_DIR}/${PYGTK_TAR} \
%{_build_root}/build-python %{_python_build_loc}
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
pushd . > /dev/null pushd . > /dev/null
cd %{_build_root}/build-python cd %{_python_build_loc}
tar -xvf ${PYGTK_TAR} tar -xvf ${PYGTK_TAR}
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
popd > /dev/null
%build cd pygtk-2.8.6
pushd . > /dev/null ./configure --prefix=/awips2/python
cd %{_build_root}/build-python/pygtk-2.8.6
./configure --prefix=%{_build_root}/awips2/python
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
@ -71,17 +73,16 @@ popd > /dev/null
%install %install
pushd . > /dev/null pushd . > /dev/null
cd %{_build_root}/build-python/pygtk-2.8.6 cd %{_python_build_loc}/pygtk-2.8.6
make install make install prefix=%{_build_root}/awips2/python
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
popd > /dev/null popd > /dev/null
rm -rf %{_build_root}/build-python
%clean %clean
rm -rf ${RPM_BUILD_ROOT} rm -rf ${RPM_BUILD_ROOT}
rm -rf %{_python_build_loc}
%files %files
%defattr(644,awips,fxalpha,755) %defattr(644,awips,fxalpha,755)
@ -93,4 +94,4 @@ rm -rf ${RPM_BUILD_ROOT}
/awips2/python/share/* /awips2/python/share/*
%defattr(755,awips,fxalpha,755) %defattr(755,awips,fxalpha,755)
%dir /awips2/python/bin %dir /awips2/python/bin
/awips2/python/bin/* /awips2/python/bin/*

View file

@ -1,6 +1,7 @@
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') %global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
%define _build_arch %(uname -i) %define _build_arch %(uname -i)
%define _python_pkgs_dir "%{_baseline_workspace}/pythonPackages" %define _python_pkgs_dir "%{_baseline_workspace}/pythonPackages"
%define _python_build_loc %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# #
# AWIPS II Python shapely Spec File # AWIPS II Python shapely Spec File
@ -44,7 +45,14 @@ fi
rm -rf %{_build_root} rm -rf %{_build_root}
mkdir -p %{_build_root} mkdir -p %{_build_root}
if [ -d %{_build_root}/build-python ]; then
rm -rf %{_build_root}/build-python
fi
mkdir -p %{_build_root}/build-python mkdir -p %{_build_root}/build-python
if [ -d %{_python_build_loc} ]; then
rm -rf %{_python_build_loc}
fi
mkdir -p %{_python_build_loc}
PYTHON_RPM_DIR="%{_baseline_workspace}/rpms/python.site-packages" PYTHON_RPM_DIR="%{_baseline_workspace}/rpms/python.site-packages"
INSTALL_SETUPTOOLS_SH="${PYTHON_RPM_DIR}/deploy.builder/install-setuptools.sh" INSTALL_SETUPTOOLS_SH="${PYTHON_RPM_DIR}/deploy.builder/install-setuptools.sh"
@ -56,12 +64,13 @@ if [ $? -ne 0 ]; then
fi fi
rm -rf %{_build_root}/build-python rm -rf %{_build_root}/build-python
mkdir -p %{_build_root}/build-python
mkdir -p %{_build_root}/awips2/python/lib
mkdir -p %{_build_root}/awips2/python/bin
mkdir -p %{_build_root}/awips2/python/include
%build %build
%install
_python_staging=%{_python_build_loc}/awips2/python
mkdir -p %{_python_staging}
# build geos # build geos
__GEOS_TAR=geos-3.3.6.tar.bz2 __GEOS_TAR=geos-3.3.6.tar.bz2
__GEOS_UNTARRED=geos-3.3.6 __GEOS_UNTARRED=geos-3.3.6
@ -69,18 +78,18 @@ PYTHON_RPM_DIR="%{_baseline_workspace}/rpms/python.site-packages"
INSTALLER_SHAPELY_DIR="${PYTHON_RPM_DIR}/Installer.shapely" INSTALLER_SHAPELY_DIR="${PYTHON_RPM_DIR}/Installer.shapely"
cp ${INSTALLER_SHAPELY_DIR}/${__GEOS_TAR} \ cp ${INSTALLER_SHAPELY_DIR}/${__GEOS_TAR} \
%{_build_root}/build-python %{_python_build_loc}
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
cd %{_build_root}/build-python cd %{_python_build_loc}
tar -xvf ${__GEOS_TAR} tar -xvf ${__GEOS_TAR}
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
cd ${__GEOS_UNTARRED} cd ${__GEOS_UNTARRED}
./configure --prefix=%{_build_root}/awips2/python ./configure --prefix=/awips2/python
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
@ -88,7 +97,7 @@ make
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
make install make install prefix=${_python_staging}
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
@ -100,11 +109,11 @@ __SHAPELY_TAR=Shapely-1.2.16.tar.gz
__SHAPELY_UNTARRED=Shapely-1.2.16 __SHAPELY_UNTARRED=Shapely-1.2.16
cp %{_python_pkgs_dir}/${__SHAPELY}/${__SHAPELY_TAR} \ cp %{_python_pkgs_dir}/${__SHAPELY}/${__SHAPELY_TAR} \
%{_build_root}/build-python %{_python_build_loc}
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
cd %{_build_root}/build-python cd %{_python_build_loc}
tar -xvf ${__SHAPELY_TAR} tar -xvf ${__SHAPELY_TAR}
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
@ -120,21 +129,23 @@ if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
/awips2/python/bin/python setup.py install \ /awips2/python/bin/python setup.py install \
--root=%{_build_root} \ --root=%{_python_build_loc} \
--prefix=/awips2/python --prefix=/awips2/python
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
mkdir -p %{_build_root}/awips2
rm -rf %{_build_root}/build-python if [ $? -ne 0 ]; then
exit 1
fi
cp -rf %{_python_build_loc}/awips2/* %{_build_root}/awips2
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
%install
%clean %clean
rm -rf %{_build_root} rm -rf %{_build_root}
rm -rf %{_python_build_loc}
%files %files
%defattr(644,awips,fxalpha,755) %defattr(644,awips,fxalpha,755)
@ -143,4 +154,4 @@ rm -rf %{_build_root}
%dir /awips2/python/lib %dir /awips2/python/lib
/awips2/python/lib/* /awips2/python/lib/*
%dir /awips2/python/include %dir /awips2/python/include
/awips2/python/include/* /awips2/python/include/*