Update openSUSE OBS artifacts to build MTCE packages

The openSUSE spec files needs to have the path of the source code in
the setup to have the package generation automated through _service
file in OBS.

Change-Id: I2b7c08d5772025c02821dfb9fc944fff0f5b6f90
Story: 2006508
Task: 36812
Signed-off-by: Marcela Rosales <marcela.a.rosales.jimenez@intel.com>
This commit is contained in:
Marcela Rosales 2019-09-25 16:28:58 -05:00
parent 719efb9fb4
commit b5f12793a1
12 changed files with 19 additions and 13 deletions

View File

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

View File

@ -1,6 +1,6 @@
Summary: StarlingX Inventory
Name: inventory
Version: 1.0
Version: 1.0.0
Release: 1
License: Apache-2.0
Group: System/Base
@ -97,7 +97,7 @@ The inventory service for StarlingX
%define debug_package %{nil}
%prep
%setup
%setup -n %{name}-%{version}/%{name}
# Remove bundled egg-info
rm -rf *.egg-info

View File

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

View File

@ -1,5 +1,5 @@
Name: mtce-common
Version: 1.0
Version: 1.0.0
Release: 1
Summary: Maintenance Common Base Package
License: Apache-2.0
@ -86,7 +86,7 @@ and related items necessary for software development.
%define debug_package %{nil}
%prep
%autosetup
%autosetup -n %{name}-%{version}/src
%build
VER=%{version}
@ -94,7 +94,7 @@ MAJOR=$(echo $VER | awk -F . '{print $1}')
MINOR=$(echo $VER | awk -F . '{print $2}')
make MAJOR=$MAJOR MINOR=$MINOR %{?_smp_mflags} build
%global _buildsubdir %{_builddir}/%{name}-%{version}
%global _buildsubdir %{_builddir}/%{name}-%{version}/src
%install
VER=%{version}

View File

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

View File

@ -1,7 +1,7 @@
%define local_etc_goenabledd %{_sysconfdir}/goenabled.d
Summary: Compute Node Maintenance Package
Name: mtce-compute
Version: 1.0
Version: 1.0.0
Release: 1
License: Apache-2.0
Group: Development/Tools/Other
@ -19,7 +19,7 @@ Requires: qemu-kvm
Maintenance support files for compute-only node type
%prep
%autosetup
%autosetup -n %{name}-%{version}/src
%build

View File

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

View File

@ -1,6 +1,6 @@
Summary: Controller Node Maintenance Package
Name: mtce-control
Version: 1.0
Version: 1.0.0
Release: 1
License: Apache-2.0
Group: Development/Tools/Other
@ -20,7 +20,7 @@ Requires: qemu-kvm
Maintenance support files for controller-only node type
%prep
%autosetup
%autosetup -n %{name}-%{version}/src
%build

View File

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

View File

@ -1,6 +1,6 @@
Summary: StarlingX Platform Storage Node Maintenance
Name: mtce-storage
Version: 1.0
Version: 1.0.0
Release: 0
License: Apache-2.0
Group: Development/Tools/Other
@ -19,7 +19,7 @@ BuildArch: noarch
Maintenance support files for storage-only node type.
%prep
%autosetup
%autosetup -n %{name}-%{version}/src
%build

View File

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

View File

@ -1,6 +1,6 @@
%global pypi_name inventoryclient
Name: python-inventoryclient
Version: 1.0
Version: 1.0.0
Release: 1
Summary: A python client library for Inventory
License: Apache-2.0
@ -39,7 +39,7 @@ Summary: SDK files for %{name}
This package contains SDK files for %{name} package.
%prep
%autosetup
%autosetup -n %{name}-%{version}/inventoryclient
# Remove bundled egg-info
rm -rf *.egg-info