diff --git a/fm-common/debian/control b/fm-common/debian/control new file mode 100644 index 00000000..f28a7982 --- /dev/null +++ b/fm-common/debian/control @@ -0,0 +1,33 @@ +Source: fm-common +Priority: extra +Maintainer: Marcela Rosales +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. diff --git a/fm-common/debian/fm-common-dev.install b/fm-common/debian/fm-common-dev.install new file mode 100644 index 00000000..6a96b0c8 --- /dev/null +++ b/fm-common/debian/fm-common-dev.install @@ -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 diff --git a/fm-common/debian/fm-common-doc.install b/fm-common/debian/fm-common-doc.install new file mode 100644 index 00000000..fa81edd6 --- /dev/null +++ b/fm-common/debian/fm-common-doc.install @@ -0,0 +1 @@ +opt/deploy/cgcs_doc/fmAlarm.h opt/deploy/cgcs_doc diff --git a/fm-common/debian/fm-common-wheels.install b/fm-common/debian/fm-common-wheels.install new file mode 100644 index 00000000..51ba6743 --- /dev/null +++ b/fm-common/debian/fm-common-wheels.install @@ -0,0 +1 @@ +wheels/fm_core-1.0-cp27-cp27mu-linux_x86_64.whl wheels diff --git a/fm-common/debian/fm-common.install b/fm-common/debian/fm-common.install new file mode 100644 index 00000000..60154612 --- /dev/null +++ b/fm-common/debian/fm-common.install @@ -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 diff --git a/fm-common/debian/rules b/fm-common/debian/rules new file mode 100644 index 00000000..6368db1a --- /dev/null +++ b/fm-common/debian/rules @@ -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: