Omaha #5138 Removed Python package Pygtk.
Former-commit-id: f7a8bb0a0107caf97eb7c8302ed620349a5cd0c3
This commit is contained in:
parent
200d0767ef
commit
2fe56cb474
4 changed files with 0 additions and 106 deletions
Binary file not shown.
|
@ -127,10 +127,6 @@ function lookupRPM()
|
|||
export RPM_SPECIFICATION="${python_site__dir}/Installer.werkzeug"
|
||||
return 0
|
||||
fi
|
||||
if [ "${1}" = "awips2-python-pygtk" ]; then
|
||||
export RPM_SPECIFICATION="${python_site__dir}/Installer.pygtk"
|
||||
return 0
|
||||
fi
|
||||
if [ "${1}" = "awips2-python-pycairo" ]; then
|
||||
export RPM_SPECIFICATION="${python_site__dir}/Installer.pycairo"
|
||||
return 0
|
||||
|
|
|
@ -148,7 +148,6 @@ if [ "${1}" = "-rh6" ]; then
|
|||
buildRPM "awips2-python-ufpy"
|
||||
buildRPM "awips2-python-dynamicserialize"
|
||||
buildRPM "awips2-python-pycairo"
|
||||
buildRPM "awips2-python-pygtk"
|
||||
buildRPM "awips2-python-shapely"
|
||||
buildRPM "awips2-python-jep"
|
||||
buildRPM "awips2-python-dateutil"
|
||||
|
@ -218,7 +217,6 @@ if [ "${1}" = "-ade" ]; then
|
|||
buildRPM "awips2-python-tpg"
|
||||
buildRPM "awips2-python-ufpy"
|
||||
buildRPM "awips2-python-werkzeug"
|
||||
buildRPM "awips2-python-pygtk"
|
||||
buildRPM "awips2-python-pycairo"
|
||||
buildRPM "awips2-python-shapely"
|
||||
buildRPM "awips2-python-jep"
|
||||
|
|
|
@ -1,100 +0,0 @@
|
|||
%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)
|
||||
%define _installed_python %(if [ -f /awips2/python/bin/python ]; then /awips2/python/bin/python -c 'import sys; print(".".join(map(str, sys.version_info[:3])))'; else echo 0; fi)
|
||||
|
||||
#
|
||||
# AWIPS II Python pygtk Spec File
|
||||
#
|
||||
Name: awips2-python-pygtk
|
||||
Summary: AWIPS II Python pygtk Distribution
|
||||
Version: 2.8.6
|
||||
Release: 1%{?dist}
|
||||
Group: AWIPSII
|
||||
BuildRoot: %{_build_root}
|
||||
BuildArch: %{_build_arch}
|
||||
URL: N/A
|
||||
License: N/A
|
||||
Distribution: N/A
|
||||
Vendor: Raytheon
|
||||
|
||||
AutoReq: no
|
||||
Requires: awips2-python = %{_installed_python}
|
||||
Requires: awips2-python-pycairo
|
||||
Provides: awips2-python-pygtk = %{version}
|
||||
|
||||
BuildRequires: awips2-python
|
||||
BuildRequires: awips2-python-pycairo
|
||||
|
||||
%description
|
||||
AWIPS II Python pygtk Site-Package.
|
||||
|
||||
%prep
|
||||
# Verify That The User Has Specified A BuildRoot.
|
||||
if [ "%{_build_root}" = "" ]
|
||||
then
|
||||
echo "A Build Root has not been specified."
|
||||
echo "Unable To Continue ... Terminating"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rm -rf %{_build_root}
|
||||
mkdir -p %{_build_root}
|
||||
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} \
|
||||
%{_python_build_loc}
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
pushd . > /dev/null
|
||||
cd %{_python_build_loc}
|
||||
tar -xvf ${PYGTK_TAR}
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd pygtk-2.8.6
|
||||
./configure --prefix=/awips2/python
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
make
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
popd > /dev/null
|
||||
|
||||
%install
|
||||
pushd . > /dev/null
|
||||
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
|
||||
|
||||
%clean
|
||||
rm -rf ${RPM_BUILD_ROOT}
|
||||
rm -rf %{_python_build_loc}
|
||||
|
||||
%files
|
||||
%defattr(644,awips,fxalpha,755)
|
||||
%dir /awips2/python/lib
|
||||
/awips2/python/lib/*
|
||||
%dir /awips2/python/include
|
||||
/awips2/python/include/*
|
||||
%dir /awips2/python/share
|
||||
/awips2/python/share/*
|
||||
%defattr(755,awips,fxalpha,755)
|
||||
%dir /awips2/python/bin
|
||||
/awips2/python/bin/*
|
Loading…
Add table
Reference in a new issue