Merge "Add files for fm-common deb packaging"

changes/70/663070/4
Zuul 4 years ago committed by Gerrit Code Review
commit 5e84b8a614
  1. 33
      fm-common/debian/control
  2. 7
      fm-common/debian/fm-common-dev.install
  3. 1
      fm-common/debian/fm-common-doc.install
  4. 1
      fm-common/debian/fm-common-wheels.install
  5. 6
      fm-common/debian/fm-common.install
  6. 25
      fm-common/debian/rules

@ -0,0 +1,33 @@
Source: fm-common
Priority: extra
Maintainer: Marcela Rosales <marcela.a.rosales.jimenez@intel.com>
Build-Depends: python-setuptools,
python-all,
debhelper,
dh-python,
python-pip,
python-wheel,
python2.7-dev,
libpq-dev,
uuid-dev
Standards-Version: 3.9.6
Package: fm-common
Architecture: amd64
Depends: libpq-dev,
uuid-dev,
python-dev
Description: fm-common.
Package: fm-common-dev
Architecture: amd64
Depends: fm-common
Description: StarlingX Fault Management Client Library that provides APIs for applications to raise/clear/update active alarms. This package contains symbolic links, header files, and related items necessary for software development.
Package: fm-common-doc
Architecture: amd64
Description: Contains fmAlarm.h which is to be used by fm-doc package to validate the Alarms & Logs Doc Yaml file.
Package: fm-common-wheels
Architecture: amd64
Description: Contains python wheels for fm-common.

@ -0,0 +1,7 @@
usr/include/fmAPI.h usr/include
usr/include/fmAlarm.h usr/include
usr/include/fmConfig.h usr/include
usr/include/fmDbAPI.h usr/include
usr/include/fmLog.h usr/include
usr/include/fmThread.h usr/include
usr/lib/libfmcommon.so usr/lib

@ -0,0 +1 @@
opt/deploy/cgcs_doc/fmAlarm.h opt/deploy/cgcs_doc

@ -0,0 +1 @@
wheels/fm_core-1.0-cp27-cp27mu-linux_x86_64.whl wheels

@ -0,0 +1,6 @@
usr/lib/libfmcommon.so.1 usr/lib
usr/lib/libfmcommon.so.1.0 usr/lib
usr/lib/python2.7/site-packages/fm_core-1.0-py2.7.egg-info usr/lib/python2.7/site-packages
usr/lib/python2.7/site-packages/fm_core.so usr/lib/python2.7/site-packages
usr/bin/fmClientCli usr/bin
usr/bin/fm_db_sync_event_suppression.py usr/bin

@ -0,0 +1,25 @@
#!/usr/bin/make -f
export MAJOR=1
export MINOR=0
export ROOT=debian/tmp
%:
dh $@
override_dh_auto_install:
make DESTDIR=${ROOT} \
BINDIR=/usr/bin \
LIBDIR=/usr/lib \
INCDIR=/usr/include \
CGCS_DOC_DEPLOY=/opt/deploy/cgcs_doc \
MAJOR=${MAJOR} MINOR=${MINOR} install
python setup.py build
python setup.py bdist_wheel
python setup.py install --root ${ROOT} --install-data=/usr/share --prefix=/usr
mkdir -p ${ROOT}/wheels/
install -m 644 dist/*.whl ${ROOT}/wheels/
override_dh_installdocs:
override_dh_installchangelogs:
Loading…
Cancel
Save