Issue #2163 - convert the few remaining python rpms for 14.1.1; remove 13.6 feature modifications
Former-commit-id:1adf764747
[formerly 4503735d3a05071878683f4a523d0dbd37e47ea3] Former-commit-id:79e88c19aa
This commit is contained in:
parent
4670dcb9a7
commit
aa8eb47b95
5 changed files with 59 additions and 50 deletions
|
@ -89,13 +89,6 @@
|
|||
install-size="0"
|
||||
version="0.0.0"/>
|
||||
|
||||
<plugin
|
||||
id="org.apache.commons.logging"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"
|
||||
unpack="false"/>
|
||||
|
||||
<plugin
|
||||
id="org.apache.ws.security"
|
||||
download-size="0"
|
||||
|
|
|
@ -123,13 +123,13 @@ if [ "${1}" = "-64bit" ]; then
|
|||
fi
|
||||
|
||||
if [ "${1}" = "-rh6" ]; then
|
||||
buildRPM "awips2-notification"
|
||||
buildRPM "awips2-common-base"
|
||||
buildEDEX
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
buildRPM "awips2-hydroapps-shared"
|
||||
buildRPM "awips2-notification"
|
||||
buildJava
|
||||
buildRPM "awips2-python"
|
||||
buildRPM "awips2-python-cherrypy"
|
||||
|
@ -150,6 +150,9 @@ if [ "${1}" = "-rh6" ]; then
|
|||
buildRPM "awips2-python-tpg"
|
||||
buildRPM "awips2-python-ufpy"
|
||||
buildRPM "awips2-python-dynamicserialize"
|
||||
buildRPM "awips2-python-pycairo"
|
||||
buildRPM "awips2-python-pygtk"
|
||||
buildRPM "awips2-python-shapely"
|
||||
buildRPM "awips2-ant"
|
||||
buildRPM "awips2-tools"
|
||||
buildRPM "awips2-postgres"
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
%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 _python_pkgs_dir "%{_baseline_workspace}/pythonPackages"
|
||||
%define _python_build_loc %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
#
|
||||
# AWIPS II Python pycairo Spec File
|
||||
|
@ -36,29 +37,30 @@ fi
|
|||
|
||||
rm -rf %{_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_TAR="pycairo-1.2.2.tar.gz"
|
||||
|
||||
cp -v ${PYCAIRO_SRC_DIR}/${PYCAIRO_TAR} \
|
||||
%{_build_root}/build-python
|
||||
%{_python_build_loc}
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
pushd . > /dev/null
|
||||
cd %{_build_root}/build-python
|
||||
cd %{_python_build_loc}
|
||||
tar -xvf ${PYCAIRO_TAR}
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
popd > /dev/null
|
||||
|
||||
%build
|
||||
pushd . > /dev/null
|
||||
cd %{_build_root}/build-python/pycairo-1.2.2
|
||||
./configure --prefix=%{_build_root}/awips2/python
|
||||
cd pycairo-1.2.2
|
||||
./configure --prefix=/awips2/python
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
@ -70,16 +72,15 @@ popd > /dev/null
|
|||
|
||||
%install
|
||||
pushd . > /dev/null
|
||||
cd %{_build_root}/build-python/pycairo-1.2.2
|
||||
make install
|
||||
cd %{_python_build_loc}/pycairo-1.2.2
|
||||
make install prefix=%{_build_root}/awips2/python
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
popd > /dev/null
|
||||
|
||||
rm -rf %{_build_root}/build-python
|
||||
|
||||
%clean
|
||||
rm -rf %{_python_build_loc}
|
||||
rm -rf ${RPM_BUILD_ROOT}
|
||||
|
||||
%files
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
%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 _python_pkgs_dir "%{_baseline_workspace}/pythonPackages"
|
||||
%define _python_build_loc %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
#
|
||||
# AWIPS II Python pygtk Spec File
|
||||
|
@ -37,29 +38,30 @@ fi
|
|||
|
||||
rm -rf %{_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_TAR="pygtk-2.8.6.tar.gz"
|
||||
|
||||
cp -v ${PYGTK_SRC_DIR}/${PYGTK_TAR} \
|
||||
%{_build_root}/build-python
|
||||
%{_python_build_loc}
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
pushd . > /dev/null
|
||||
cd %{_build_root}/build-python
|
||||
cd %{_python_build_loc}
|
||||
tar -xvf ${PYGTK_TAR}
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
popd > /dev/null
|
||||
|
||||
%build
|
||||
pushd . > /dev/null
|
||||
cd %{_build_root}/build-python/pygtk-2.8.6
|
||||
./configure --prefix=%{_build_root}/awips2/python
|
||||
cd pygtk-2.8.6
|
||||
./configure --prefix=/awips2/python
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
@ -71,17 +73,16 @@ popd > /dev/null
|
|||
|
||||
%install
|
||||
pushd . > /dev/null
|
||||
cd %{_build_root}/build-python/pygtk-2.8.6
|
||||
make install
|
||||
cd %{_python_build_loc}/pygtk-2.8.6
|
||||
make install prefix=%{_build_root}/awips2/python
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
popd > /dev/null
|
||||
|
||||
rm -rf %{_build_root}/build-python
|
||||
|
||||
%clean
|
||||
rm -rf ${RPM_BUILD_ROOT}
|
||||
rm -rf %{_python_build_loc}
|
||||
|
||||
%files
|
||||
%defattr(644,awips,fxalpha,755)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
%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 _python_pkgs_dir "%{_baseline_workspace}/pythonPackages"
|
||||
%define _python_build_loc %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
#
|
||||
# AWIPS II Python shapely Spec File
|
||||
|
@ -44,7 +45,14 @@ fi
|
|||
|
||||
rm -rf %{_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
|
||||
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"
|
||||
INSTALL_SETUPTOOLS_SH="${PYTHON_RPM_DIR}/deploy.builder/install-setuptools.sh"
|
||||
|
@ -56,12 +64,13 @@ if [ $? -ne 0 ]; then
|
|||
fi
|
||||
|
||||
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
|
||||
|
||||
%install
|
||||
_python_staging=%{_python_build_loc}/awips2/python
|
||||
|
||||
mkdir -p %{_python_staging}
|
||||
# build geos
|
||||
__GEOS_TAR=geos-3.3.6.tar.bz2
|
||||
__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"
|
||||
|
||||
cp ${INSTALLER_SHAPELY_DIR}/${__GEOS_TAR} \
|
||||
%{_build_root}/build-python
|
||||
%{_python_build_loc}
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd %{_build_root}/build-python
|
||||
cd %{_python_build_loc}
|
||||
tar -xvf ${__GEOS_TAR}
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
cd ${__GEOS_UNTARRED}
|
||||
./configure --prefix=%{_build_root}/awips2/python
|
||||
./configure --prefix=/awips2/python
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
@ -88,7 +97,7 @@ make
|
|||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
make install
|
||||
make install prefix=${_python_staging}
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
@ -100,11 +109,11 @@ __SHAPELY_TAR=Shapely-1.2.16.tar.gz
|
|||
__SHAPELY_UNTARRED=Shapely-1.2.16
|
||||
|
||||
cp %{_python_pkgs_dir}/${__SHAPELY}/${__SHAPELY_TAR} \
|
||||
%{_build_root}/build-python
|
||||
%{_python_build_loc}
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
cd %{_build_root}/build-python
|
||||
cd %{_python_build_loc}
|
||||
|
||||
tar -xvf ${__SHAPELY_TAR}
|
||||
if [ $? -ne 0 ]; then
|
||||
|
@ -120,21 +129,23 @@ if [ $? -ne 0 ]; then
|
|||
exit 1
|
||||
fi
|
||||
/awips2/python/bin/python setup.py install \
|
||||
--root=%{_build_root} \
|
||||
--root=%{_python_build_loc} \
|
||||
--prefix=/awips2/python
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rm -rf %{_build_root}/build-python
|
||||
mkdir -p %{_build_root}/awips2
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
cp -rf %{_python_build_loc}/awips2/* %{_build_root}/awips2
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
%install
|
||||
|
||||
%clean
|
||||
rm -rf %{_build_root}
|
||||
rm -rf %{_python_build_loc}
|
||||
|
||||
%files
|
||||
%defattr(644,awips,fxalpha,755)
|
||||
|
|
Loading…
Add table
Reference in a new issue