awips2/rpms/python.site-packages/Installer.cherrypy/component.spec

74 lines
1.6 KiB
RPMSpec
Raw Normal View History

# 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/*