Add openSUSE OBS Artifacts for Maintenance services
StarlingX Open Build Service [0] builds MTCE packages using base artifacts: - Spec file - Changelog [0] https://build.opensuse.org/project/show/Cloud:StarlingX:2.0 Story: 2006508 Task: 36556 Task: 36557 Task: 36558 Task: 36559 Task: 36560 Task: 36561 Change-Id: I9bf59ab4b890ebe33a9304d3f886951c860412a6 Signed-off-by: Marcela Rosales <marcela.a.rosales.jimenez@intel.com>
This commit is contained in:
parent
f453a3fc7d
commit
a0a3693bc4
9
kickstart/opensuse/platform-kickstarts.changes
Normal file
9
kickstart/opensuse/platform-kickstarts.changes
Normal file
@ -0,0 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 31 19:31:08 UTC 2019 - Marcela Rosales <marcelarosalesj@gmail.com>
|
||||
|
||||
- Remove tarball from OBS and use _service XML to get the source code.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 11 12:36:51 UTC 2019 - xe1gyq@gmail.com
|
||||
|
||||
- Initial commit
|
71
kickstart/opensuse/platform-kickstarts.spec
Normal file
71
kickstart/opensuse/platform-kickstarts.spec
Normal file
@ -0,0 +1,71 @@
|
||||
%define platform_release 1
|
||||
%define feed_dir /www/pages/feed/rel-%{platform_release}
|
||||
|
||||
Summary: Platform Kickstarts
|
||||
Name: platform-kickstarts
|
||||
Version: 1.0
|
||||
Release: 0
|
||||
License: Apache-2.0
|
||||
Group: Development/Tools/Other
|
||||
URL: https://opendev.org/starlingx/metal
|
||||
Source0: bsp-files-%{version}.tar.gz
|
||||
Source1: LICENSE
|
||||
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl(Getopt::Long)
|
||||
BuildRequires: perl(POSIX)
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Platform kickstart files
|
||||
|
||||
%prep
|
||||
%autosetup -n bsp-files-%{version}
|
||||
|
||||
%build
|
||||
./centos-ks-gen.pl --release %{platform_release}
|
||||
cp %{SOURCE1} .
|
||||
|
||||
%install
|
||||
install -d -m 0755 %{buildroot}%{feed_dir}
|
||||
install -m 0444 generated/* %{buildroot}%{feed_dir}
|
||||
|
||||
install -d -m 0755 %{buildroot}/pxeboot
|
||||
install -D -m 0444 pxeboot/* %{buildroot}/pxeboot
|
||||
|
||||
install -d -m 0755 %{buildroot}/extra_cfgs
|
||||
install -D -m 0444 extra_cfgs/* %{buildroot}/extra_cfgs
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%license LICENSE
|
||||
%{feed_dir}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
/www
|
||||
/www/pages
|
||||
/www/pages/feed
|
||||
|
||||
%package pxeboot
|
||||
Summary: Kickstarts Pxeboot Server
|
||||
|
||||
%description pxeboot
|
||||
Kickstarts for Pxeboot server
|
||||
|
||||
%files pxeboot
|
||||
%defattr(-,root,root,-)
|
||||
/pxeboot/
|
||||
|
||||
%package extracfgs
|
||||
Summary: Extra Lab-usage Kickstarts
|
||||
|
||||
%description extracfgs
|
||||
Extra lab-usage kickstarts configuration
|
||||
|
||||
%files extracfgs
|
||||
%defattr(-,root,root,-)
|
||||
/extra_cfgs/
|
||||
|
||||
%changelog
|
10
mtce-common/opensuse/mtce-common.changes
Normal file
10
mtce-common/opensuse/mtce-common.changes
Normal file
@ -0,0 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 31 19:16:29 UTC 2019 - Marcela Rosales <marcelarosalesj@gmail.com>
|
||||
|
||||
- Remove tarball from OBS and use _service XML to get the source code.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 12 00:57:31 UTC 2019 - mario.alfredo.c.arevalo@intel.com
|
||||
|
||||
- Initial commit
|
||||
|
162
mtce-common/opensuse/mtce-common.spec
Normal file
162
mtce-common/opensuse/mtce-common.spec
Normal file
@ -0,0 +1,162 @@
|
||||
Name: mtce-common
|
||||
Version: 1.0
|
||||
Release: 1
|
||||
Summary: Maintenance Common Base Package
|
||||
License: Apache-2.0
|
||||
Group: Development/Tools/Other
|
||||
URL: https://opendev.org/starlingx/metal
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: expect
|
||||
BuildRequires: fm-common
|
||||
BuildRequires: fm-common-dev
|
||||
BuildRequires: fm-mgr
|
||||
BuildRequires: libevent
|
||||
BuildRequires: libevent-devel
|
||||
BuildRequires: libuuid-devel
|
||||
BuildRequires: openssl
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: postgresql
|
||||
BuildRequires: systemd-devel
|
||||
BuildRequires: cppcheck
|
||||
Requires: %{_bindir}/expect
|
||||
Requires: /bin/bash
|
||||
Requires: /bin/sh
|
||||
Requires: /bin/systemctl
|
||||
Requires: dpkg
|
||||
Requires: expect
|
||||
Requires: fm-common >= 1.0
|
||||
Requires: libc.so.6()(64bit)
|
||||
Requires: libc.so.6(GLIBC_2.14)(64bit)
|
||||
Requires: libc.so.6(GLIBC_2.2.5)(64bit)
|
||||
Requires: libc.so.6(GLIBC_2.3)(64bit)
|
||||
Requires: libc.so.6(GLIBC_2.4)(64bit)
|
||||
Requires: libevent >= 2.0.21
|
||||
Requires: libevent-2.0.so.5()(64bit)
|
||||
Requires: libfmcommon.so.1()(64bit)
|
||||
Requires: libgcc_s.so.1()(64bit)
|
||||
Requires: libgcc_s.so.1(GCC_3.0)(64bit)
|
||||
Requires: libjson-c.so.2()(64bit)
|
||||
Requires: libm.so.6()(64bit)
|
||||
Requires: libpthread.so.0()(64bit)
|
||||
Requires: libpthread.so.0(GLIBC_2.2.5)(64bit)
|
||||
Requires: librt.so.1()(64bit)
|
||||
Requires: librt.so.1(GLIBC_2.2.5)(64bit)
|
||||
Requires: librt.so.1(GLIBC_2.3.3)(64bit)
|
||||
Requires: libssh2.so.1()(64bit)
|
||||
Requires: libstdc++.so.6()(64bit)
|
||||
Requires: libstdc++.so.6(CXXABI_1.3)(64bit)
|
||||
Requires: libstdc++.so.6(GLIBCXX_3.4)(64bit)
|
||||
Requires: libstdc++.so.6(GLIBCXX_3.4.11)(64bit)
|
||||
Requires: libstdc++.so.6(GLIBCXX_3.4.14)(64bit)
|
||||
Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
|
||||
Requires: libstdc++.so.6(GLIBCXX_3.4.9)(64bit)
|
||||
Requires: libuuid.so.1()(64bit)
|
||||
Requires: python-rtslib
|
||||
Requires: rtld(GNU_HASH)
|
||||
Requires: time
|
||||
Requires: util-linux
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libjansson4
|
||||
BuildRequires: libjson-c-devel
|
||||
BuildRequires: libssh2-1
|
||||
BuildRequires: libssh2-devel
|
||||
BuildRequires: smartmontools
|
||||
%else
|
||||
BuildRequires: cppcheck
|
||||
BuildRequires: json-c
|
||||
BuildRequires: json-c-devel
|
||||
BuildRequires: libssh2
|
||||
BuildRequires: libssh2-devel
|
||||
%endif
|
||||
|
||||
%description
|
||||
Maintenance Common Base Package - development files
|
||||
|
||||
%package -n mtce-common-devel
|
||||
Summary: Maintenance Common Base - development files
|
||||
Group: Development/Tools/Other
|
||||
Provides: mtce-common-devel = %{version}-%{release}
|
||||
|
||||
%description -n mtce-common-devel
|
||||
Maintenance Common Base. This package contains header files,
|
||||
and related items necessary for software development.
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
%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
|
||||
|
||||
%global _buildsubdir %{_builddir}/%{name}-%{version}
|
||||
|
||||
%install
|
||||
VER=%{version}
|
||||
MAJOR=$(echo $VER | awk -F . '{print $1}')
|
||||
MINOR=$(echo $VER | awk -F . '{print $2}')
|
||||
|
||||
install -m 755 -d %{buildroot}%{_libdir}
|
||||
install -m 644 -p -D %{_buildsubdir}/daemon/libdaemon.a %{buildroot}%{_libdir}
|
||||
install -m 644 -p -D %{_buildsubdir}/common/libcommon.a %{buildroot}%{_libdir}
|
||||
install -m 644 -p -D %{_buildsubdir}/common/libthreadUtil.a %{buildroot}%{_libdir}
|
||||
install -m 644 -p -D %{_buildsubdir}/common/libbmcUtils.a %{buildroot}%{_libdir}
|
||||
install -m 644 -p -D %{_buildsubdir}/common/libpingUtil.a %{buildroot}%{_libdir}
|
||||
install -m 644 -p -D %{_buildsubdir}/common/libnodeBase.a %{buildroot}%{_libdir}
|
||||
install -m 644 -p -D %{_buildsubdir}/common/libregexUtil.a %{buildroot}%{_libdir}
|
||||
install -m 644 -p -D %{_buildsubdir}/common/libhostUtil.a %{buildroot}%{_libdir}
|
||||
|
||||
# mtce-common headers required to bring in nodeBase.h
|
||||
install -m 755 -d %{buildroot}%{_includedir}
|
||||
install -m 755 -d %{buildroot}%{_includedir}/mtce-common
|
||||
install -m 644 -p -D %{_buildsubdir}/common/fitCodes.h %{buildroot}%{_includedir}/mtce-common
|
||||
install -m 644 -p -D %{_buildsubdir}/common/logMacros.h %{buildroot}%{_includedir}/mtce-common
|
||||
install -m 644 -p -D %{_buildsubdir}/common/returnCodes.h %{buildroot}%{_includedir}/mtce-common
|
||||
install -m 644 -p -D %{_buildsubdir}/common/nodeTimers.h %{buildroot}%{_includedir}/mtce-common
|
||||
|
||||
# mtce-common headers required to build mtce-guest
|
||||
install -m 644 -p -D %{_buildsubdir}/common/hostClass.h %{buildroot}%{_includedir}/mtce-common
|
||||
install -m 644 -p -D %{_buildsubdir}/common/httpUtil.h %{buildroot}%{_includedir}/mtce-common
|
||||
install -m 644 -p -D %{_buildsubdir}/common/jsonUtil.h %{buildroot}%{_includedir}/mtce-common
|
||||
install -m 644 -p -D %{_buildsubdir}/common/msgClass.h %{buildroot}%{_includedir}/mtce-common
|
||||
install -m 644 -p -D %{_buildsubdir}/common/nodeBase.h %{buildroot}%{_includedir}/mtce-common
|
||||
install -m 644 -p -D %{_buildsubdir}/common/nodeEvent.h %{buildroot}%{_includedir}/mtce-common
|
||||
install -m 644 -p -D %{_buildsubdir}/common/nodeMacro.h %{buildroot}%{_includedir}/mtce-common
|
||||
install -m 644 -p -D %{_buildsubdir}/common/nodeUtil.h %{buildroot}%{_includedir}/mtce-common
|
||||
install -m 644 -p -D %{_buildsubdir}/common/timeUtil.h %{buildroot}%{_includedir}/mtce-common
|
||||
|
||||
# mtce-daemon headers required to build mtce-guest
|
||||
install -m 755 -d %{buildroot}%{_includedir}/mtce-daemon
|
||||
install -m 644 -p -D %{_buildsubdir}/daemon/daemon_ini.h %{buildroot}%{_includedir}/mtce-daemon
|
||||
install -m 644 -p -D %{_buildsubdir}/daemon/daemon_common.h %{buildroot}%{_includedir}/mtce-daemon
|
||||
install -m 644 -p -D %{_buildsubdir}/daemon/daemon_option.h %{buildroot}%{_includedir}/mtce-daemon
|
||||
|
||||
# remaining mtce-common headers required to build mtce
|
||||
install -m 644 -p -D %{_buildsubdir}/common/alarmUtil.h %{buildroot}%{_includedir}/mtce-common
|
||||
install -m 644 -p -D %{_buildsubdir}/common/hostUtil.h %{buildroot}%{_includedir}/mtce-common
|
||||
install -m 644 -p -D %{_buildsubdir}/common/redfishUtil.h %{buildroot}%{_includedir}/mtce-common
|
||||
install -m 644 -p -D %{_buildsubdir}/common/bmcUtil.h %{buildroot}%{_includedir}/mtce-common
|
||||
install -m 644 -p -D %{_buildsubdir}/common/ipmiUtil.h %{buildroot}%{_includedir}/mtce-common
|
||||
install -m 644 -p -D %{_buildsubdir}/common/nlEvent.h %{buildroot}%{_includedir}/mtce-common
|
||||
install -m 644 -p -D %{_buildsubdir}/common/pingUtil.h %{buildroot}%{_includedir}/mtce-common
|
||||
install -m 644 -p -D %{_buildsubdir}/common/regexUtil.h %{buildroot}%{_includedir}/mtce-common
|
||||
install -m 644 -p -D %{_buildsubdir}/common/threadUtil.h %{buildroot}%{_includedir}/mtce-common
|
||||
install -m 644 -p -D %{_buildsubdir}/common/tokenUtil.h %{buildroot}%{_includedir}/mtce-common
|
||||
install -m 644 -p -D %{_buildsubdir}/common/secretUtil.h %{buildroot}%{_includedir}/mtce-common
|
||||
|
||||
%post
|
||||
|
||||
%files -n mtce-common-devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_includedir}/mtce-common/*.h
|
||||
%{_includedir}/mtce-daemon/*.h
|
||||
%{_libdir}/*.a
|
||||
%dir %{_includedir}/mtce-common
|
||||
%dir %{_includedir}/mtce-daemon
|
||||
|
||||
%changelog
|
17
mtce-compute/opensuse/mtce-compute.changes
Normal file
17
mtce-compute/opensuse/mtce-compute.changes
Normal file
@ -0,0 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 30 21:21:46 UTC 2019 - Marcela Rosales <marcelarosalesj@gmail.com>
|
||||
|
||||
- Remove tarball from OBS and instead use _service XML to get the source
|
||||
code.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 20 13:18:40 UTC 2019 - Marcela Rosales <marcelarosalesj@gmail.com>
|
||||
|
||||
- Substitute qemu-kvm-ev with openSUSE's qemu-kvm dependency.
|
||||
- Use systemd for Requires instead of /bin/systemctl
|
||||
- Remove unused macros
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 11 16:17:36 UTC 2019 - hayde.martinez.landa@intel.com
|
||||
|
||||
-Initial commit
|
51
mtce-compute/opensuse/mtce-compute.spec
Normal file
51
mtce-compute/opensuse/mtce-compute.spec
Normal file
@ -0,0 +1,51 @@
|
||||
%define local_etc_goenabledd %{_sysconfdir}/goenabled.d
|
||||
Summary: Compute Node Maintenance Package
|
||||
Name: mtce-compute
|
||||
Version: 1.0
|
||||
Release: 1
|
||||
License: Apache-2.0
|
||||
Group: Development/Tools/Other
|
||||
URL: https://opendev.org/starlingx/metal
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: systemd
|
||||
BuildRequires: systemd-devel
|
||||
Requires: bash
|
||||
Requires: systemd
|
||||
Requires: qemu-kvm
|
||||
|
||||
%description
|
||||
Maintenance support files for compute-only node type
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
make install buildroot=%{buildroot} _sysconfdir=%{_sysconfdir} _unitdir=%{_unitdir} _datarootdir=%{_datarootdir}
|
||||
|
||||
%pre
|
||||
%service_add_pre goenabled-worker.service goenabled-worker.target
|
||||
|
||||
%post
|
||||
%service_add_post goenabled-worker.service goenabled-worker.target
|
||||
/bin/systemctl enable goenabled-worker.service
|
||||
|
||||
%preun
|
||||
%service_del_preun goenabled-worker.service goenabled-worker.target
|
||||
|
||||
%postun
|
||||
%service_del_postun goenabled-worker.service goenabled-worker.target
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_sysconfdir}/goenabled.d
|
||||
%dir %{_datarootdir}/licenses/mtce-compute-1.0
|
||||
%{_sysconfdir}/init.d/goenabledWorker
|
||||
%{local_etc_goenabledd}/virt-support-goenabled.sh
|
||||
%{_unitdir}/goenabled-worker.service
|
||||
%license %{_datarootdir}/licenses/mtce-compute-1.0/LICENSE
|
||||
|
||||
%changelog
|
15
mtce-control/opensuse/mtce-control.changes
Normal file
15
mtce-control/opensuse/mtce-control.changes
Normal file
@ -0,0 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 31 13:28:21 UTC 2019 - Marcela Rosales <marcelarosalesj@gmail.com>
|
||||
|
||||
- Remove tarball from OBS and use _service XML to get the source code
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 20 14:29:17 UTC 2019 - Marcela Rosales <marcelarosalesj@gmail.com>
|
||||
|
||||
- Substitute qemu-kvm-ev with openSUSE's qemu-kvm dependency
|
||||
- Use systemd for Requires instead of /bin/systemctl
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 7 21:39:14 UTC 2019 - hayde.martinez.landa@intel.com
|
||||
|
||||
- Inital commit
|
58
mtce-control/opensuse/mtce-control.spec
Normal file
58
mtce-control/opensuse/mtce-control.spec
Normal file
@ -0,0 +1,58 @@
|
||||
Summary: Controller Node Maintenance Package
|
||||
Name: mtce-control
|
||||
Version: 1.0
|
||||
Release: 1
|
||||
License: Apache-2.0
|
||||
Group: Development/Tools/Other
|
||||
URL: https://opendev.org/starlingx/metal
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: systemd
|
||||
BuildRequires: systemd-devel
|
||||
BuildRequires: systemd-sysvinit
|
||||
Requires: bash
|
||||
Requires: systemd
|
||||
Requires: lighttpd
|
||||
Requires: qemu-kvm
|
||||
|
||||
%description
|
||||
Maintenance support files for controller-only node type
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
make install buildroot=%{buildroot} _sysconfdir=%{_sysconfdir} _unitdir=%{_unitdir} _datarootdir=%{_datarootdir}
|
||||
|
||||
%pre
|
||||
%service_add_pre hbsAgent.service hbsAgent.target
|
||||
|
||||
%post
|
||||
%service_add_post hbsAgent.service hbsAgent.target
|
||||
if [ $1 -eq 1 ] ; then
|
||||
/bin/systemctl enable lighttpd.service
|
||||
/bin/systemctl enable qemu_clean.service
|
||||
/bin/systemctl enable hbsAgent.service
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%preun
|
||||
%service_del_preun hbsAgent.service hbsAgent.target
|
||||
|
||||
%postun
|
||||
%service_del_postun hbsAgent.service hbsAgent.target
|
||||
|
||||
%files
|
||||
%dir %{_sysconfdir}/pmon.d
|
||||
%dir %{_datadir}/licenses/mtce-control-1.0
|
||||
%defattr(-,root,root,-)
|
||||
%{_sysconfdir}/init.d/goenabledControl
|
||||
%license %{_datarootdir}/licenses/mtce-control-1.0/LICENSE
|
||||
%config %{_sysconfdir}/pmon.d/hbsAgent.conf
|
||||
%{_sysconfdir}/init.d/hbsAgent
|
||||
%{_unitdir}/hbsAgent.service
|
||||
|
||||
%changelog
|
9
mtce-storage/opensuse/mtce-storage.changes
Normal file
9
mtce-storage/opensuse/mtce-storage.changes
Normal file
@ -0,0 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 31 13:15:18 UTC 2019 - Marcela Rosales <marcelarosalesj@gmail.com>
|
||||
|
||||
- Remove tarball from OBS and use _service XML to get the source code.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 11 12:04:41 UTC 2019 - xe1gyq@gmail.com
|
||||
|
||||
- Initial commit
|
56
mtce-storage/opensuse/mtce-storage.spec
Normal file
56
mtce-storage/opensuse/mtce-storage.spec
Normal file
@ -0,0 +1,56 @@
|
||||
Summary: StarlingX Platform Storage Node Maintenance
|
||||
Name: mtce-storage
|
||||
Version: 1.0
|
||||
Release: 0
|
||||
License: Apache-2.0
|
||||
Group: Development/Tools/Other
|
||||
URL: https://opendev.org/starlingx/metal
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: systemd
|
||||
BuildRequires: systemd-devel
|
||||
BuildRequires: insserv-compat
|
||||
Requires: /bin/systemctl
|
||||
Requires: bash
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Maintenance support files for storage-only node type.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
make install buildroot=%{buildroot} _sysconfdir=%{_sysconfdir} _unitdir=%{_unitdir} _datarootdir=%{_datarootdir}
|
||||
install -dD -m 0755 %{buildroot}%{_sbindir}
|
||||
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcgoenabledStorage
|
||||
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcgoenabled-storage
|
||||
|
||||
%pre
|
||||
%service_add_pre goenabled-storage.service
|
||||
|
||||
%post
|
||||
%service_add_post goenabled-storage.service
|
||||
|
||||
%preun
|
||||
%stop_on_removal
|
||||
%service_del_preun goenabled-storage.service
|
||||
|
||||
%postun
|
||||
%restart_on_update
|
||||
%insserv_cleanup
|
||||
%service_del_postun goenabled-storage.service
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_sysconfdir}/init.d/goenabledStorage
|
||||
%{_sbindir}/rcgoenabledStorage
|
||||
%{_sbindir}/rcgoenabled-storage
|
||||
%{_unitdir}/goenabled-storage.service
|
||||
%license %{_datarootdir}/licenses/mtce-storage-1.0/LICENSE
|
||||
%{_datadir}/licenses/mtce-storage-1.0
|
||||
|
||||
%changelog
|
@ -0,0 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 31 17:02:27 UTC 2019 - Marcela Rosales <marcelarosalesj@gmail.com>
|
||||
|
||||
- Remove tarball from OBS and use _service XML to get the source code.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 20 16:23:45 UTC 2019 - Marcela Rosales <marcelarosalesj@gmail.com>
|
||||
|
||||
- Modify Requires packages to use openSUSE's packages
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 12 15:16:07 UTC 2019 - mario_90ago@live.com.mx
|
||||
|
||||
- Initial commit
|
||||
|
84
python-inventoryclient/opensuse/python-inventoryclient.spec
Normal file
84
python-inventoryclient/opensuse/python-inventoryclient.spec
Normal file
@ -0,0 +1,84 @@
|
||||
%global pypi_name inventoryclient
|
||||
Name: python-inventoryclient
|
||||
Version: 1.0
|
||||
Release: 1
|
||||
Summary: A python client library for Inventory
|
||||
License: Apache-2.0
|
||||
Group: base
|
||||
URL: https://opendev.org/starlingx/metal
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: git
|
||||
BuildRequires: python-pbr >= 2.0.0
|
||||
BuildRequires: python-setuptools
|
||||
Requires: bash-completion
|
||||
Requires: python-keystoneauth1 >= 3.1.0
|
||||
Requires: python2-oslo.i18n >= 2.1.0
|
||||
Requires: python2-oslo.utils >= 3.20.0
|
||||
Requires: python2-pbr >= 2.0.0
|
||||
Requires: python2-requests
|
||||
Requires: python2-six >= 1.9.0
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: python-pip
|
||||
%else
|
||||
BuildRequires: python2-pip
|
||||
%endif
|
||||
|
||||
%description
|
||||
This package is a python client library for Inventory
|
||||
|
||||
%define local_bindir %{_bindir}/
|
||||
%define local_etc_bash_completiond %{_sysconfdir}/bash_completion.d/
|
||||
%define pythonroot %{_libdir}/python2.7/site-packages
|
||||
%define debug_package %{nil}
|
||||
|
||||
%package sdk
|
||||
Summary: SDK files for %{name}
|
||||
|
||||
%description sdk
|
||||
This package contains SDK files for %{name} package.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
# Remove bundled egg-info
|
||||
rm -rf *.egg-info
|
||||
|
||||
%build
|
||||
echo "Start build"
|
||||
export PBR_VERSION=%{version}
|
||||
python setup.py build
|
||||
|
||||
%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 -d -m 755 %{buildroot}%{local_etc_bash_completiond}
|
||||
install -p -D -m 664 tools/inventory.bash_completion %{buildroot}%{local_etc_bash_completiond}/inventory.bash_completion
|
||||
|
||||
chmod a+x %{buildroot}/%{pythonroot}/inventoryclient/v1/pci_device_shell.py
|
||||
chmod a+x %{buildroot}/%{pythonroot}/inventoryclient/v1/ethernetport_shell.py
|
||||
chmod a+x %{buildroot}/%{pythonroot}/inventoryclient/v1/node_shell.py
|
||||
chmod a+x %{buildroot}/%{pythonroot}/inventoryclient/v1/lldp_agent_shell.py
|
||||
chmod a+x %{buildroot}/%{pythonroot}/inventoryclient/common/options.py
|
||||
chmod a+x %{buildroot}/%{pythonroot}/inventoryclient/v1/cpu_shell.py
|
||||
chmod a+x %{buildroot}/%{pythonroot}/inventoryclient/v1/memory_shell.py
|
||||
chmod a+x %{buildroot}/%{pythonroot}/inventoryclient/v1/lldp_neighbour_shell.py
|
||||
chmod a+x %{buildroot}/%{pythonroot}/inventoryclient/v1/port_shell.py
|
||||
chmod a+x %{buildroot}/%{pythonroot}/inventoryclient/v1/host_shell.py
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%license LICENSE
|
||||
%{local_bindir}/*
|
||||
%config %{local_etc_bash_completiond}/*
|
||||
%{pythonroot}/%{pypi_name}/*
|
||||
%{pythonroot}/%{pypi_name}-%{version}*.egg-info
|
||||
%dir %{pythonroot}/inventoryclient
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user