Remove CentOS/OpenSUSE build support

StarlingX stopped supporting CentOS builds in the after release 7.0.
This update will strip CentOS from our code base.  It will also remove
references to the failed OpenSUSE feature as well.

Story: 2011110
Task: 49952
Change-Id: I1bed2fde10326ecb75b45376efea8480e0f23675
Signed-off-by: Scott Little <scott.little@windriver.com>
This commit is contained in:
Scott Little 2024-04-26 11:41:15 -04:00
parent 54ceb83726
commit cb7602eafa
37 changed files with 0 additions and 1138 deletions

View File

@ -1 +0,0 @@
flock

View File

@ -1 +0,0 @@
sm-client-wheels

View File

@ -1,26 +0,0 @@
# List of packages to be included/installed in ISO
# If these have dependencies, they will be pulled in automatically
#
# sm-common
sm-common
sm-common-libs
sm-eru
# sm-db
sm-db
# sm
sm
# sm-api
sm-api
# sm-client
sm-client
# sm-tools
sm-tools
# stx-ocf-scripts
stx-ocf-scripts

View File

@ -1,7 +0,0 @@
service-mgmt/sm-common
service-mgmt/sm-db
service-mgmt/sm
service-mgmt-api
service-mgmt-client
service-mgmt-tools
stx-ocf-scripts

View File

@ -1 +0,0 @@
sm-client-wheels

View File

@ -1,4 +0,0 @@
SRC_DIR=sm-api
TAR_NAME=sm-api
VERSION=1.0
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,97 +0,0 @@
Summary: Service Management API
Name: sm-api
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
%define debug_package %{nil}
BuildRequires: python
BuildRequires: python-setuptools
BuildRequires: python2-pip
BuildRequires: python2-wheel
BuildRequires: util-linux
# BuildRequires systemd is to get %_unitdir I think
BuildRequires: systemd
BuildRequires: systemd-devel
Requires: python-libs
Requires: python-six
# Needed for /etc/init.d, can be removed when we go fully systemd
Requires: chkconfig
# Needed for /etc/pmon.d
Requires: mtce-pmon
%prep
%setup -q
%build
%{__python2} setup.py build
%py2_build_wheel
%install
%global _buildsubdir %{_builddir}/%{name}-%{version}
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
mkdir -p $RPM_BUILD_ROOT/wheels
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
install -d %{buildroot}/etc/sm
install -d %{buildroot}/etc/init.d
install -d %{buildroot}/etc/pmon.d
install -d %{buildroot}/etc/sm-api
install -d %{buildroot}%{_unitdir}
install -m 644 %{_buildsubdir}/scripts/sm_api.ini %{buildroot}/etc/sm
install -m 755 %{_buildsubdir}/scripts/sm-api %{buildroot}/etc/init.d
install -m 644 %{_buildsubdir}/scripts/sm-api.service %{buildroot}%{_unitdir}
install -m 644 %{_buildsubdir}/scripts/sm-api.conf %{buildroot}/etc/pmon.d
install -m 644 %{_buildsubdir}/etc/sm-api/policy.json %{buildroot}/etc/sm-api
%description
Service Management API
#%package -n sm-api-py-src-tar
#Summary: Service Management API
#Group: base
#%description -n sm-api-py-src-tar
#Service Management API
#%post -n sm-api-py-src-tar
## sm-api-py-src-tar - postinst
# if [ -f $D/usr/src/sm-api-1.0.tar.bz2 ] ; then
# ( cd $D/ && tar -xf $D/usr/src/sm-api-1.0.tar.bz2 )
# fi
%post
/usr/bin/systemctl enable sm-api.service >/dev/null 2>&1
%files
%defattr(-,root,root,-)
%dir "/usr/lib/python2.7/site-packages/sm_api"
/usr/lib/python2.7/site-packages/sm_api/*
%dir "/usr/lib/python2.7/site-packages/sm_api-1.0.0-py2.7.egg-info"
/usr/lib/python2.7/site-packages/sm_api-1.0.0-py2.7.egg-info/*
"/usr/bin/sm-api"
%dir "/etc/sm"
"/etc/init.d/sm-api"
"/etc/pmon.d/sm-api.conf"
"/etc/sm-api/policy.json"
"/etc/sm/sm_api.ini"
%{_unitdir}/*
#%files -n sm-api-py-src-tar
#%defattr(-,-,-,-)
#"/usr/src/sm-api-1.0.tar.bz2"
%package wheels
Summary: %{name} wheels
%description wheels
Contains python wheels for %{name}
%files wheels
/wheels/*

View File

@ -1,19 +0,0 @@
-------------------------------------------------------------------
Tue Oct 4 22:52:52 UTC 2019 - Abraham Arce <abraham.arce.moreno@intel.com> - 4
- Runtime dependencies.
-------------------------------------------------------------------
Tue Sep 24 05:22:50 UTC 2019 - Abraham Arce <abraham.arce.moreno@intel.com> - 3
- Move to _service to get source from git repo
-------------------------------------------------------------------
Thu Jun 20 17:00:16 UTC 2019 - Marcela Rosales <marcelarosalesj@gmail.com> - 2
- Modify Requires: chkconfig is in aaa_base openSUSE package.
-------------------------------------------------------------------
Wed Jun 5 09:44:11 UTC 2019 - Marcela Rosales <marcelarosalesj@gmail.com> - 1
- Initial Commit.

View File

@ -1 +0,0 @@
setBadness('script-without-shebang', 2)

View File

@ -1,75 +0,0 @@
Summary: Service Management API
Name: sm-api
Version: 1.0.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: System/Packages
URL: https://opendev.org/starlingx/ha/
Source0: %{name}-%{version}.tar.gz
%define debug_package %{nil}
BuildRequires: python
BuildRequires: python-setuptools
BuildRequires: python2-pip
BuildRequires: util-linux
# BuildRequires systemd is to get %%_unitdir I think
BuildRequires: systemd
BuildRequires: systemd-devel
%if 0%{?suse_version}
BuildRequires: gcc-c++
BuildRequires: systemd-sysvinit
BuildRequires: insserv-compat
%endif
Requires: python2-six
Requires: python-eventlet
Requires: python-pecan
Requires: python-keystonemiddleware
# Needed for %%{_sysconfdir}/init.d, can be removed when we go fully systemd
Requires: aaa_base
# Needed for %%{_sysconfdir}/pmon.d
Requires: libamon1
%description
The Service Management API
%prep
%setup -n %{name}-%{version}/%{name}
%build
%{__python2} setup.py build
%install
%global _buildsubdir %{_builddir}/%{name}-%{version}/%{name}
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
install -d %{buildroot}%{_sysconfdir}/sm
install -d %{buildroot}%{_sysconfdir}/init.d
install -d %{buildroot}%{_sysconfdir}/pmon.d
install -d %{buildroot}%{_sysconfdir}/sm-api
install -d %{buildroot}%{_unitdir}
install -m 644 %{_buildsubdir}/scripts/sm_api.ini %{buildroot}%{_sysconfdir}/sm
install -m 755 %{_buildsubdir}/scripts/sm-api %{buildroot}%{_sysconfdir}/init.d
install -m 644 %{_buildsubdir}/scripts/sm-api.service %{buildroot}%{_unitdir}
install -m 644 %{_buildsubdir}/scripts/sm-api.conf %{buildroot}%{_sysconfdir}/pmon.d
install -m 644 %{_buildsubdir}%{_sysconfdir}/sm-api/policy.json %{buildroot}%{_sysconfdir}/sm-api
%post
%{_bindir}/systemctl enable sm-api.service >/dev/null 2>&1
%files
%dir %{_sysconfdir}/pmon.d
%dir %{_sysconfdir}/sm-api
%defattr(-,root,root,-)
%dir "%{_prefix}/lib/python2.7/site-packages/sm_api"
%{_prefix}/lib/python2.7/site-packages/sm_api/*
%dir "%{_prefix}/lib/python2.7/site-packages/sm_api-1.0.0-py2.7.egg-info"
%{_prefix}/lib/python2.7/site-packages/sm_api-1.0.0-py2.7.egg-info/*
"%{_bindir}/sm-api"
%dir "%{_sysconfdir}/sm"
"%{_sysconfdir}/init.d/sm-api"
"%{_sysconfdir}/pmon.d/sm-api.conf"
"%{_sysconfdir}/sm-api/policy.json"
"%{_sysconfdir}/sm/sm_api.ini"
%{_unitdir}/*
%changelog

View File

@ -1,4 +0,0 @@
SRC_DIR=sm-client
TAR_NAME=sm-client
VERSION=1.0
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,71 +0,0 @@
Summary: Service Management Client and CLI
Name: sm-client
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
%define debug_package %{nil}
BuildRequires: python
BuildRequires: python-setuptools
BuildRequires: python2-pip
BuildRequires: python2-wheel
Requires: python-libs
Requires: python-six
%prep
%setup -q
%build
%{__python2} setup.py build
%py2_build_wheel
%install
%global _buildsubdir %{_builddir}/%{name}-%{version}
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
mkdir -p $RPM_BUILD_ROOT/wheels
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
install -d %{buildroot}/usr/bin
install -m 755 %{_buildsubdir}/usr/bin/smc %{buildroot}/usr/bin
%description
Service Management Client and CLI
#%package -n sm-client-py-src-tar
#Summary: Service Management Client and CLI source tarball
#Group: base
#%description -n sm-client-py-src-tar
#Service Management API
#%post -n sm-client-py-src-tar
## sm-client-py-src-tar - postinst
# if [ -f $D/usr/src/sm-client-1.0.tar.bz2 ] ; then
# ( cd $D/ && tar -xf $D/usr/src/sm-client-1.0.tar.bz2 )
# fi
%files
%defattr(-,root,root,-)
%dir "/usr/lib/python2.7/site-packages/sm_client"
/usr/lib/python2.7/site-packages/sm_client/*
"/usr/bin/smc"
%dir "/usr/lib/python2.7/site-packages/sm_client-1.0.0-py2.7.egg-info"
/usr/lib/python2.7/site-packages/sm_client-1.0.0-py2.7.egg-info/*
#%files -n sm-client-py-src-tar
#%defattr(-,-,-,-)
#"/usr/src/sm-client-1.0.tar.bz2"
%package wheels
Summary: %{name} wheels
%description wheels
Contains python wheels for %{name}
%files wheels
/wheels/*

View File

@ -1,14 +0,0 @@
-------------------------------------------------------------------
Tue Oct 4 23:02:03 UTC 2019 - Abraham Arce <abraham.arce.moreno@intel.com> - 3
- Runtime dependencies.
-------------------------------------------------------------------
Tue Sep 24 05:22:50 UTC 2019 - Abraham Arce <abraham.arce.moreno@intel.com> - 2
- Move to _service to get source from git repo
-------------------------------------------------------------------
Tue May 21 21:29:56 UTC 2019 - Erich Cordoba <erich.cordoba.malibran@intel.com> - 1
- First version of sm-client

View File

@ -1 +0,0 @@
setBadness('script-without-shebang', 2)

View File

@ -1,47 +0,0 @@
Summary: Service Management Client and CLI
Name: sm-client
Version: 1.0.0
Release: 4
BuildArch: noarch
License: Apache-2.0
Group: System/Base
URL: https://www.starlingx.io
Source0: %{name}-%{version}.tar.gz
%define debug_package %{nil}
BuildRequires: python
BuildRequires: python-setuptools
BuildRequires: fdupes
Requires: python-six
Requires: python-pyparsing
Requires: python-httplib2
Requires: python-PrettyTable
Requires: python-keystoneclient
%description
Service Management Client and command line interface.
%prep
%setup -n %{name}-%{version}/%{name}
%build
%{__python2} setup.py build
%install
%global _buildsubdir %{_builddir}/%{name}-%{version}/%{name}
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
install -d %{buildroot}/usr/bin
ls %{_builddir}/
install -m 755 %{_buildsubdir}/usr/bin/smc %{buildroot}/usr/bin
%fdupes %{buildroot}/usr/lib/python2.7/site-packages/sm_client/
%files
%defattr(-,root,root,-)
%dir /usr/lib/python2.7/site-packages/sm_client
/usr/lib/python2.7/site-packages/sm_client/*
/usr/bin/smc
%dir /usr/lib/python2.7/site-packages/sm_client-1.0.0-py2.7.egg-info
/usr/lib/python2.7/site-packages/sm_client-1.0.0-py2.7.egg-info/*
%changelog

View File

@ -1,4 +0,0 @@
SRC_DIR=sm-tools
TAR_NAME=sm-tools
VERSION=1.0
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,69 +0,0 @@
Summary: Service Management Tools
Name: sm-tools
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
%define debug_package %{nil}
BuildRequires: python
BuildRequires: python-setuptools
BuildRequires: python2-pip
BuildRequires: python2-wheel
Requires: python-libs
%prep
%setup -q
%build
%{__python2} setup.py build
%py2_build_wheel
%install
%global _buildsubdir %{_builddir}/%{name}-%{version}
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
mkdir -p $RPM_BUILD_ROOT/wheels
install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
%description
Service Management Tools
#%package -n sm-tools-py-src-tar
#Summary: Service Management Tools source tarball
#Group: base
#%description -n sm-tools-py-src-tar
#Service Management Tools source tarball
#%post -n sm-tools-py-src-tar
## sm-tools-py-src-tar - postinst
# if [ -f $D/usr/src/sm-tools-1.0.tar.bz2 ] ; then
# ( cd $D/ && tar -xf $D/usr/src/sm-tools-1.0.tar.bz2 )
# fi
%files
%defattr(-,root,root,-)
%dir "/usr/lib/python2.7/site-packages/sm_tools"
/usr/lib/python2.7/site-packages/sm_tools/*
%dir "/usr/lib/python2.7/site-packages/sm_tools-1.0.0-py2.7.egg-info"
/usr/lib/python2.7/site-packages/sm_tools-1.0.0-py2.7.egg-info/*
/usr/bin/*
#%files -n sm-tools-py-src-tar
#%defattr(-,-,-,-)
#"/usr/src/sm-tools-1.0.tar.bz2"
%package wheels
Summary: %{name} wheels
%description wheels
Contains python wheels for %{name}
%files wheels
/wheels/*

View File

@ -1,9 +0,0 @@
-------------------------------------------------------------------
Tue Oct 4 22:52:52 UTC 2019 - Abraham Arce <abraham.arce.moreno@intel.com> - 2
- Runtime dependencies.
-------------------------------------------------------------------
Tue Jun 11 13:00:38 UTC 2019 - Abraham Arce <abraham.arce.moreno@intel.com> - 1
- Initial commit

View File

@ -1 +0,0 @@
setBadness('script-without-shebang', 2)

View File

@ -1,37 +0,0 @@
Summary: Service Management Tools
Name: sm-tools
Version: 1.0.0
Release: 0
License: Apache-2.0
Group: Development/Tools/Other
URL: https://opendev.org/starlingx/metal
Source0: %{name}-%{version}.tar.gz
BuildRequires: python
BuildRequires: python2-pip
BuildRequires: python-setuptools
Requires: python-psutil
BuildArch: noarch
%description
StarlingX Service Management Tools
%prep
%setup -n %{name}-%{version}/%{name}
%build
python2 setup.py build
%install
python2 setup.py install -O1 --skip-build --root %{buildroot}
%files
%defattr(-,root,root,-)
%dir "%{_prefix}/lib/python2.7/site-packages/sm_tools"
%{_prefix}/lib/python2.7/site-packages/sm_tools/*
%dir "%{_prefix}/lib/python2.7/site-packages/sm_tools-1.0.0-py2.7.egg-info"
%{_prefix}/lib/python2.7/site-packages/sm_tools-1.0.0-py2.7.egg-info/*
%{_bindir}/*
%changelog

View File

@ -1,2 +0,0 @@
SRC_DIR=$PKG_BASE
TIS_PATCH_VER=PKG_GITREVCOUNT+15

View File

@ -1,140 +0,0 @@
Summary: Service Management Common
Name: sm-common
Version: 1.0.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
BuildRequires: build-info-dev
BuildRequires: glib2-devel
BuildRequires: sqlite-devel
BuildRequires: gcc
BuildRequires: util-linux
BuildRequires: libuuid-devel
Requires: mtce-pmon
Requires: /bin/sh
Requires: sqlite
Requires: util-linux
Requires: systemd
# BuildRequires is to get %_unitdir I think
BuildRequires: systemd
BuildRequires: systemd-devel
Requires(post): systemd
Requires: %{name}-libs = %{version}-%{release}
%description
Service Managment Common
#%package -n sm-common-dbg
#Summary: Service Management Common - Debugging files
#Group: devel
##Suggests: libsqlite3-dbg
##Suggests: libgcc-s-dbg(x86_64)
##Suggests: libglib-2.0-dbg(x86_64)
##Suggests: lmapi-dbg
##Suggests: libstdc++-dbg(x86_64)
##Suggests: libc6-dbg(x86_64)
##Suggests: util-linux-libuuid-dbg
##Recommends: sm-common = 1.0.0-r7.0
#Provides: sm-common-dbg(x86_64) = 1.0.0-r7.0
#%description -n sm-common-dbg
#Service Managment Common This package contains ELF symbols and related
#sources for debugging purposes.
%package libs
Summary: Service Management Common - shared library fles
Group: base
#Provides: sm-common-libs(x86_64) = 1.0.0-r7.0
%description libs
Service Managment Common This package contains shared libraries.
%package dev
Summary: Service Management Common - Development files
Group: devel
Requires: %{name}-libs = %{version}-%{release}
%description dev
Service Managment Common This package contains symbolic links, header
files, and related items necessary for software development.
%package -n sm-eru
Summary: Service Management ERU
Group: base
Requires: %{name}-libs = %{version}-%{release}
%description -n sm-eru
Service Managment ERU.
%prep
%autosetup
%build
VER=%{version}
MAJOR=`echo $VER | awk -F . '{print $1}'`
MINOR=`echo $VER | awk -F . '{print $2}'`
make VER=${VER} VER_MJR=$MAJOR %{?_smp_mflags}
%global _buildsubdir %{_builddir}/%{name}-%{version}
%define pmondir /etc/pmon.d
%install
rm -rf %{buildroot}
VER=%{version}
MAJOR=`echo $VER | awk -F . '{print $1}'`
MINOR=`echo $VER | awk -F . '{print $2}'`
make DEST_DIR=%{buildroot} BIN_DIR=%{_bindir} PMONDIR=%{pmondir} UNIT_DIR=%{_unitdir} LIB_DIR=%{_libdir} INC_DIR=%{_includedir} BUILDSUBDIR=%{_buildsubdir} VER=$VER VER_MJR=$MAJOR install
%post -n sm-eru
/usr/bin/systemctl enable sm-eru.service >/dev/null 2>&1
%files
%license LICENSE
%defattr(-,root,root,-)
#%{_unitdir}/*
#%{_bindir}/*
#/etc/init.d/*
#/etc/pmon.d/*
%files libs
%{_libdir}/*.so.*
%dir "/var/lib/sm"
%files -n sm-eru
%defattr(-,root,root,-)
/etc/init.d/sm-eru
%{pmondir}/sm-eru.conf
/usr/bin/sm-eru
/usr/bin/sm-eru-dump
/usr/lib/systemd/system/sm-eru.service
# Commented out for now, but something seems to auto generate
# a sm-common-debuginfo RPM even without this.
#%files -n sm-common-dbg
#%defattr(-,-,-,-)
#%dir "/usr/lib64/.debug"
#"/usr/lib64/.debug/libsm_common.so.1.0.0"
#%dir "/usr/bin/.debug"
#"/usr/bin/.debug/sm-eru-dump"
#"/usr/bin/.debug/sm-eru"
#%dir "/usr/src/debug/sm-common"
#%dir "/usr/src/debug/sm-common/1.0.0-r7"
#%dir "/usr/src/debug/sm-common/1.0.0-r7/src"
#/usr/src/debug/sm-common/1.0.0-r7/src/*.h
#/usr/src/debug/sm-common/1.0.0-r7/src/*.c
%files dev
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so

View File

@ -1,9 +0,0 @@
-------------------------------------------------------------------
Mon Sep 23 22:03:54 UTC 2019 - Erich Cordoba <erich.cordoba.malibran@intel.com> - 2
- Adding _service and removing source code tarball.
-------------------------------------------------------------------
Fri May 17 22:17:32 UTC 2019 - Erich Cordoba <erich.cm@gmail.com> - 1
- Adding first version of sm-common.

View File

@ -1 +0,0 @@
setBadness('script-without-shebang', 2)

View File

@ -1,118 +0,0 @@
Summary: Service Management Common
Name: sm-common
Version: 1.0.0
Release: 1
License: Apache-2.0
Group: System/Base
URL: https://www.starlingx.io
Source0: %{name}-%{version}.tar.gz
BuildRequires: glib2-devel
BuildRequires: sqlite-devel
BuildRequires: gcc
BuildRequires: util-linux
BuildRequires: libuuid-devel
BuildRequires: gcc-c++
BuildRequires: systemd-sysvinit
BuildRequires: insserv-compat
Requires: libamon1
Requires: /bin/sh
Requires: sqlite
Requires: util-linux
Requires: systemd
BuildRequires: systemd
BuildRequires: systemd-devel
Requires(post): systemd
Requires: %{name}-libs = %{version}-%{release}
%description
Service Managment Common
%package libs
Summary: Service Management Common - shared library fles
Group: System/Base
%description libs
Service Managment Common This package contains shared libraries.
%package devel
Summary: Service Management Common - Development files
Group: Development/Libraries/Other
Requires: %{name}-libs = %{version}-%{release}
%description devel
Service Managment Common This package contains symbolic links, header
files, and related items necessary for software development.
%package -n sm-eru
Summary: Service Management ERU
Group: System/Base
Requires: %{name}-libs = %{version}-%{release}
%description -n sm-eru
Service Managment ERU.
%prep
%setup -n %{name}-%{version}
%build
VER=%{version}
MAJOR=`echo $VER | awk -F . '{print $1}'`
MINOR=`echo $VER | awk -F . '{print $2}'`
make VER=${VER} VER_MJR=$MAJOR %{?_smp_mflags}
%global _buildsubdir %{_builddir}/%{name}-%{version}
%install
rm -rf %{buildroot}
VER=%{version}
MAJOR=`echo $VER | awk -F . '{print $1}'`
MINOR=`echo $VER | awk -F . '{print $2}'`
make DEST_DIR=%{buildroot} BIN_DIR=%{_bindir} UNIT_DIR=%{_unitdir} LIB_DIR=%{_libdir} INC_DIR=%{_includedir} BUILDSUBDIR=%{_buildsubdir} VER=$VER VER_MJR=$MAJOR install
%pre -n sm-eru
%service_add_pre sm-eru.service sm-eru.target
%preun -n sm-eru
%service_del_preun sm-eru.service sm-eru.target
%post -n sm-eru
%service_add_post sm-eru.service sm-eru.target
/usr/bin/systemctl enable sm-eru.service
%postun -n sm-eru
%service_del_postun sm-eru.service sm-eru.target
/usr/bin/systemctl disable sm-eru.service
%post -n sm-common-libs
/sbin/ldconfig
%postun -n sm-common-libs
/sbin/ldconfig
%files
%license LICENSE
%defattr(-,root,root,-)
%files libs
%{_libdir}/*.so.*
%dir %{_sharedstatedir}/sm
%files -n sm-eru
%defattr(-,root,root,-)
%dir %{_sysconfdir}/init.d
%dir %{_sysconfdir}/pmon.d
%{_sysconfdir}/init.d/sm-eru
%config %{_sysconfdir}/pmon.d/sm-eru.conf
%{_bindir}/sm-eru
%{_bindir}/sm-eru-dump
%{_unitdir}/sm-eru.service
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so
%changelog

View File

@ -1,5 +0,0 @@
SRC_DIR=`pwd`
COPY_LIST="$PKG_BASE/LICENSE"
TAR_NAME=sm-db
VERSION=1.0.0
TIS_PATCH_VER=PKG_GITREVCOUNT+19

View File

@ -1,60 +0,0 @@
Summary: Service Management Databases
Name: sm-db
Version: 1.0.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
Source1: LICENSE
BuildRequires: gcc
BuildRequires: sm-common-dev
BuildRequires: glib2-devel
BuildRequires: glibc
BuildRequires: sqlite-devel
BuildRequires: libuuid-devel
%description
Service Managment Databases
%package dev
Summary: Service Management Databases - Development files
Group: devel
Requires: %{name} = %{version}-%{release}
%description dev
Service Managment Databases This package contains symbolic links, header
files, and related items necessary for software development.
%prep
%autosetup
%build
sqlite3 database/sm.db < database/create_sm_db.sql
sqlite3 database/sm.hb.db < database/create_sm_hb_db.sql
VER=%{version}
MAJOR=`echo $VER | awk -F . '{print $1}'`
make VER=${VER} VER_MJR=$MAJOR
%install
rm -rf $RPM_BUILD_ROOT
VER=%{version}
MAJOR=`echo $VER | awk -F . '{print $1}'`
make DEST_DIR=$RPM_BUILD_ROOT VER=$VER VER_MJR=$MAJOR install
%files
%license LICENSE
%defattr(-,root,root,-)
"/usr/lib64/libsm_db.so.1"
"/usr/lib64/libsm_db.so.1.0.0"
%config(noreplace)"/var/lib/sm/sm.hb.db"
%config(noreplace)"/var/lib/sm/sm.db"
"/var/lib/sm/patches/sm-patch.sql"
%files dev
%defattr(-,root,root,-)
/usr/lib64/libsm_db.so
/usr/include/*.h

View File

@ -1,9 +0,0 @@
-------------------------------------------------------------------
Wed Jun 26 17:33:07 UTC 2019 - Erich Cordoba <erich.cordoba.malibran@intel.com> - 2
- Update tarball to match other ha/sm projects.
-------------------------------------------------------------------
Tue May 21 20:02:52 UTC 2019 - Erich Cordoba <erich.cordoba.malibran@intel.com> - 1
- Adding first version for sm-db.

View File

@ -1 +0,0 @@
setBadness('script-without-shebang', 2)

View File

@ -1,70 +0,0 @@
Summary: Service Management Databases
Name: libsm_db1
Version: 1.0.0
Release: 5
License: Apache-2.0
Group: System/Base
URL: https://www.starlingx.io
Source0: %{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: sm-common-devel
BuildRequires: glib2-devel
BuildRequires: glibc
BuildRequires: sqlite3-devel
BuildRequires: libuuid-devel
BuildRequires: libsqlite3-0
BuildRequires: sqlite3
Requires: sqlite3
%description
The StarlingX Service Managment Databases
%package devel
Summary: Service Management Databases - Development files
Group: Development/Libraries/Other
Requires: %{name} = %{version}-%{release}
%description devel
Service Managment Databases This package contains symbolic links, header
files, and related items necessary for software development.
%prep
%setup -n %{name}-%{version}
%build
sqlite3 database/sm.db < database/create_sm_db.sql
sqlite3 database/sm.hb.db < database/create_sm_hb_db.sql
VER=%{version}
export SUSE_ASNEEDED=0
MAJOR=`echo $VER | awk -F . '{print $1}'`
make VER=${VER} VER_MJR=$MAJOR
%install
VER=%{version}
MAJOR=`echo $VER | awk -F . '{print $1}'`
make DEST_DIR=$RPM_BUILD_ROOT VER=$VER VER_MJR=$MAJOR install
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%license LICENSE
%defattr(-,root,root,-)
%dir %{_sharedstatedir}/sm/patches
%{_libdir}/libsm_db.so.1
%{_libdir}/libsm_db.so.1.0.0
%config(noreplace) %{_sharedstatedir}/sm/sm.hb.db
%config(noreplace) %{_sharedstatedir}/sm/sm.db
%{_sharedstatedir}/sm/patches/sm-patch.sql
%files devel
%defattr(-,root,root,-)
%{_libdir}/libsm_db.so
%{_includedir}/*.h
%changelog

View File

@ -1,5 +0,0 @@
SRC_DIR=$PKG_BASE
COPY_LIST="$PKG_BASE/LICENSE"
TAR_NAME=sm
VERSION=1.0.0
TIS_PATCH_VER=PKG_GITREVCOUNT+24

View File

@ -1,85 +0,0 @@
Summary: Service Management
Name: sm
Version: 1.0.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
Source1: LICENSE
BuildRequires: fm-common-dev
BuildRequires: sm-db-dev
BuildRequires: sm-common-dev
BuildRequires: mtce-dev
BuildRequires: glib2-devel
BuildRequires: glibc
BuildRequires: sqlite-devel
BuildRequires: gcc
BuildRequires: libuuid-devel
BuildRequires: json-c
BuildRequires: json-c-devel
BuildRequires: openssl-devel
# BuildRequires is to get %_unitdir I think
BuildRequires: systemd
BuildRequires: systemd-devel
Requires(post): systemd
Requires(preun): systemd
# Needed for /etc/init.d, can be removed when we go fully systemd
Requires: chkconfig
# Needed for /etc/pmon.d
Requires: mtce-pmon
# Needed for /etc/logrotate.d
Requires: logrotate
# for collect stuff
Requires: time
%description
Service Managment
#%package -n sm-dbg
#Summary: Service Management - Debugging files
#Group: devel
#Recommends: sm = 1.0.0-r10.0
#%description -n sm-dbg
#Service Managment This package contains ELF symbols and related sources
#for debugging purposes.
%define pmondir /etc/pmon.d
%prep
%autosetup
%build
VER=%{version}
MAJOR=`echo $VER | awk -F . '{print $1}'`
make -j"%(nproc)"
%install
rm -rf %{buildroot}
VER=%{version}
MAJOR=`echo $VER | awk -F . '{print $1}'`
make DEST_DIR=%{buildroot} PMONDIR=%{pmondir} UNIT_DIR=%{_unitdir} install
%post
/usr/bin/systemctl enable sm.service >/dev/null 2>&1
/usr/bin/systemctl enable sm-shutdown.service >/dev/null 2>&1
%files
%license LICENSE
%defattr(-,root,root,-)
%{_unitdir}/*
"/usr/bin/sm"
"/usr/local/sbin/sm-notify"
"/usr/local/sbin/sm-troubleshoot"
"/usr/local/sbin/sm-notification"
"/etc/init.d/sm"
"/etc/init.d/sm-shutdown"
"%{pmondir}/sm.conf"
"/etc/logrotate.d/sm.logrotate"

View File

@ -1,19 +0,0 @@
-------------------------------------------------------------------
Mon Sep 23 22:17:37 UTC 2019 - Erich Cordoba <erich.cordoba.malibran@intel.com> - 4
- Removing patches that were merged in source code.
-------------------------------------------------------------------
Mon Sep 16 15:45:00 UTC 2019 - Dominig ar Foll Intel Open Source <dominig.arfoll@fridu.net> - 3
- move to _service to get source from git repo.
-------------------------------------------------------------------
Wed Jun 26 03:23:14 UTC 2019 - Erich Cordoba <erich.cordoba.malibran@intel.com> - 2
- Add unmodified tarball and upstream packages.
-------------------------------------------------------------------
Mon Jun 17 17:35:48 UTC 2019 - Erich Cordoba <erich.cordoba.malibran@intel.com> - 1
- Initial commit for building sm in openSUSE.

View File

@ -1 +0,0 @@
setBadness('script-without-shebang', 2)

View File

@ -1,92 +0,0 @@
Summary: Service Management
Name: sm
Version: 1.0.0
Release: 2
License: Apache-2.0
Group: System/Base
URL: https://www.starlingx.io
Source0: %{name}-%{version}.tar.gz
# Patches no applied to upstream yet.
Patch0: 0001-Change-shebang-to-help-rpm-runtime-dependency-detect.patch
BuildRequires: gcc-c++
BuildRequires: fm-common-dev
BuildRequires: libsm_db1-devel
BuildRequires: sm-common-devel
BuildRequires: mtce-devel
BuildRequires: glib2-devel
BuildRequires: glibc
BuildRequires: sqlite3-devel
BuildRequires: gcc
BuildRequires: libuuid-devel
BuildRequires: libjson-c3
BuildRequires: libjson-c-devel
BuildRequires: openssl-devel
BuildRequires: systemd-sysvinit
BuildRequires: insserv-compat
BuildRequires: systemd
BuildRequires: systemd-devel
Requires(post): systemd
Requires(preun): systemd
# Needed for /etc/init.d, can be removed when we go fully systemd
Requires: aaa_base
# Needed for /etc/logrotate.d
Requires: logrotate
# for collect stuff
Requires: time
%description
The StarlingX Service Managment system.
%prep
%setup -n %{name}-%{version}
%patch0 -p3
%build
VER=%{version}
MAJOR=`echo $VER | awk -F . '{print $1}'`
make -j"%(nproc)"
%install
rm -rf %{buildroot}
VER=%{version}
MAJOR=`echo $VER | awk -F . '{print $1}'`
make DEST_DIR=%{buildroot} UNIT_DIR=%{_unitdir} install
%pre
%service_add_pre sm.service
%service_add_pre sm-shutdown.service
%preun
%service_del_preun sm.service
%service_del_preun sm-shutdown.service
%post
%service_add_post sm.service
%service_add_post sm-shutdown.service
/usr/bin/systemctl enable sm.service >/dev/null 2>&1
/usr/bin/systemctl enable sm-shutdown.service >/dev/null 2>&1
%postun
%service_del_postun sm.service
%service_del_postun sm-shutdown.service
%files
%license LICENSE
%defattr(-,root,root,-)
%dir %{_sysconfdir}/pmon.d
%{_unitdir}/*
%{_bindir}/sm
/usr/local/sbin/sm-notify
/usr/local/sbin/sm-troubleshoot
/usr/local/sbin/sm-notification
%{_sysconfdir}/init.d/sm
%{_sysconfdir}/init.d/sm-shutdown
%config %{_sysconfdir}/pmon.d/sm.conf
%config %{_sysconfdir}/logrotate.d/sm.logrotate
%changelog

View File

@ -1,2 +0,0 @@
SRC_DIR="$PKG_BASE/src"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,30 +0,0 @@
Summary: Miscellaneous OCF scripts added by StarlingX
Name: stx-ocf-scripts
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
Requires: openstack-ras
%description
Miscellaneous OCF scripts added by StarlingX
%prep
%setup
%build
%install
install -d -m 755 ${RPM_BUILD_ROOT}/usr/lib/ocf/resource.d/openstack
install -p -D -m 755 ocf/* ${RPM_BUILD_ROOT}/usr/lib/ocf/resource.d/openstack/
%files
%dir %attr(0755,root,root) /usr/lib/ocf/resource.d/openstack
%defattr(-,root,root,-)
/usr/lib/ocf/resource.d/openstack/*