diff --git a/centos_build_layer.cfg b/centos_build_layer.cfg deleted file mode 100644 index c581999f..00000000 --- a/centos_build_layer.cfg +++ /dev/null @@ -1 +0,0 @@ -flock diff --git a/centos_iso_image.inc b/centos_iso_image.inc deleted file mode 100644 index 2991719e..00000000 --- a/centos_iso_image.inc +++ /dev/null @@ -1,21 +0,0 @@ -# List of packages to be included/installed in ISO -# If these have dependencies, they will be pulled in automatically -# - -# fm-api -fm-api - -# fm-common -fm-common - -# fm-mgr -fm-mgr - -# fm-doc -fm-doc - -# fm-rest-api -fm-rest-api - -# python-fmclient -python-fmclient diff --git a/centos_pkg_dirs b/centos_pkg_dirs deleted file mode 100644 index 2068b991..00000000 --- a/centos_pkg_dirs +++ /dev/null @@ -1,7 +0,0 @@ -fm-api -fm-common -fm-mgr -fm-doc -fm-rest-api -python-fmclient - diff --git a/centos_stable_docker_images.inc b/centos_stable_docker_images.inc deleted file mode 100644 index c131931b..00000000 --- a/centos_stable_docker_images.inc +++ /dev/null @@ -1 +0,0 @@ -fm-rest-api diff --git a/centos_stable_wheels.inc b/centos_stable_wheels.inc deleted file mode 100644 index 7e128758..00000000 --- a/centos_stable_wheels.inc +++ /dev/null @@ -1,4 +0,0 @@ -fm-api-wheels -fm-common-wheels -fm-rest-api-wheels -python-fmclient-wheels diff --git a/fm-api/centos/build_srpm.data b/fm-api/centos/build_srpm.data deleted file mode 100755 index 743c6aa7..00000000 --- a/fm-api/centos/build_srpm.data +++ /dev/null @@ -1,4 +0,0 @@ -SRC_DIR="source" -EXCLUDE_FILES_FROM_TAR="centos" - -TIS_PATCH_VER=PKG_GITREVCOUNT diff --git a/fm-api/centos/fm-api.spec b/fm-api/centos/fm-api.spec deleted file mode 100644 index 32136701..00000000 --- a/fm-api/centos/fm-api.spec +++ /dev/null @@ -1,79 +0,0 @@ -Summary: CGTS Platform Fault Management Python API Package -Name: fm-api -Version: 1.0 -Release: %{tis_patch_ver}%{?_tis_dist} -License: Apache-2.0 -Group: base -Packager: Wind River -URL: unknown -Source0: %{name}-%{version}.tar.gz - -%define debug_package %{nil} - -BuildRequires: python-setuptools -BuildRequires: python2-pip -BuildRequires: python2-wheel - -%description -CGTS platform Fault Management Client Library that provides APIs -for applications to raise/clear/update active alarms. - -%package -n fm-api-doc -Summary: fm-api deploy doc -Group: doc -Provides: fm-api-doc - -%description -n fm-api-doc -Contains contansts which is to be used by fm-doc package to validate -the Alarms & Logs Doc Yaml file - -%define pythonroot /usr/lib64/python2.7/site-packages -%define cgcs_doc_deploy_dir /opt/deploy/cgcs_doc - -%prep -%setup - -%build -%{__python} setup.py build -%py2_build_wheel - -%install -%{__python} setup.py install --root=$RPM_BUILD_ROOT \ - --install-lib=%{pythonroot} \ - --prefix=/usr \ - --install-data=/usr/share \ - --single-version-externally-managed -mkdir -p $RPM_BUILD_ROOT/wheels -install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/ - -CGCS_DOC_DEPLOY=$RPM_BUILD_ROOT/%{cgcs_doc_deploy_dir} -install -d $CGCS_DOC_DEPLOY -# install constants.py in CGCS_DOC_DEPLOY_DIR -# used by fm-doc package to validate the Alarms & Logs Doc Yaml file -install -m 644 fm_api/constants.py $CGCS_DOC_DEPLOY - -%clean -rm -rf $RPM_BUILD_ROOT - -# Note: RPM package name is fm-api but import package name is fm_api so can't -# use '%{name}'. -%files -%license LICENSE -%defattr(-,root,root,-) -%dir %{pythonroot}/fm_api -%{pythonroot}/fm_api/* -%dir %{pythonroot}/fm_api-%{version}.0-py2.7.egg-info -%{pythonroot}/fm_api-%{version}.0-py2.7.egg-info/* - -%files -n fm-api-doc -%defattr(-,root,root,-) -%{cgcs_doc_deploy_dir}/* - -%package wheels -Summary: %{name} wheels - -%description wheels -Contains python wheels for %{name} - -%files wheels -/wheels/* diff --git a/fm-api/opensuse/fm-api.changes b/fm-api/opensuse/fm-api.changes deleted file mode 100644 index 9392186e..00000000 --- a/fm-api/opensuse/fm-api.changes +++ /dev/null @@ -1,9 +0,0 @@ -------------------------------------------------------------------- -Mon Jun 10 22:44:40 UTC 2019 - sgw@linux.intel.com - -- Spec-cleaner and rpmlint cleanups - -------------------------------------------------------------------- -Thu May 23 18:44:35 UTC 2019 - sgw@bigsur.com - -- Initial Commit diff --git a/fm-api/opensuse/fm-api.rpmlintrc b/fm-api/opensuse/fm-api.rpmlintrc deleted file mode 100644 index adc59bf3..00000000 --- a/fm-api/opensuse/fm-api.rpmlintrc +++ /dev/null @@ -1 +0,0 @@ -setBadness('script-without-shebang', 2) diff --git a/fm-api/opensuse/fm-api.spec b/fm-api/opensuse/fm-api.spec deleted file mode 100644 index 63080f79..00000000 --- a/fm-api/opensuse/fm-api.spec +++ /dev/null @@ -1,66 +0,0 @@ -%define debug_package %{nil} -Name: fm-api -Version: 1.0.0 -Release: %{tis_patch_ver}%{?_tis_dist} -Summary: StarlingX Platform Fault Management Python API Package -License: Apache-2.0 -Group: Development/Tools/Other -URL: https://opendev.org/starlingx/fault -Source0: %{name}-%{version}.tar.gz -BuildRequires: python-setuptools -BuildRequires: python2-pip - -Requires: fm-common -Requires: python2-six - -%description -StarlingX platform Fault Management Client Library that provides APIs -for applications to raise/clear/update active alarms. - -%package -n fm-api-doc -Summary: StarlingX fm-api deploy doc -Group: Documentation/Other - -%description -n fm-api-doc -Contains constants which is to be used by fm-doc package to validate -the Alarms & Logs Doc Yaml file - -%define pythonroot %{_libdir}/python2.7/site-packages -%define doc_deploy_dir /opt/deploy/cgcs_doc - -%prep -%autosetup - -%build -python setup.py build - -%install -python setup.py install --root=%{buildroot} \ - --install-lib=%{pythonroot} \ - --prefix=%{_prefix} \ - --install-data=%{_datadir} \ - --single-version-externally-managed - -DOC_DEPLOY=%{buildroot}/%{doc_deploy_dir} -install -d $DOC_DEPLOY -# install constants.py in DOC_DEPLOY_DIR -# used by fm-doc package to validate the Alarms & Logs Doc Yaml file -install -m 644 fm_api/constants.py $DOC_DEPLOY - -# Note: RPM package name is fm-api but import package name is fm_api so can't -# use '%%{name}'. -%files -%defattr(-,root,root,-) -%license LICENSE -%dir %{pythonroot}/fm_api -%{pythonroot}/fm_api/* -%dir %{pythonroot}/fm_api-%{version}-py2.7.egg-info -%{pythonroot}/fm_api-%{version}-py2.7.egg-info/* - -%files -n fm-api-doc -%defattr(-,root,root,-) -%dir /opt/deploy -%dir %{doc_deploy_dir} -%{doc_deploy_dir}/* - -%changelog diff --git a/fm-common/centos/build_srpm.data b/fm-common/centos/build_srpm.data deleted file mode 100644 index 3107c380..00000000 --- a/fm-common/centos/build_srpm.data +++ /dev/null @@ -1,2 +0,0 @@ -SRC_DIR="sources" -TIS_PATCH_VER=PKG_GITREVCOUNT diff --git a/fm-common/centos/fm-common.spec b/fm-common/centos/fm-common.spec deleted file mode 100644 index a5c36188..00000000 --- a/fm-common/centos/fm-common.spec +++ /dev/null @@ -1,107 +0,0 @@ -%define local_dir /usr/local -%define local_bindir %{local_dir}/bin -%define cgcs_doc_deploy_dir /opt/deploy/cgcs_doc -%define pythonroot /usr/lib64/python2.7/site-packages - -Summary: CGTS Platform Fault Management Common Package -Name: fm-common -Version: 1.0 -Release: %{tis_patch_ver}%{?_tis_dist} -License: Apache-2.0 -Group: base -Packager: Wind River -URL: unknown -Source0: %{name}-%{version}.tar.gz -BuildRequires: util-linux -BuildRequires: postgresql-devel -BuildRequires: libuuid-devel -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRequires: python2-pip -BuildRequires: python2-wheel -Buildrequires: json-c-devel -Requires: json-c - -%package -n fm-common-dev -Summary: CGTS Platform Fault Management Common Package - Development files -Group: devel -Requires: fm-common = %{version}-%{release} - -%description -StarlingX platform Fault Management Client Library that provides APIs for -applications to raise/clear/update active alarms. - -%description -n fm-common-dev -StarlingX platform 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 -n fm-common-doc -Summary: fm-common deploy doc -Group: doc - -%description -n fm-common-doc -Contains fmAlarm.h which is to be used by fm-doc package to validate -the Alarms & Logs Doc Yaml file - -%prep -%setup - -%build -VER=%{version} -MAJOR=`echo $VER | awk -F . '{print $1}'` -MINOR=`echo $VER | awk -F . '{print $2}'` -make MAJOR=$MAJOR MINOR=$MINOR %{?_smp_mflags} -%{__python} setup.py build -%py2_build_wheel - -%install -rm -rf %{buildroot} -VER=%{version} -MAJOR=`echo $VER | awk -F . '{print $1}'` -MINOR=`echo $VER | awk -F . '{print $2}'` -make DESTDIR=%{buildroot} \ - BINDIR=%{local_bindir} \ - LIBDIR=%{_libdir} \ - INCDIR=%{_includedir} \ - CGCS_DOC_DEPLOY=%{cgcs_doc_deploy_dir} \ - MAJOR=$MAJOR MINOR=$MINOR install - -%{__python} setup.py install --root=%{buildroot} \ - --install-lib=%{pythonroot} \ - --prefix=/usr \ - --install-data=/usr/share -mkdir -p %{buildroot}/wheels -install -m 644 dist/*.whl %{buildroot}/wheels/ - -%clean -rm -rf %{buildroot} - - -%files -%defattr(-,root,root,-) -%doc LICENSE -%{local_bindir}/* -%{_libdir}/*.so.* - -%{pythonroot}/fm_core.so -%{pythonroot}/fm_core-*.egg-info - -%files -n fm-common-dev -%defattr(-,root,root,-) -%{_includedir}/* -%{_libdir}/*.so - -%files -n fm-common-doc -%defattr(-,root,root,-) -%{cgcs_doc_deploy_dir}/* - -%package wheels -Summary: %{name} wheels - -%description wheels -Contains python wheels for %{name} - -%files wheels -/wheels/* diff --git a/fm-common/opensuse/fm-common.changes b/fm-common/opensuse/fm-common.changes deleted file mode 100644 index 09015e3b..00000000 --- a/fm-common/opensuse/fm-common.changes +++ /dev/null @@ -1,9 +0,0 @@ -------------------------------------------------------------------- -Mon Jun 10 20:57:42 UTC 2019 - sgw@linux.intel.com - -- Spec-cleaner and linted - -------------------------------------------------------------------- -Thu May 23 21:04:31 UTC 2019 - sgw@bigsur.com - -- Initial Commit diff --git a/fm-common/opensuse/fm-common.rpmlintrc b/fm-common/opensuse/fm-common.rpmlintrc deleted file mode 100644 index adc59bf3..00000000 --- a/fm-common/opensuse/fm-common.rpmlintrc +++ /dev/null @@ -1 +0,0 @@ -setBadness('script-without-shebang', 2) diff --git a/fm-common/opensuse/fm-common.spec b/fm-common/opensuse/fm-common.spec deleted file mode 100644 index c6d37956..00000000 --- a/fm-common/opensuse/fm-common.spec +++ /dev/null @@ -1,91 +0,0 @@ -%define local_dir %{_prefix}/local -%define local_bindir %{local_dir}/bin -%define cgcs_doc_deploy_dir /opt/deploy/cgcs_doc -%define pythonroot %{_libdir}/python2.7/site-packages -Name: fm-common -Version: 1.0.0 -Release: %{tis_patch_ver}%{?_tis_dist} -Summary: StarlingX Platform Fault Management Common Package -License: Apache-2.0 -Group: Development/Tools/Other -URL: https://opendev.org/starlingx/fault -Source0: %{name}-%{version}.tar.gz -BuildRequires: libuuid-devel -BuildRequires: postgresql-devel -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRequires: util-linux -%if 0%{?suse_version} -BuildRequires: gcc-c++ -%endif - -%package -n fm-common-devel -Summary: StarlingX Platform Fault Management Common Package - Development files -Requires: fm-common = %{version}-%{release} -Provides: fm-common-dev = %{version} -Obsoletes: fm-common-dev < %{version} - -%description -StarlingX Cloud platform Fault Management Client Library that provides APIs for -applications to raise/clear/update active alarms. - -%description -n fm-common-devel -StarlingX Cloud platform 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 -n fm-common-doc -Summary: StarlingX Fault Management deploy doc for fm-common - -%description -n fm-common-doc -Contains fmAlarm.h which is to be used by fm-doc package to validate -the Alarms & Logs Doc Yaml file - -%prep -%autosetup -n %{name}-%{version}/sources - -%build -VER=%{version} -MAJOR=`echo $VER | awk -F . '{print $1}'` -MINOR=`echo $VER | awk -F . '{print $2}'` -make MAJOR=$MAJOR MINOR=$MINOR %{?_smp_mflags} -python setup.py build -#%%xpy2_build_wheel - -%install -VER=%{version} -MAJOR=`echo $VER | awk -F . '{print $1}'` -MINOR=`echo $VER | awk -F . '{print $2}'` -make DESTDIR=%{buildroot} \ - BINDIR=%{local_bindir} \ - LIBDIR=%{_libdir} \ - INCDIR=%{_includedir} \ - CGCS_DOC_DEPLOY=%{cgcs_doc_deploy_dir} \ - MAJOR=$MAJOR MINOR=$MINOR install -python setup.py install --root=%{buildroot} \ - --install-lib=%{pythonroot} \ - --prefix=%{_prefix} \ - --install-data=%{_datadir} - -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig - -%files -%license LICENSE -%{local_bindir}/* -%{_libdir}/*.so.* - -%{pythonroot}/fm_core.so -%{pythonroot}/fm_core-*.egg-info - -%files -n fm-common-devel -%{_includedir}/* -%{_libdir}/*.so - -%files -n fm-common-doc -%dir /opt/deploy -%{cgcs_doc_deploy_dir} - -%changelog diff --git a/fm-doc/centos/build_srpm.data b/fm-doc/centos/build_srpm.data deleted file mode 100644 index da0f201f..00000000 --- a/fm-doc/centos/build_srpm.data +++ /dev/null @@ -1,2 +0,0 @@ -SRC_DIR="fm_doc" -TIS_PATCH_VER=PKG_GITREVCOUNT diff --git a/fm-doc/centos/fm-doc.spec b/fm-doc/centos/fm-doc.spec deleted file mode 100644 index 3134fb45..00000000 --- a/fm-doc/centos/fm-doc.spec +++ /dev/null @@ -1,45 +0,0 @@ -Summary: CGTS Platform Fault Management Documentation Package -Name: fm-doc -Version: 1.0 -Release: %{tis_patch_ver}%{?_tis_dist} -License: Apache-2.0 -Group: base -Packager: Wind River -URL: unknown -BuildRequires: fm-api-doc -BuildRequires: fm-common-doc -BuildRequires: python-yaml - -Source0: %{name}-%{version}.tar.gz - -%define cgcs_doc_deploy_dir /opt/deploy/cgcs_doc - -%description -A yaml file description of the CGTS Alarms and Customer Logs generated by -the StarlingX System. Also included and used at build time is a simple syntax -checker to ensure no duplicate IDs are used, and generally the correct -field values are documented. - -%prep -%setup - -%install -CGCS_DOC_DEPLOY=$RPM_BUILD_ROOT/%{cgcs_doc_deploy_dir} -install -d $CGCS_DOC_DEPLOY -mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/fm/ -install -m 744 events.yaml $RPM_BUILD_ROOT/%{_sysconfdir}/fm/ -install -m 644 events.yaml $CGCS_DOC_DEPLOY -install -m 755 checkEventYaml $CGCS_DOC_DEPLOY -install -m 644 parseEventYaml.py $CGCS_DOC_DEPLOY -install -m 644 check_missing_alarms.py $CGCS_DOC_DEPLOY -pushd $CGCS_DOC_DEPLOY -cp %{cgcs_doc_deploy_dir}/constants.py %{cgcs_doc_deploy_dir}/fmAlarm.h . -./checkEventYaml -rm constants.py* fmAlarm.h* -popd - -%files -%license LICENSE -%defattr(-,root,root,-) -%{cgcs_doc_deploy_dir}/* -%{_sysconfdir}/fm/events.yaml diff --git a/fm-doc/opensuse/fm-doc.changes b/fm-doc/opensuse/fm-doc.changes deleted file mode 100644 index 7ef00792..00000000 --- a/fm-doc/opensuse/fm-doc.changes +++ /dev/null @@ -1,15 +0,0 @@ -------------------------------------------------------------------- -Wed Jun 12 14:20:48 UTC 2019 - sgw@linux.intel.com - -- Tweak the _service file to use subdir - -------------------------------------------------------------------- -Wed Jun 12 00:59:08 UTC 2019 - sgw@linux.intel.com - -- Spec-clean and rpmlint checked - * added _service file to generate tarball automagically - -------------------------------------------------------------------- -Thu May 23 18:48:34 UTC 2019 - sgw@bigsur.com - -- Initial commit diff --git a/fm-doc/opensuse/fm-doc.rpmlintrc b/fm-doc/opensuse/fm-doc.rpmlintrc deleted file mode 100644 index adc59bf3..00000000 --- a/fm-doc/opensuse/fm-doc.rpmlintrc +++ /dev/null @@ -1 +0,0 @@ -setBadness('script-without-shebang', 2) diff --git a/fm-doc/opensuse/fm-doc.spec b/fm-doc/opensuse/fm-doc.spec deleted file mode 100644 index 03b3b05a..00000000 --- a/fm-doc/opensuse/fm-doc.spec +++ /dev/null @@ -1,48 +0,0 @@ -%define cgcs_doc_deploy_dir /opt/deploy/cgcs_doc -Name: fm-doc -Version: 1.0.0 -Release: stx -Summary: StarlingX Platform Fault Management Documentation Package -License: Apache-2.0 -Group: Development/Tools/Other -URL: https://opendev.org/starlingx/fault -Source0: %{name}-%{version}.tar.gz -BuildRequires: fm-api-doc -BuildRequires: fm-common-doc -BuildRequires: python-yaml -BuildArch: noarch - -%description -A yaml file description of the StarlingX Alarms and Customer Logs generated by -the StarlingX Cloud System. Also included and used at build time is a simple syntax -checker to ensure no duplicate IDs are used, and generally the correct -field values are documented. - -%prep -%autosetup -n %{name}-%{version}/fm_doc - -%build - -%install -CGCS_DOC_DEPLOY=%{buildroot}/%{cgcs_doc_deploy_dir} -install -d $CGCS_DOC_DEPLOY -install -D -d %{buildroot}/%{_sysconfdir}/fm/ -install -m 644 events.yaml %{buildroot}/%{_sysconfdir}/fm/ -install -m 644 events.yaml $CGCS_DOC_DEPLOY -install -m 755 checkEventYaml $CGCS_DOC_DEPLOY -install -m 644 parseEventYaml.py $CGCS_DOC_DEPLOY -install -m 755 check_missing_alarms.py $CGCS_DOC_DEPLOY -pushd $CGCS_DOC_DEPLOY -cp %{cgcs_doc_deploy_dir}/constants.py %{cgcs_doc_deploy_dir}/fmAlarm.h . -./checkEventYaml -rm constants.py* fmAlarm.h* -popd - -%files -%defattr(-,root,root,-) -%license LICENSE -%{cgcs_doc_deploy_dir}/* -%dir %{_sysconfdir}/fm -%config %{_sysconfdir}/fm/events.yaml - -%changelog diff --git a/fm-mgr/centos/build_srpm.data b/fm-mgr/centos/build_srpm.data deleted file mode 100644 index 3107c380..00000000 --- a/fm-mgr/centos/build_srpm.data +++ /dev/null @@ -1,2 +0,0 @@ -SRC_DIR="sources" -TIS_PATCH_VER=PKG_GITREVCOUNT diff --git a/fm-mgr/centos/fm-mgr.spec b/fm-mgr/centos/fm-mgr.spec deleted file mode 100644 index acd2d8bc..00000000 --- a/fm-mgr/centos/fm-mgr.spec +++ /dev/null @@ -1,56 +0,0 @@ -%define local_dir /usr/local -%define local_bindir %{local_dir}/bin - -Summary: CGTS Platform Fault Manager Package -Name: fm-mgr -Version: 1.0 -Release: %{tis_patch_ver}%{?_tis_dist} -License: Apache-2.0 -Group: base -Packager: Wind River -URL: unknown -Source0: %{name}-%{version}.tar.gz -BuildRequires: fm-common-dev -BuildRequires: systemd-devel -BuildRequires: libuuid-devel - -Requires: logrotate - -%description -CGTS platform Fault Manager that serves the client -application fault management requests and raise/clear/update -alarms in the active alarm database. - -%prep -%setup - -%build -VER=%{version} -MAJOR=`echo $VER | awk -F . '{print $1}'` -MINOR=`echo $VER | awk -F . '{print $2}'` -make MAJOR=$MAJOR MINOR=$MINOR %{?_smp_mflags} - -%install -rm -rf %{buildroot} -VER=%{version} -MAJOR=`echo $VER | awk -F . '{print $1}'` -MINOR=`echo $VER | awk -F . '{print $2}'` -make DESTDIR=%{buildroot} \ - BINDIR=%{local_bindir} \ - SYSCONFDIR=%{_sysconfdir} \ - UNITDIR=%{_unitdir} \ - MAJOR=$MAJOR MINOR=$MINOR \ - install -install -m 644 fminit.service %{buildroot}%{_unitdir}/fminit.service - -%clean -rm -rf %{buildroot} - - -%files -%defattr(-,root,root,-) -%doc LICENSE -%{local_bindir}/fmManager -%_sysconfdir/init.d/fminit -%{_unitdir}/fminit.service -%config(noreplace) %{_sysconfdir}/logrotate.d/fm.logrotate diff --git a/fm-mgr/opensuse/fm-mgr.changes b/fm-mgr/opensuse/fm-mgr.changes deleted file mode 100644 index 530dab92..00000000 --- a/fm-mgr/opensuse/fm-mgr.changes +++ /dev/null @@ -1,9 +0,0 @@ -------------------------------------------------------------------- -Mon Jun 10 22:53:44 UTC 2019 - sgw@linux.intel.com - -- Spec-cleaner and rpm-lint checked - -------------------------------------------------------------------- -Thu May 23 19:38:48 UTC 2019 - sgw@bigsur.com - -- Initial Commit diff --git a/fm-mgr/opensuse/fm-mgr.rpmlintrc b/fm-mgr/opensuse/fm-mgr.rpmlintrc deleted file mode 100644 index adc59bf3..00000000 --- a/fm-mgr/opensuse/fm-mgr.rpmlintrc +++ /dev/null @@ -1 +0,0 @@ -setBadness('script-without-shebang', 2) diff --git a/fm-mgr/opensuse/fm-mgr.spec b/fm-mgr/opensuse/fm-mgr.spec deleted file mode 100644 index ad44766a..00000000 --- a/fm-mgr/opensuse/fm-mgr.spec +++ /dev/null @@ -1,66 +0,0 @@ -%define local_dir %{_prefix}/local -%define local_bindir %{local_dir}/bin -Name: fm-mgr -Version: 1.0.0 -Release: %{tis_patch_ver}%{?_tis_dist} -Summary: StarlingX Platform Fault Manager Package -License: Apache-2.0 -Group: Development/Tools/Other -URL: https://opendev.org/starlingx/fault -Source0: %{name}-%{version}.tar.gz -BuildRequires: fm-common-devel -BuildRequires: libuuid-devel -BuildRequires: systemd-devel -Requires: fm-common -Requires: fm-doc -Requires: logrotate -%if 0%{?suse_version} -BuildRequires: gcc-c++ -%endif - -%description -StarlingX platform Fault Manager that serves the client -application fault management requests and raise/clear/update -alarms in the active alarm database. - -%prep -%autosetup -n %{name}-%{version}/sources - -%build -VER=%{version} -MAJOR=`echo $VER | awk -F . '{print $1}'` -MINOR=`echo $VER | awk -F . '{print $2}'` -make MAJOR=$MAJOR MINOR=$MINOR %{?_smp_mflags} - -%install -VER=%{version} -MAJOR=`echo $VER | awk -F . '{print $1}'` -MINOR=`echo $VER | awk -F . '{print $2}'` -make DESTDIR=%{buildroot} \ - BINDIR=%{local_bindir} \ - SYSCONFDIR=%{_sysconfdir} \ - UNITDIR=%{_unitdir} \ - MAJOR=$MAJOR MINOR=$MINOR \ - install - -%files -%defattr(-,root,root,-) -%license LICENSE -%{local_bindir}/fmManager -%_sysconfdir/init.d/fminit -%{_unitdir}/fminit.service -%config(noreplace) %{_sysconfdir}/logrotate.d/fm.logrotate - -%pre -%service_add_pre fminit.service fminit.target - -%post -%service_add_post fminit.service fminit.target - -%preun -%service_del_preun fminit.service fminit.target - -%postun -%service_del_postun fminit.service fminit.target - -%changelog diff --git a/fm-rest-api/centos/build_srpm.data b/fm-rest-api/centos/build_srpm.data deleted file mode 100644 index 59c9b415..00000000 --- a/fm-rest-api/centos/build_srpm.data +++ /dev/null @@ -1,2 +0,0 @@ -SRC_DIR="fm" -TIS_PATCH_VER=PKG_GITREVCOUNT diff --git a/fm-rest-api/centos/fm-rest-api.spec b/fm-rest-api/centos/fm-rest-api.spec deleted file mode 100644 index 6eab40f1..00000000 --- a/fm-rest-api/centos/fm-rest-api.spec +++ /dev/null @@ -1,109 +0,0 @@ -Summary: Fault Management Openstack REST API -Name: fm-rest-api -Version: 1.0 -Release: %{tis_patch_ver}%{?_tis_dist} -License: Apache-2.0 -Group: base -Packager: Wind River -URL: unknown -Source0: %{name}-%{version}.tar.gz - -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRequires: python2-pip -BuildRequires: python2-wheel -BuildRequires: python-oslo-config -BuildRequires: python-oslo-db -BuildRequires: python-oslo-log -BuildRequires: python-oslo-messaging -BuildRequires: python-oslo-middleware - -Requires: python-eventlet -Requires: python-webob -Requires: python-paste -Requires: setup - -BuildRequires: systemd - -%description -Fault Management Openstack REST API Service - -%define local_bindir /usr/bin/ -%define local_initddir /etc/rc.d/init.d -%define pythonroot /usr/lib64/python2.7/site-packages -%define local_etc_pmond /etc/pmon.d/ -%define debug_package %{nil} - -%prep -%autosetup -n %{name}-%{version} - -# Remove bundled egg-info -rm -rf *.egg-info - -%build -echo "Start build" - -export PBR_VERSION=%{version} -%{__python} setup.py build -%py2_build_wheel -PYTHONPATH=. oslo-config-generator --config-file=fm/config-generator.conf - -%install -echo "Start install" -export PBR_VERSION=%{version} -%{__python} setup.py install --root=%{buildroot} \ - --install-lib=%{pythonroot} \ - --prefix=/usr \ - --install-data=/usr/share \ - --single-version-externally-managed -mkdir -p $RPM_BUILD_ROOT/wheels -install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/ - -install -p -D -m 644 scripts/fm-api.service %{buildroot}%{_unitdir}/fm-api.service -install -d -m 755 %{buildroot}%{local_initddir} -install -p -D -m 755 scripts/fm-api %{buildroot}%{local_initddir}/fm-api - -install -d -m 755 %{buildroot}%{local_etc_pmond} -install -p -D -m 644 fm-api-pmond.conf %{buildroot}%{local_etc_pmond}/fm-api.conf - -# install default config files -cd %{_builddir}/%{name}-%{version} && oslo-config-generator --config-file fm/config-generator.conf --output-file %{_builddir}/%{name}-%{version}/fm.conf.sample -install -p -D -m 600 %{_builddir}/%{name}-%{version}/fm.conf.sample %{buildroot}%{_sysconfdir}/fm/fm.conf -install -p -D -m 600 fm/policy.yaml %{buildroot}%{_sysconfdir}/fm/policy.yaml - -%clean -echo "CLEAN CALLED" -rm -rf $RPM_BUILD_ROOT - -%post -/bin/systemctl enable fm-api.service >/dev/null 2>&1 - -%files -%defattr(-,root,root,-) -%doc LICENSE - -%{local_bindir}/* - -%{local_initddir}/* - -%{pythonroot}/fm/* - -%{pythonroot}/fm-%{version}*.egg-info - -%config(noreplace) %attr(600,fm,fm)%{_sysconfdir}/fm/fm.conf -%config(noreplace) %attr(600,fm,fm)%{_sysconfdir}/fm/policy.yaml - -# systemctl service files -%{_unitdir}/fm-api.service - -# pmond config file -%{local_etc_pmond}/fm-api.conf - -%package wheels -Summary: %{name} wheels - -%description wheels -Contains python wheels for %{name} - -%files wheels -/wheels/* diff --git a/fm-rest-api/centos/stx-fm-rest-api.stable_docker_image b/fm-rest-api/centos/stx-fm-rest-api.stable_docker_image deleted file mode 100644 index 5c2c3c03..00000000 --- a/fm-rest-api/centos/stx-fm-rest-api.stable_docker_image +++ /dev/null @@ -1,26 +0,0 @@ -BUILDER=loci -LABEL=stx-fm-rest-api -# Set PROJECT=infra and PROJECT_REPO=nil because we are not cloning a repo -PROJECT=infra -PROJECT_REPO=nil -DIST_PACKAGES="postgresql-devel fm-common" - -PIP_PACKAGES=" - cgtsclient \ - fm \ - fm_api \ - fm_core \ - httplib2 \ - keystone \ - keystonemiddleware \ - oslo.db \ - oslo.log \ - oslo.middleware \ - oslo.policy \ - oslo.versionedobjects \ - PyMySQL \ - python_neutronclient \ - pecan \ - tsconfig \ - WSME" -PYTHON3=no diff --git a/fm-rest-api/opensuse/fm-rest-api.changes b/fm-rest-api/opensuse/fm-rest-api.changes deleted file mode 100644 index f8725e61..00000000 --- a/fm-rest-api/opensuse/fm-rest-api.changes +++ /dev/null @@ -1,14 +0,0 @@ -------------------------------------------------------------------- -Mon Jun 10 23:08:57 UTC 2019 - sgw@linux.intel.com - -- spec-clean and rpmlint checked - -------------------------------------------------------------------- -Wed May 29 16:31:06 UTC 2019 - sgw@bigsur.com - -- Clean up Spec file - -------------------------------------------------------------------- -Thu May 23 20:07:25 UTC 2019 - sgw@bigsur.com - -- Initial Commit diff --git a/fm-rest-api/opensuse/fm-rest-api.rpmlintrc b/fm-rest-api/opensuse/fm-rest-api.rpmlintrc deleted file mode 100644 index adc59bf3..00000000 --- a/fm-rest-api/opensuse/fm-rest-api.rpmlintrc +++ /dev/null @@ -1 +0,0 @@ -setBadness('script-without-shebang', 2) diff --git a/fm-rest-api/opensuse/fm-rest-api.spec b/fm-rest-api/opensuse/fm-rest-api.spec deleted file mode 100644 index 31625e33..00000000 --- a/fm-rest-api/opensuse/fm-rest-api.spec +++ /dev/null @@ -1,126 +0,0 @@ -Name: fm-rest-api -Version: 1.0.0 -Release: %{tis_patch_ver}%{?_tis_dist} -Summary: Fault Management Openstack REST API -License: Apache-2.0 -Group: Development/Tools/Other -URL: https://opendev.org/starlingx/fault -Source0: %{name}-%{version}.tar.gz -BuildRequires: insserv-compat -BuildRequires: fdupes -BuildRequires: python-oslo.db -BuildRequires: python-oslo.messaging -BuildRequires: python-oslo.middleware -BuildRequires: python-setuptools -BuildRequires: python2-oslo.config -BuildRequires: python2-oslo.log -BuildRequires: python2-pip -BuildRequires: systemd -BuildRequires: systemd-rpm-macros -Requires: cgts-client -Requires: python2-oslo.policy -Requires: python2-pecan -Requires: python2-SQLAlchemy -Requires: python2-WSME -Requires: python-oslo.service -Requires: python-oslo.db -Requires: python-oslo.versionedobjects -Requires: python-eventlet -Requires: python-keystonemiddleware -Requires: python-paste -Requires: python-webob -Requires: systemd -Requires: tsconfig - -%description -Fault Management Openstack REST API Service - -%define local_bindir %{_bindir} -%define local_initddir %{_sysconfdir}/rc.d/init.d -%define pythonroot %{_libdir}/python2.7/site-packages -%define local_etc_pmond %{_sysconfdir}/pmon.d/ -%define debug_package %{nil} - -%prep -%autosetup -n %{name}-%{version}/fm - -# Remove bundled egg-info -rm -rf *.egg-info - -%build -echo "Start build" - -export PBR_VERSION=%{version} -python setup.py build -PYTHONPATH=. oslo-config-generator --config-file=fm/config-generator.conf - -%install -echo "Start install" -export PBR_VERSION=%{version} -python setup.py install --root=%{buildroot} \ - --install-lib=%{pythonroot} \ - --prefix=%{_prefix} \ - --install-data=%{_datadir} \ - --single-version-externally-managed - -install -p -D -m 644 scripts/fm-api.service %{buildroot}%{_unitdir}/fm-api.service -install -D -d -m 755 %{buildroot}%{_sbindir} -ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcfm-api - -install -d -m 755 %{buildroot}%{local_initddir} -install -p -D -m 755 scripts/fm-api %{buildroot}%{local_initddir}/fm-rest-apid - -install -d -m 755 %{buildroot}%{local_etc_pmond} -install -p -D -m 644 fm-api-pmond.conf %{buildroot}%{local_etc_pmond}/fm-api.conf - -# Install sql migration stuff that wasn't installed by setup.py -install -m 640 fm/db/sqlalchemy/migrate_repo/migrate.cfg %{buildroot}%{pythonroot}/fm/db/sqlalchemy/migrate_repo/migrate.cfg - -# install default config files -oslo-config-generator --config-file fm/config-generator.conf --output-file %{_builddir}/fm.conf.sample -install -p -D -m 644 %{_builddir}/fm.conf.sample %{buildroot}%{_sysconfdir}/fm/fm.conf -install -p -D -m 600 fm/policy.yaml %{buildroot}%{_sysconfdir}/fm/policy.yaml - -%fdupes %{buildroot}%{pythonroot}/fm - -%files -%defattr(-,root,root,-) -%license LICENSE - -%{local_bindir}/* - -%dir %{_sysconfdir}/rc.d -%dir %{local_initddir} -%{local_initddir}/* - -%dir %{pythonroot}/fm -%{pythonroot}/fm/* - -%{pythonroot}/fm-%{version}*.egg-info - -%dir %{_sysconfdir}/fm -%config(noreplace) %{_sysconfdir}/fm/fm.conf -%config(noreplace) %attr(600,fm,fm)%{_sysconfdir}/fm/policy.yaml - -# systemctl service files -%{_unitdir}/fm-api.service -%{_sbindir}/rcfm-api - -# pmond config file -%dir %{local_etc_pmond} -%config %{local_etc_pmond}/fm-api.conf - -%pre -%service_add_pre fm-api.service fm-api.target - -%post -/bin/systemctl enable fm-api.service >/dev/null 2>&1 -%service_add_post fm-api.service fm-api.target - -%preun -%service_del_preun fm-api.service fm-api.target - -%postun -%service_del_postun fm-api.service fm-api.target - -%changelog diff --git a/python-fmclient/centos/build_srpm.data b/python-fmclient/centos/build_srpm.data deleted file mode 100644 index 0f71e80e..00000000 --- a/python-fmclient/centos/build_srpm.data +++ /dev/null @@ -1,2 +0,0 @@ -SRC_DIR="fmclient" -TIS_PATCH_VER=PKG_GITREVCOUNT diff --git a/python-fmclient/centos/python-fmclient.spec b/python-fmclient/centos/python-fmclient.spec deleted file mode 100644 index f429fbf2..00000000 --- a/python-fmclient/centos/python-fmclient.spec +++ /dev/null @@ -1,84 +0,0 @@ -%global pypi_name fmclient - -Summary: A python client library for Fault Management -Name: python-fmclient -Version: 1.0 -Release: %{tis_patch_ver}%{?_tis_dist} -License: Apache-2.0 -Group: base -Packager: Wind River -URL: unknown -Source0: %{name}-%{version}.tar.gz - -BuildRequires: git -BuildRequires: python-pbr >= 2.0.0 -BuildRequires: python-setuptools -BuildRequires: python2-pip -BuildRequires: python2-wheel - -Requires: python-keystoneauth1 >= 3.1.0 -Requires: python-pbr >= 2.0.0 -Requires: python-six >= 1.9.0 -Requires: python-oslo-i18n >= 2.1.0 -Requires: python-oslo-utils >= 3.20.0 -Requires: python-requests -Requires: bash-completion - -%description -A python client library for Fault Management - -%define local_bindir /usr/bin/ -%define local_etc_bash_completiond /etc/bash_completion.d/ -%define pythonroot /usr/lib64/python2.7/site-packages - -%define debug_package %{nil} - -%prep -%autosetup -n %{name}-%{version} -S git - -# Remove bundled egg-info -rm -rf *.egg-info - -%build -echo "Start build" - -export PBR_VERSION=%{version} -%{__python} setup.py build -%py2_build_wheel - -%install -echo "Start install" -export PBR_VERSION=%{version} -%{__python} setup.py install --root=%{buildroot} \ - --install-lib=%{pythonroot} \ - --prefix=/usr \ - --install-data=/usr/share \ - --single-version-externally-managed -mkdir -p $RPM_BUILD_ROOT/wheels -install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/ - -install -d -m 755 %{buildroot}%{local_etc_bash_completiond} -install -p -D -m 664 tools/fm.bash_completion %{buildroot}%{local_etc_bash_completiond}/fm.bash_completion - - -%clean -echo "CLEAN CALLED" -rm -rf $RPM_BUILD_ROOT - -%files -%defattr(-,root,root,-) -%doc LICENSE -%{local_bindir}/* -%{local_etc_bash_completiond}/* -%{pythonroot}/%{pypi_name}/* -%{pythonroot}/%{pypi_name}-%{version}*.egg-info - - -%package wheels -Summary: %{name} wheels - -%description wheels -Contains python wheels for %{name} - -%files wheels -/wheels/* diff --git a/python-fmclient/opensuse/python-fmclient.changes b/python-fmclient/opensuse/python-fmclient.changes deleted file mode 100644 index 94637988..00000000 --- a/python-fmclient/opensuse/python-fmclient.changes +++ /dev/null @@ -1,19 +0,0 @@ -------------------------------------------------------------------- -Mon Jun 10 23:19:41 UTC 2019 - sgw@linux.intel.com - -- spec-cleaner and rpmlint checked - -------------------------------------------------------------------- -Mon Jun 10 23:16:47 UTC 2019 - sgw@linux.intel.com - -- spec-cleaner and rpmlint checked - -------------------------------------------------------------------- -Thu May 30 18:07:16 UTC 2019 - sgw@bigsur.com - -- Fix python-oslo package names - -------------------------------------------------------------------- -Thu May 23 20:28:42 UTC 2019 - sgw@bigsur.com - -- Initial Commit diff --git a/python-fmclient/opensuse/python-fmclient.rpmlintrc b/python-fmclient/opensuse/python-fmclient.rpmlintrc deleted file mode 100644 index adc59bf3..00000000 --- a/python-fmclient/opensuse/python-fmclient.rpmlintrc +++ /dev/null @@ -1 +0,0 @@ -setBadness('script-without-shebang', 2) diff --git a/python-fmclient/opensuse/python-fmclient.spec b/python-fmclient/opensuse/python-fmclient.spec deleted file mode 100644 index 81ed6699..00000000 --- a/python-fmclient/opensuse/python-fmclient.spec +++ /dev/null @@ -1,72 +0,0 @@ -# -# spec file for package python -# -# - - -%global pypi_name fmclient -Name: python-%{pypi_name} -Version: 1.0.0 -Release: %{tis_patch_ver}%{?_tis_dist} -Summary: A python client library for Fault Management -License: Apache-2.0 -Group: Development/Tools/Other -URL: https://opendev.org/starlingx/fault -Source0: %{name}-%{version}.tar.gz -BuildRequires: fdupes -BuildRequires: git -BuildRequires: python-setuptools -BuildRequires: python2-pbr -BuildRequires: python3-pbr -Requires: bash-completion -Requires: python2-httplib2 -Requires: python2-pyOpenSSL -Requires: python2-PrettyTable -Requires: python2-python-dateutil -Requires: python-keystoneauth1 >= 3.1.0 -Requires: python-oslo.i18n >= 2.1.0 -Requires: python-oslo.utils >= 3.20.0 -Requires: python-pbr >= 2.0.0 -Requires: python-requests -Requires: python-six >= 1.9.0 - -%description -A python client library for StarlingX Fault Management service - -%define local_etc_bash_completiond %{_sysconfdir}/bash_completion.d/ -%define pythonroot %{_libdir}/python2.7/site-packages -%define debug_package %{nil} - -%prep -%autosetup -n %{name}-%{version}/fmclient - -# Remove bundled egg-info -rm -rf *.egg-info - -%build -export PBR_VERSION=%{version} -python setup.py build - -%install -export PBR_VERSION=%{version} -python setup.py install --root=%{buildroot} \ - --install-lib=%{pythonroot} \ - --prefix=%{_prefix} \ - --install-data=%{_datadir} \ - --single-version-externally-managed - -install -d -m 755 %{buildroot}%{local_etc_bash_completiond} -install -p -D -m 664 tools/fm.bash_completion %{buildroot}%{local_etc_bash_completiond}/fm.bash_completion - -%fdupes %{buildroot}%{pythonroot}/fmclient -%fdupes %{buildroot}%{pythonroot}/%{pypi_name}-%{version}*.egg-info - - -%files -%license LICENSE -%{_bindir}/* -%config %{local_etc_bash_completiond}/* -%{pythonroot}/%{pypi_name} -%{pythonroot}/%{pypi_name}-%{version}*.egg-info - -%changelog