Add files for fm-common deb packaging

Add control, rules and install files to generate fm-common deb
following StarlingX/MultiOS/Debian Wiki.

Change-Id: Ic86a610aeef02a849faaec985579862e5b317db7
Story: 2004792
Task: 33569
Signed-off-by: Marcela Rosales <marcela.a.rosales.jimenez@intel.com>
This commit is contained in:
Marcela Rosales 2019-06-03 10:52:12 -05:00
parent 41b8202508
commit ef43979d39
6 changed files with 73 additions and 0 deletions

33
fm-common/debian/control Normal file
View File

@ -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.

View File

@ -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

View File

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

View File

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

View File

@ -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

25
fm-common/debian/rules Normal file
View File

@ -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: