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: 49959
Change-Id: I294e6943b4c7b95820c98991424f130dc85c22ad
Signed-off-by: Scott Little <scott.little@windriver.com>
This commit is contained in:
Scott Little 2024-04-26 11:41:17 -04:00
parent 6142d9f116
commit 230aa6fd97
26 changed files with 0 additions and 1053 deletions

View File

@ -1 +0,0 @@
flock

View File

@ -1 +0,0 @@
./nova-api-proxy

View File

@ -1,2 +0,0 @@
nova-api-proxy-wheels
nfv-wheels

View File

@ -1,7 +0,0 @@
# List of packages to be included/installed in guest image
# If these have dependencies, they will be pulled in automatically
#
#
# guest extensions
#

View File

@ -1,7 +0,0 @@
# List of packages to be included/installed in RT guest image
# If these have dependencies, they will be pulled in automatically
#
#
# guest extensions
#

View File

@ -1,15 +0,0 @@
# List of packages to be included/installed in ISO
# If these have dependencies, they will be pulled in automatically
#
# nfv
nfv
nfv-common
nfv-plugins
nfv-tools
nfv-vim
nfv-client
# mtce-guest
mtce-guestAgent
mtce-guestServer

View File

@ -1,3 +0,0 @@
nova-api-proxy
nfv
mtce-guest

View File

@ -1 +0,0 @@
./nova-api-proxy

View File

@ -1,2 +0,0 @@
nova-api-proxy-wheels
nfv-wheels

View File

@ -1,3 +0,0 @@
SRC_DIR="src"
TIS_PATCH_VER=PKG_GITREVCOUNT+129
BUILD_IS_SLOW=5

View File

@ -1,171 +0,0 @@
Summary: Maintenance Guest Server/Agent Package
Name: mtce-guest
Version: 1.0
%define patchlevel %{tis_patch_ver}
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: openssl
BuildRequires: openssl-devel
BuildRequires: json-c
BuildRequires: json-c-devel
BuildRequires: libevent
BuildRequires: libevent-devel
BuildRequires: libuuid
BuildRequires: libuuid-devel
BuildRequires: fm-common
BuildRequires: fm-common-dev
BuildRequires: mtce-common-dev >= 1.0
BuildRequires: systemd-devel
BuildRequires: cppcheck
%description
Maintenance Guest Agent Service and Server assists in VM guest
heartbeat control and failure reporting at the controller level.
%package -n mtce-guestAgent
Summary: Maintenance Guest Agent Package
Group: base
Requires: dpkg
Requires: time
Requires: libjson-c.so.2()(64bit)
Requires: libstdc++.so.6(CXXABI_1.3)(64bit)
Requires: librt.so.1(GLIBC_2.2.5)(64bit)
Requires: libfmcommon.so.1()(64bit)
Requires: libstdc++.so.6(GLIBCXX_3.4.9)(64bit)
Requires: fm-common >= 1.0
Requires: libc.so.6(GLIBC_2.2.5)(64bit)
Requires: libstdc++.so.6(GLIBCXX_3.4.11)(64bit)
Requires: /bin/sh
Requires: librt.so.1()(64bit)
Requires: libc.so.6(GLIBC_2.3)(64bit)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Requires: libpthread.so.0(GLIBC_2.2.5)(64bit)
Requires: librt.so.1(GLIBC_2.3.3)(64bit)
Requires: libgcc_s.so.1(GCC_3.0)(64bit)
Requires: libevent >= 2.0.21
Requires: libevent-2.0.so.5()(64bit)
Requires: libuuid.so.1()(64bit)
Requires: libm.so.6()(64bit)
Requires: rtld(GNU_HASH)
Requires: libstdc++.so.6()(64bit)
Requires: libc.so.6()(64bit)
Requires: libgcc_s.so.1()(64bit)
Requires: libstdc++.so.6(GLIBCXX_3.4)(64bit)
Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
Requires: libpthread.so.0()(64bit)
%description -n mtce-guestAgent
Maintenance Guest Agent Service assists in
VM guest heartbeat control and failure reporting at the controller
level.
%package -n mtce-guestServer
Summary: Maintenance Guest Server Package
Group: base
Requires: util-linux
Requires: /bin/bash
Requires: /bin/systemctl
Requires: dpkg
Requires: libjson-c.so.2()(64bit)
Requires: libstdc++.so.6(CXXABI_1.3)(64bit)
Requires: librt.so.1(GLIBC_2.2.5)(64bit)
Requires: libfmcommon.so.1()(64bit)
Requires: libstdc++.so.6(GLIBCXX_3.4.9)(64bit)
Requires: fm-common >= 1.0
Requires: libc.so.6(GLIBC_2.2.5)(64bit)
Requires: libstdc++.so.6(GLIBCXX_3.4.11)(64bit)
Requires: /bin/sh
Requires: librt.so.1()(64bit)
Requires: libc.so.6(GLIBC_2.3)(64bit)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Requires: libpthread.so.0(GLIBC_2.2.5)(64bit)
Requires: librt.so.1(GLIBC_2.3.3)(64bit)
Requires: libgcc_s.so.1(GCC_3.0)(64bit)
Requires: libevent >= 2.0.21
Requires: libevent-2.0.so.5()(64bit)
Requires: libuuid.so.1()(64bit)
Requires: libm.so.6()(64bit)
Requires: rtld(GNU_HASH)
Requires: libstdc++.so.6()(64bit)
Requires: libc.so.6(GLIBC_2.4)(64bit)
Requires: libc.so.6()(64bit)
Requires: libgcc_s.so.1()(64bit)
Requires: libstdc++.so.6(GLIBCXX_3.4)(64bit)
Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
Requires: libpthread.so.0()(64bit)
%description -n mtce-guestServer
Maintenance Guest Server assists in VM guest
heartbeat control and failure reporting at the worker level.
%define local_bindir /usr/local/bin
%prep
%setup
# build mtce-guestAgent and mtce-guestServer package
%build
VER=%{version}
MAJOR=$(echo $VER | awk -F . '{print $1}')
MINOR=$(echo $VER | awk -F . '{print $2}')
make MAJOR=$MAJOR MINOR=$MINOR %{?_smp_mflags} build
# install mtce-guestAgent and mtce-guestServer package
%install
make install \
DESTDIR=%{buildroot} \
PREFIX=%{buildroot}/usr/local \
SYSCONFDIR=%{buildroot}%{_sysconfdir} \
LOCALBINDIR=%{buildroot}%{local_bindir} \
UNITDIR=%{buildroot}%{_unitdir}
install -m 644 -p -D scripts/guestServer.service %{buildroot}%{_unitdir}/guestServer.service
install -m 644 -p -D scripts/guestAgent.service %{buildroot}%{_unitdir}/guestAgent.service
# enable all services in systemd
%post -n mtce-guestServer
/bin/systemctl enable guestServer.service
%files -n mtce-guestAgent
%license LICENSE
%defattr(-,root,root,-)
# create mtc and its tmp dir
%dir %{_sysconfdir}/mtc
%dir %{_sysconfdir}/mtc/tmp
# config files - non-modifiable
%{_sysconfdir}/mtc/guestAgent.ini
%{_unitdir}/guestAgent.service
%{_sysconfdir}/logrotate.d/guestAgent.logrotate
/usr/lib/ocf/resource.d/platform/guestAgent
%{_sysconfdir}/init.d/guestAgent
%{local_bindir}/guestAgent
%files -n mtce-guestServer
%license LICENSE
%defattr(-,root,root,-)
# create mtc and its tmp dir
%dir %{_sysconfdir}/mtc
%dir %{_sysconfdir}/mtc/tmp
# config files - non-modifiable
%{_sysconfdir}/mtc/guestServer.ini
%{_sysconfdir}/pmon.d/guestServer.conf
%{_sysconfdir}/logrotate.d/guestServer.logrotate
%{_unitdir}/guestServer.service
%{_sysconfdir}/init.d/guestServer
%{local_bindir}/guestServer

View File

@ -1,13 +0,0 @@
-------------------------------------------------------------------
Mon Sep 16 15:45:00 UTC 2019 - Dominig ar Foll Intel Open Source <dominig.arfoll@fridu.net>
- move to _service to get source from git repo
-------------------------------------------------------------------
Wed Jun 19 12:45:22 UTC 2019 - Marcela Rosales <marcelarosalesj@gmail.com>
- Use openSUSE RPMs for the Requires tags to fix installation errors.
-------------------------------------------------------------------
Wed Jun 12 14:07:21 UTC 2019 - Marcela Rosales <marcelarosalesj@gmail.com>
- Initial Commit

View File

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

View File

@ -1,180 +0,0 @@
Summary: Maintenance Guest Server/Agent Package
Name: mtce-guest
Version: 1.0.0
%define patchlevel %{tis_patch_ver}
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: System/Base
URL: https://opendev.org/starlingx/nfv
Source0: %{name}-%{version}.tar.gz
BuildRequires: openssl
BuildRequires: openssl-devel
BuildRequires: libjson-c3
BuildRequires: libjson-c-devel
BuildRequires: libevent
BuildRequires: libevent-devel
BuildRequires: libuuid1
BuildRequires: libuuid-devel
BuildRequires: fm-common
BuildRequires: fm-common-dev
BuildRequires: mtce-common-devel >= 1.0
BuildRequires: systemd
BuildRequires: systemd-sysvinit
BuildRequires: sysvinit-tools
BuildRequires: insserv-compat
BuildRequires: cppcheck
BuildRequires: gcc-c++
%description
Maintenance Guest Agent Service and Server assists in VM guest
heartbeat control and failure reporting at the controller level.
%package -n mtce-guestAgent
Summary: Maintenance Guest Agent Package
Group: System/Base
Requires: dpkg
Requires: time
Requires: libjson-c3
Requires: libstdc++6
Requires: glibc
Requires: fm-common >= 1.0
Requires: bash >= 4.4
Requires: libgcc_s1
Requires: libevent >= 2.0.21
Requires: libuuid1
Requires: systemd
Requires: systemd-sysvinit
Requires: sysvinit-tools
Requires: insserv-compat
Requires: logrotate
Requires: openssl
%description -n mtce-guestAgent
Maintenance Guest Agent Service assists in
VM guest heartbeat control and failure reporting at the controller
level.
%package -n mtce-guestServer
Summary: Maintenance Guest Server Package
Group: System/Base
Requires: util-linux
Requires: bash >= 4.4
Requires: systemd
Requires: dpkg
Requires: libjson-c3
Requires: libjson-c-devel
Requires: libstdc++6
Requires: glibc
Requires: fm-common >= 1.0
Requires: libgcc_s1
Requires: libevent >= 2.0.21
Requires: libuuid1
Requires: logrotate
Requires: openssl
%description -n mtce-guestServer
Maintenance Guest Server assists in VM guest
heartbeat control and failure reporting at the worker level.
%define local_bindir /usr/local/bin
%prep
%setup -n %{name}-%{version}/src
# build mtce-guestAgent and mtce-guestServer package
%build
VER=%{version}
MAJOR=$(echo $VER | awk -F . '{print $1}')
MINOR=$(echo $VER | awk -F . '{print $2}')
make MAJOR=$MAJOR MINOR=$MINOR %{?_smp_mflags} build
# install mtce-guestAgent and mtce-guestServer package
%install
make install \
DESTDIR=%{buildroot} \
PREFIX=%{buildroot}/usr/local \
SYSCONFDIR=%{buildroot}%{_sysconfdir} \
LOCALBINDIR=%{buildroot}%{local_bindir} \
UNITDIR=%{buildroot}%{_unitdir}
# guestServer
%pre -n mtce-guestServer
%service_add_pre guestServer.service
# enable all services in systemd
%post -n mtce-guestServer
%service_add_post guestServer.service
systemctl enable guestServer.service
%preun -n mtce-guestServer
%service_del_preun guestServer.service
%postun -n mtce-guestServer
%service_del_postun guestServer.service
%insserv_cleanup
# guestAgent
%pre -n mtce-guestAgent
%service_add_pre guestAgent.service
%post -n mtce-guestAgent
%service_add_post guestAgent.service
%preun -n mtce-guestAgent
%service_del_preun guestAgent.service
%postun -n mtce-guestAgent
%service_del_postun guestAgent.service
%insserv_cleanup
%files -n mtce-guestAgent
%license LICENSE
%defattr(-,root,root,-)
# create mtc and its tmp dir
%dir %{_sysconfdir}/mtc
%dir %{_sysconfdir}/mtc/tmp
# config files - non-modifiable
%{_sysconfdir}/mtc/guestAgent.ini
%{_unitdir}/guestAgent.service
%{_sysconfdir}/logrotate.d/guestAgent.logrotate
/usr/lib/ocf/resource.d/platform/guestAgent
%{_sysconfdir}/init.d/guestAgent
%{local_bindir}/guestAgent
%{_prefix}/lib/ocf
%{_prefix}/lib/ocf/resource.d
%{_prefix}/lib/ocf/resource.d/platform
%config %{_sysconfdir}/logrotate.d/guestAgent.logrotate
%config %{_sysconfdir}/mtc/guestAgent.ini
%files -n mtce-guestServer
%license LICENSE
%defattr(-,root,root,-)
# create mtc and its tmp dir
%dir %{_sysconfdir}/mtc
%dir %{_sysconfdir}/mtc/tmp
# config files - non-modifiable
%{_sysconfdir}/mtc/guestServer.ini
%{_sysconfdir}/pmon.d/guestServer.conf
%{_sysconfdir}/logrotate.d/guestServer.logrotate
%{_unitdir}/guestServer.service
%{_sysconfdir}/init.d/guestServer
%{local_bindir}/guestServer
%{_sysconfdir}/pmon.d
%config %{_sysconfdir}/logrotate.d/guestServer.logrotate
%config %{_sysconfdir}/mtc/guestServer.ini
%config %{_sysconfdir}/pmon.d/guestServer.conf
%changelog

View File

@ -1,5 +0,0 @@
SRC_DIR=.
EXCLUDE_LIST_FROM_TAR="centos opensuse .stestr \
nfv-client/build nfv-common/build nfv-debug-tools nfv-plugins/build \
nfv-tests nfv-tools/build nfv-vim/build"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,212 +0,0 @@
Summary: Network Function Virtualization
Name: nfv
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-setuptools
BuildRequires: python2-pip
BuildRequires: python2-wheel
Requires: python-requests
%description
StarlingX Network Function Virtualization
%define local_bindir /usr/bin/
%define pythonroot /usr/lib64/python2.7/site-packages
%define build_python() ( \
pushd %1; \
%{__python} setup.py build; \
%{__python} setup.py bdist_wheel; \
popd)
%define install_python() ( \
pushd %1; \
%{__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/; \
popd)
# TODO: nfv-docs
%package -n nfv-common
Requires: librt.so.1()(64bit)
Summary: Network Function Virtualization Common
Group: base
%description -n nfv-common
Network Function Virtualization Common
%package -n nfv-plugins
Summary: Network Function Virtualization Plugins
Group: base
%description -n nfv-plugins
Network Function Virtualization Plugins
%package -n nfv-tools
Summary: Network Function Virtualization Tools
Group: base
%description -n nfv-tools
Network Function Virtualization Tools
%package -n nfv-vim
Summary: Virtual Infrastructure Manager
Group: base
%description -n nfv-vim
Virtual Infrastructure Manager
%package -n nfv-client
Summary: Network Function Virtualization Client
Group: base
%description -n nfv-client
Network Function Virtualization Client
%prep
%setup
%build
%build_python nfv-common
%build_python nfv-plugins
%build_python nfv-tools
%build_python nfv-vim
%build_python nfv-client
%install
%install_python nfv-common
%install_python nfv-plugins
%install_python nfv-tools
%install_python nfv-vim
%install_python nfv-client
# nfv-client
install -d -m 755 %{buildroot}%{_sysconfdir}/bash_completion.d
install -m 444 nfv-client/scripts/sw-manager.completion %{buildroot}%{_sysconfdir}/bash_completion.d/sw-manager
# nfv-plugins
install -d -m 755 %{buildroot}/%{_sysconfdir}/nfv/
install -d -m 755 %{buildroot}/%{_sysconfdir}/nfv/nfv_plugins/
install -d -m 755 %{buildroot}/%{_sysconfdir}/nfv/nfv_plugins/alarm_handlers/
install -p -D -m 600 nfv-plugins/nfv_plugins/alarm_handlers/config.ini %{buildroot}/%{_sysconfdir}/nfv/nfv_plugins/alarm_handlers/config.ini
install -d -m 755 %{buildroot}/%{_sysconfdir}/nfv/nfv_plugins/event_log_handlers/
install -p -D -m 600 nfv-plugins/nfv_plugins/event_log_handlers/config.ini %{buildroot}/%{_sysconfdir}/nfv/nfv_plugins/event_log_handlers/config.ini
install -d -m 755 %{buildroot}/%{_sysconfdir}/nfv/nfv_plugins/nfvi_plugins/
install -p -D -m 600 nfv-plugins/nfv_plugins/nfvi_plugins/config.ini %{buildroot}/%{_sysconfdir}/nfv/nfv_plugins/nfvi_plugins/config.ini
install -d -m 755 %{buildroot}/
install -p -D -m 644 nfv-plugins/scripts/nfvi-plugins.logrotate %{buildroot}/%{_sysconfdir}/logrotate.d/nfvi-plugins.logrotate
# nfv-vim
# use actual value of %{_sysconfdir} to replace @SYSCONFDIR@ in config files
# use actual value of %{pythonroot} to replace @PYTHONROOT@ in config.ini
sed -i -e 's|@SYSCONFDIR@|%{_sysconfdir}|g' nfv-vim/scripts/vim
sed -i -e 's|@SYSCONFDIR@|%{_sysconfdir}|g' nfv-vim/scripts/vim-api
sed -i -e 's|@SYSCONFDIR@|%{_sysconfdir}|g' nfv-vim/scripts/vim-webserver
sed -i -e 's|@SYSCONFDIR@|%{_sysconfdir}|g' nfv-vim/nfv_vim/config.ini
sed -i -e 's|@PYTHONROOT@|%{pythonroot}|g' nfv-vim/nfv_vim/config.ini
install -d -m 755 %{buildroot}/usr/lib/ocf/resource.d/nfv
install -p -D -m 755 nfv-vim/scripts/vim %{buildroot}/usr/lib/ocf/resource.d/nfv/vim
install -p -D -m 755 nfv-vim/scripts/vim-api %{buildroot}/usr/lib/ocf/resource.d/nfv/vim-api
install -p -D -m 755 nfv-vim/scripts/vim-webserver %{buildroot}/usr/lib/ocf/resource.d/nfv/vim-webserver
install -d -m 755 %{buildroot}/%{_sysconfdir}/nfv/
install -d -m 755 %{buildroot}/%{_sysconfdir}/nfv/vim/
install -p -D -m 600 nfv-vim/nfv_vim/config.ini %{buildroot}/%{_sysconfdir}/nfv/vim/config.ini
install -p -D -m 600 nfv-vim/nfv_vim/debug.ini %{buildroot}/%{_sysconfdir}/nfv/vim/debug.ini
%post -n nfv-common
%post -n nfv-plugins
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%files -n nfv-common
%defattr(-,root,root,-)
%doc nfv-common/LICENSE
%dir %{pythonroot}/nfv_common/
%{pythonroot}/nfv_common/*
%dir %{pythonroot}/windriver_nfv_common_plugins-%{version}.0-py2.7.egg-info
%{pythonroot}/windriver_nfv_common_plugins-%{version}.0-py2.7.egg-info/*
%files -n nfv-plugins
%defattr(-,root,root,-)
%doc nfv-plugins/LICENSE
%dir %{_sysconfdir}/logrotate.d/
%{_sysconfdir}/logrotate.d/nfvi-plugins.logrotate
%dir %{_sysconfdir}/nfv/nfv_plugins/
%config(noreplace)/%{_sysconfdir}/nfv/nfv_plugins/alarm_handlers/config.ini
%config(noreplace)/%{_sysconfdir}/nfv/nfv_plugins/event_log_handlers/config.ini
%config(noreplace)/%{_sysconfdir}/nfv/nfv_plugins/nfvi_plugins/config.ini
%{_sysconfdir}/nfv/nfv_plugins/*
%dir %{pythonroot}/nfv_plugins/
%{pythonroot}/nfv_plugins/*
%dir %{pythonroot}/windriver_nfv_plugins-%{version}.0-py2.7.egg-info
%{pythonroot}/windriver_nfv_plugins-%{version}.0-py2.7.egg-info/*
%files -n nfv-tools
%defattr(-,root,root,-)
%doc nfv-tools/LICENSE
%{local_bindir}/nfv-forensic
%{local_bindir}/nfv-notify
%dir %{pythonroot}/nfv_tools/
%{pythonroot}/nfv_tools/*
%dir %{pythonroot}/nfv_tools-%{version}.0-py2.7.egg-info
%{pythonroot}/nfv_tools-%{version}.0-py2.7.egg-info/*
%files -n nfv-vim
%defattr(-,root,root,-)
%doc nfv-vim/LICENSE
%{local_bindir}/nfv-vim
%{local_bindir}/nfv-vim-api
%{local_bindir}/nfv-vim-manage
%{local_bindir}/nfv-vim-webserver
%dir %{_sysconfdir}/nfv/vim/
%config(noreplace)/%{_sysconfdir}/nfv/vim/config.ini
%config(noreplace)/%{_sysconfdir}/nfv/vim/debug.ini
%dir /usr/lib/ocf/resource.d/nfv/
/usr/lib/ocf/resource.d/nfv/vim
/usr/lib/ocf/resource.d/nfv/vim-api
/usr/lib/ocf/resource.d/nfv/vim-webserver
%dir %{pythonroot}/nfv_vim/
%{pythonroot}/nfv_vim/*
%dir %{pythonroot}/nfv_vim-%{version}.0-py2.7.egg-info
%{pythonroot}/nfv_vim-%{version}.0-py2.7.egg-info/*
%files -n nfv-client
%defattr(-,root,root,-)
%doc nfv-client/LICENSE
%{local_bindir}/sw-manager
%{_sysconfdir}/bash_completion.d/sw-manager
%dir %{pythonroot}/nfv_client/
%{pythonroot}/nfv_client/*
%dir %{pythonroot}/nfv_client-%{version}.0-py2.7.egg-info
%{pythonroot}/nfv_client-%{version}.0-py2.7.egg-info/*
%package wheels
Summary: NFV wheels
%description wheels
Contains python wheels for NFV
%files wheels
/wheels/*

View File

@ -1,8 +0,0 @@
-------------------------------------------------------------------
Mon Sep 16 15:45:00 UTC 2019 - Dominig ar Foll Intel Open Source <dominig.arfoll@fridu.net>
- move to _service to get source from git repo
-------------------------------------------------------------------
Wed Jun 5 08:33:59 UTC 2019 - Marcela Rosales <marcelarosalesj@gmail.com>
- Initial Commit

View File

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

View File

@ -1,207 +0,0 @@
Summary: Network Function Virtualization
Name: nfv
Version: 1.0.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: System/Packages
URL: https://opendev.org/starlingx/nfv/
Source0: %{name}-%{version}.tar.gz
%define debug_package %{nil}
BuildRequires: python-setuptools
BuildRequires: python2-pip
BuildRequires: fdupes
%description
StarlingX software for Network Function Virtualization Infrastructure support.
%define local_bindir /usr/bin/
%define pythonroot /usr/lib64/python2.7/site-packages
%define build_python() { \
pushd %1; \
%{__python} setup.py build; \
popd;}
%define install_python() { \
pushd %1; \
%{__python} setup.py install \
--root=$RPM_BUILD_ROOT \
--install-lib=%{pythonroot} \
--prefix=/usr \
--install-data=/usr/share \
--single-version-externally-managed; \
popd;}
%package -n nfv-common
Requires: librt.so.1()(64bit)
Summary: Network Function Virtualization Common
Group: System/Packages
%description -n nfv-common
Network Function Virtualization Common
%package -n nfv-plugins
Summary: Network Function Virtualization Plugins
Group: System/Packages
%description -n nfv-plugins
Network Function Virtualization Plugins
%package -n nfv-tools
Summary: Network Function Virtualization Tools%{pythonroot}
Group: System/Packages
%description -n nfv-tools
Network Function Virtualization Tools
%package -n nfv-vim
Summary: Virtual Infrastructure Manager
Group: System/Packages
%description -n nfv-vim
Virtual Infrastructure Manager
%package -n nfv-client
Summary: Network Function Virtualization Client
Group: System/Packages
%description -n nfv-client
Network Function Virtualization Client
%prep
%setup -n %{name}-%{version}
# use actual value of %%{_systx-nfv-%{version}.tar.gzsconfdir} to repace @SYSCONFDIR@ in config files
# use actual value of %%{pythonroot} to replace @PYTHONROOT@ in config.ini.
sed -i -e 's|@SYSCONFDIR@|%{_sysconfdir}|g' nfv-vim/scripts/vim
sed -i -e 's|@SYSCONFDIR@|%{_sysconfdir}|g' nfv-vim/scripts/vim-api
sed -i -e 's|@SYSCONFDIR@|%{_sysconfdir}|g' nfv-vim/scripts/vim-webserver
sed -i -e 's|@SYSCONFDIR@|%{_sysconfdir}|g' nfv-vim/nfv_vim/config.ini
sed -i -e 's|@PYTHONROOT@|%{pythonroot}|g' nfv-vim/nfv_vim/config.ini
%build
%build_python nfv-common
%build_python nfv-plugins
%build_python nfv-tools
%build_python nfv-vim
%build_python nfv-client
%install
%install_python nfv-common
%install_python nfv-plugins
%install_python nfv-tools
%install_python nfv-vim
%install_python nfv-client
# nfv-client
install -d -m 755 %{buildroot}%{_sysconfdir}/bash_completion.d
install -m 444 nfv-client/scripts/sw-manager.completion %{buildroot}%{_sysconfdir}/bash_completion.d/sw-manager
# nfv-plugins
install -d -m 755 %{buildroot}/%{_sysconfdir}/nfv/
install -d -m 755 %{buildroot}/%{_sysconfdir}/nfv/nfv_plugins/
install -d -m 755 %{buildroot}/%{_sysconfdir}/nfv/nfv_plugins/alarm_handlers/
install -p -D -m 600 nfv-plugins/nfv_plugins/alarm_handlers/config.ini %{buildroot}/%{_sysconfdir}/nfv/nfv_plugins/alarm_handlers/config.ini
install -d -m 755 %{buildroot}/%{_sysconfdir}/nfv/nfv_plugins/event_log_handlers/
install -p -D -m 600 nfv-plugins/nfv_plugins/event_log_handlers/config.ini %{buildroot}/%{_sysconfdir}/nfv/nfv_plugins/event_log_handlers/config.ini
install -d -m 755 %{buildroot}/%{_sysconfdir}/nfv/nfv_plugins/nfvi_plugins/
install -p -D -m 600 nfv-plugins/nfv_plugins/nfvi_plugins/config.ini %{buildroot}/%{_sysconfdir}/nfv/nfv_plugins/nfvi_plugins/config.ini
install -d -m 755 %{buildroot}/
install -p -D -m 644 nfv-plugins/scripts/nfvi-plugins.logrotate %{buildroot}/%{_sysconfdir}/logrotate.d/nfvi-plugins.logrotate
# nfv-vim
install -d -m 755 %{buildroot}/usr/lib/ocf/resource.d/nfv
install -p -D -m 755 nfv-vim/scripts/vim %{buildroot}/usr/lib/ocf/resource.d/nfv/vim
install -p -D -m 755 nfv-vim/scripts/vim-api %{buildroot}/usr/lib/ocf/resource.d/nfv/vim-api
install -p -D -m 755 nfv-vim/scripts/vim-webserver %{buildroot}/usr/lib/ocf/resource.d/nfv/vim-webserver
install -d -m 755 %{buildroot}/%{_sysconfdir}/nfv/
install -d -m 755 %{buildroot}/%{_sysconfdir}/nfv/vim/
install -p -D -m 600 nfv-vim/nfv_vim/config.ini %{buildroot}/%{_sysconfdir}/nfv/vim/config.ini
install -p -D -m 600 nfv-vim/nfv_vim/debug.ini %{buildroot}/%{_sysconfdir}/nfv/vim/debug.ini
%fdupes %{buildroot}%{pythonroot}
%post -n nfv-common
%post -n nfv-plugins
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%files -n nfv-common
%defattr(-,root,root,-)
%doc nfv-common/LICENSE
%dir %{pythonroot}/nfv_common/
%{pythonroot}/nfv_common/*
%dir %{pythonroot}/windriver_nfv_common_plugins-%{version}-py2.7.egg-info
%{pythonroot}/windriver_nfv_common_plugins-%{version}-py2.7.egg-info/*
%files -n nfv-plugins
%dir /etc/nfv
%defattr(-,root,root,-)
%doc nfv-plugins/LICENSE
%config %{_sysconfdir}/logrotate.d/
%{_sysconfdir}/logrotate.d/nfvi-plugins.logrotate
%dir %{_sysconfdir}/nfv/nfv_plugins/
%config(noreplace)/%{_sysconfdir}/nfv/nfv_plugins/alarm_handlers/config.ini
%config(noreplace)/%{_sysconfdir}/nfv/nfv_plugins/event_log_handlers/config.ini
%config(noreplace)/%{_sysconfdir}/nfv/nfv_plugins/nfvi_plugins/config.ini
%{_sysconfdir}/nfv/nfv_plugins/*
%dir %{pythonroot}/nfv_plugins/
%{pythonroot}/nfv_plugins/*
%dir %{pythonroot}/windriver_nfv_plugins-%{version}-py2.7.egg-info
%{pythonroot}/windriver_nfv_plugins-%{version}-py2.7.egg-info/*
%files -n nfv-tools
%defattr(-,root,root,-)
%doc nfv-tools/LICENSE
%{local_bindir}/nfv-forensic
%{local_bindir}/nfv-notify
%dir %{pythonroot}/nfv_tools/
%{pythonroot}/nfv_tools/*
%dir %{pythonroot}/nfv_tools-%{version}-py2.7.egg-info
%{pythonroot}/nfv_tools-%{version}-py2.7.egg-info/*
%files -n nfv-vim
%dir /etc/nfv
%dir /usr/lib/ocf
%dir /usr/lib/ocf/resource.d
%defattr(-,root,root,-)
%doc nfv-vim/LICENSE
%{local_bindir}/nfv-vim
%{local_bindir}/nfv-vim-api
%{local_bindir}/nfv-vim-manage
%{local_bindir}/nfv-vim-webserver
%dir %{_sysconfdir}/nfv/vim/
%config(noreplace)/%{_sysconfdir}/nfv/vim/config.ini
%config(noreplace)/%{_sysconfdir}/nfv/vim/debug.ini
%dir /usr/lib/ocf/resource.d/nfv/
/usr/lib/ocf/resource.d/nfv/vim
/usr/lib/ocf/resource.d/nfv/vim-api
/usr/lib/ocf/resource.d/nfv/vim-webserver
%dir %{pythonroot}/nfv_vim/
%{pythonroot}/nfv_vim/*
%dir %{pythonroot}/nfv_vim-%{version}-py2.7.egg-info
%{pythonroot}/nfv_vim-%{version}-py2.7.egg-info/*
%files -n nfv-client
%defattr(-,root,root,-)
%doc nfv-client/LICENSE
%{local_bindir}/sw-manager
%{_sysconfdir}/bash_completion.d/sw-manager
%dir %{pythonroot}/nfv_client/
%{pythonroot}/nfv_client/*
%dir %{pythonroot}/nfv_client-%{version}-py2.7.egg-info
%{pythonroot}/nfv_client-%{version}-py2.7.egg-info/*
%changelog

View File

@ -1,2 +0,0 @@
SRC_DIR="$PKG_BASE/nova-api-proxy"
TIS_PATCH_VER=PKG_GITREVCOUNT

View File

@ -1,80 +0,0 @@
Summary: Nova Computer API Proxy
Name: nova-api-proxy
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-setuptools
BuildRequires: python2-pip
BuildRequires: python2-wheel
Requires: python-eventlet
Requires: python-routes
Requires: python-webob
Requires: python-paste
#TODO: Requires: oslo-config
%description
Nova Computer API Proxy
%define local_bindir /usr/bin/
%define local_initddir /etc/rc.d/init.d
%define pythonroot /usr/lib64/python2.7/site-packages
%define local_etc_systemd /etc/systemd/system/
%define local_proxy_conf /etc/proxy/
%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/
install -d -m 755 %{buildroot}%{local_etc_systemd}
install -p -D -m 644 nova_api_proxy/scripts/api-proxy.service %{buildroot}%{local_etc_systemd}/api-proxy.service
install -d -m 755 %{buildroot}%{local_initddir}
install -p -D -m 755 nova_api_proxy/scripts/api-proxy %{buildroot}%{local_initddir}/api-proxy
install -d -m 755 %{buildroot}%{local_proxy_conf}
install -p -D -m 700 nova_api_proxy/nova-api-proxy.conf %{buildroot}%{local_proxy_conf}/nova-api-proxy.conf
install -p -D -m 700 nova_api_proxy/api-proxy-paste.ini %{buildroot}%{local_proxy_conf}/api-proxy-paste.ini
%clean
rm -rf $RPM_BUILD_ROOT
# Note: Package name is nova-api-proxy but import is nova_api_proxy so can't
# use '%{name}'.
%files
%defattr(-,root,root,-)
%doc LICENSE
%{local_bindir}/*
%{local_initddir}/*
%{local_etc_systemd}/*
%config(noreplace) %{local_proxy_conf}/nova-api-proxy.conf
%{local_proxy_conf}/api-proxy-paste.ini
%dir %{pythonroot}/nova_api_proxy
%{pythonroot}/nova_api_proxy/*
%{pythonroot}/api_proxy-%{version}.0-py2.7.egg-info/*
%package wheels
Summary: %{name} wheels
%description wheels
Contains python wheels for %{name}
%files wheels
/wheels/*

View File

@ -1,9 +0,0 @@
BUILDER=loci
LABEL=stx-nova-api-proxy
# Set PROJECT=infra and PROJECT_REPO=nil because we are not cloning a repo
PROJECT=infra
PROJECT_REPO=nil
PIP_PACKAGES="api_proxy eventlet oslo.config oslo.log \
paste PasteDeploy routes webob keystonemiddleware pylint"
PYTHON3=no

View File

@ -1,9 +0,0 @@
BUILDER=loci
LABEL=stx-nova-api-proxy
# Set PROJECT=infra and PROJECT_REPO=nil because we are not cloning a repo
PROJECT=infra
PROJECT_REPO=nil
PIP_PACKAGES="api_proxy eventlet oslo.config oslo.log \
paste PasteDeploy routes webob keystonemiddleware pylint"
PYTHON3=no

View File

@ -1,21 +0,0 @@
-------------------------------------------------------------------
Thu Oct 3 17:24:23 UTC 2019 - Erich Cordoba <erich.cordoba.malibran@intel.com> 1.0.0-1
- Refactor on spec file to remove unneeded lines.
- The %pre/%post sections were added.
-------------------------------------------------------------------
Tue Sep 17 06:45:00 UTC 2019 - Dominig ar Foll Intel Open Source <dominig.arfoll@fridu.net>
- move to _service to get source from git repo
-------------------------------------------------------------------
Thu Jun 20 14:47:42 UTC 2019 - Marcela Rosales <marcelarosalesj@gmail.com>
- Modify Requires to use openSUSE's python2-Routes package instead of python-routes
- Delete unused nfv.changes file
-------------------------------------------------------------------
Tue May 28 09:07:26 UTC 2019 - Marcela Rosales <marcelarosalesj@gmail.com>
- Initial Commit

View File

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

View File

@ -1,91 +0,0 @@
Summary: Nova Compute API Proxy
Name: nova-api-proxy
Version: 1.0.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: System/Packages
URL: https://opendev.org/starlingx/nfv/
Source0: %{name}-%{version}.tar.gz
%define debug_package %{nil}
BuildRequires: fdupes
BuildRequires: python-setuptools
BuildRequires: python2-pip
Requires: python-eventlet
Requires: python2-Routes
Requires: python-webob
Requires: python-paste
%description
The Nova Compute API Proxy
%define local_initddir %{_sysconfdir}/rc.d/init.d
%define pythonroot %{_libdir}/python2.7/site-packages
%define local_etc_systemd %{_sysconfdir}/systemd/system/
%define local_proxy_conf %{_sysconfdir}/proxy/
%prep
%setup -n %{name}-%{version}/%{name}
%build
%{__python} setup.py build
%install
%{__python} setup.py install --root=%{buildroot} \
--install-lib=%{pythonroot} \
--prefix=%{_prefix} \
--install-data=%{_prefix}/share \
--single-version-externally-managed
install -d -m 755 %{buildroot}%{local_etc_systemd}
install -d -m 755 %{buildroot}%{_sysconfdir}/rc.d/init.d
install -d -m 755 %{buildroot}%{local_proxy_conf}
install -p -D -m 644 nova_api_proxy/scripts/api-proxy.service \
%{buildroot}%{_unitdir}/api-proxy.service
install -p -D -m 755 nova_api_proxy/scripts/api-proxy \
%{buildroot}%{_sysconfdir}/rc.d/init.d/api-proxy
install -p -D -m 600 nova_api_proxy/nova-api-proxy.conf \
%{buildroot}%{local_proxy_conf}/nova-api-proxy.conf
install -p -D -m 600 nova_api_proxy/api-proxy-paste.ini \
%{buildroot}%{local_proxy_conf}/api-proxy-paste.ini
%fdupes %{buildroot}%{pythonroot}
%clean
rm -rf %{buildroot}
%pre
%service_add_pre api-proxy.service
%preun
%service_del_preun api-proxy.service
%post
%service_add_post api-proxy.service
%set_permissions %{pythonroot}/nova_api_proxy/api_proxy.py
%postun
%service_del_postun api-proxy.service
# Note: Package name is nova-api-proxy but import is nova_api_proxy so can't
# use '%%{name}'.
%files
%defattr(-,root,root,-)
%dir %{_sysconfdir}/rc.d
%dir %{_sysconfdir}/rc.d/init.d
%dir %{_sysconfdir}/proxy
%dir %{pythonroot}/api_proxy-%{version}-py2.7.egg-info
%dir %{pythonroot}/nova_api_proxy
%{_bindir}/nova-api-proxy
%{_unitdir}/api-proxy.service
%{_sysconfdir}/rc.d/init.d/api-proxy
%{pythonroot}/nova_api_proxy/*
%{pythonroot}/api_proxy-%{version}-py2.7.egg-info/*
%config(noreplace) %{_sysconfdir}/proxy/nova-api-proxy.conf
%config %{_sysconfdir}/proxy/api-proxy-paste.ini
%license LICENSE
%changelog