awips2/rpms/python.site-packages/Installer.cherrypy/component.spec
Steve Harris 2d928d328e 12.9.1-5 baseline
Former-commit-id: a1d931fd44 [formerly 61f269f54c] [formerly a1d931fd44 [formerly 61f269f54c] [formerly f2fac39428 [formerly d85b989f77196d20eb2d2a21cf4daa13d50474ae]]]
Former-commit-id: f2fac39428
Former-commit-id: 7fb0b17bd5 [formerly 72824561cb]
Former-commit-id: 9b5c2094ed
2012-08-21 15:27:03 -05:00

74 lines
No EOL
1.6 KiB
RPMSpec
Executable file

# Turn off the brp-python-bytecompile script
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
%define _build_arch %(uname -i)
#
# AWIPS II Python cherrypy Site-Package Spec File
#
Name: awips2-python-cherrypy
Summary: AWIPS II Python cherrypy Site-Package
Version: 3.1.2
Release: 3
Group: AWIPSII
BuildRoot: %{_build_root}
BuildArch: %{_build_arch}
URL: N/A
License: N/A
Distribution: N/A
Vendor: Raytheon
Packager: Bryan Kowal
AutoReq: no
requires: awips2-python
provides: awips2-python-cherrypy
%define _docdir python.cherrypy
%description
AWIPS II Python cherrypy Site-Package - Installs the AWIPS II Python
cherrypy Site-Package in the Python installation.
%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
mkdir -p %{_build_root}
if [ $? -ne 0 ]; then
exit 1
fi
%build
SITE_PACKAGE_SRC_DIR="pythonPackages/cherrypy"
cd %{_baseline_workspace}/${SITE_PACKAGE_SRC_DIR}
/awips2/python/bin/python setup.py build
%install
SITE_PACKAGE_SRC_DIR="pythonPackages/cherrypy"
cd %{_baseline_workspace}/${SITE_PACKAGE_SRC_DIR}
/awips2/python/bin/python setup.py install --root=%{_build_root} \
--prefix=/awips2/python
%pre
# Fix To Allow Upgrades
if [ -d /usr/share/doc/awips2/%{_docdir} ]; then
rm -rf /usr/share/doc/awips2/%{_docdir}
fi
%post
%preun
%postun
%files
%defattr(644,awips,fxalpha,755)
/awips2/python/lib/python2.7/site-packages/*
%defattr(755,awips,fxalpha,755)
/awips2/python/bin/*