acrn-hypervisor: Autospec creation for version 2019w50.5.140000p

This commit is contained in:
Miguel Bernal Marin 2019-12-16 12:13:40 -06:00
parent bbe337ee3d
commit de20b1b05b
4 changed files with 46 additions and 7 deletions

View File

@ -5,7 +5,7 @@
%define keepstatic 1 %define keepstatic 1
Name : acrn-hypervisor Name : acrn-hypervisor
Version : 2019w50.5.140000p Version : 2019w50.5.140000p
Release : 253 Release : 254
URL : https://github.com/projectacrn/acrn-hypervisor/archive/acrn-2019w50.5-140000p.tar.gz URL : https://github.com/projectacrn/acrn-hypervisor/archive/acrn-2019w50.5-140000p.tar.gz
Source0 : https://github.com/projectacrn/acrn-hypervisor/archive/acrn-2019w50.5-140000p.tar.gz Source0 : https://github.com/projectacrn/acrn-hypervisor/archive/acrn-2019w50.5-140000p.tar.gz
Summary : No detailed summary available Summary : No detailed summary available
@ -13,6 +13,7 @@ Group : Development/Tools
License : BSD-3-Clause CC-BY-4.0 ISC License : BSD-3-Clause CC-BY-4.0 ISC
Requires: acrn-hypervisor-autostart = %{version}-%{release} Requires: acrn-hypervisor-autostart = %{version}-%{release}
Requires: acrn-hypervisor-bin = %{version}-%{release} Requires: acrn-hypervisor-bin = %{version}-%{release}
Requires: acrn-hypervisor-config = %{version}-%{release}
Requires: acrn-hypervisor-data = %{version}-%{release} Requires: acrn-hypervisor-data = %{version}-%{release}
Requires: acrn-hypervisor-license = %{version}-%{release} Requires: acrn-hypervisor-license = %{version}-%{release}
Requires: acrn-hypervisor-services = %{version}-%{release} Requires: acrn-hypervisor-services = %{version}-%{release}
@ -29,6 +30,7 @@ BuildRequires : gnu-efi-staticdev
BuildRequires : libevent-dev BuildRequires : libevent-dev
BuildRequires : libusb-dev BuildRequires : libusb-dev
BuildRequires : libxml2-dev BuildRequires : libxml2-dev
BuildRequires : numactl-dev
BuildRequires : pip BuildRequires : pip
BuildRequires : pkgconfig(openssl) BuildRequires : pkgconfig(openssl)
BuildRequires : pkgconfig(pciaccess) BuildRequires : pkgconfig(pciaccess)
@ -64,6 +66,7 @@ autostart components for the acrn-hypervisor package.
Summary: bin components for the acrn-hypervisor package. Summary: bin components for the acrn-hypervisor package.
Group: Binaries Group: Binaries
Requires: acrn-hypervisor-data = %{version}-%{release} Requires: acrn-hypervisor-data = %{version}-%{release}
Requires: acrn-hypervisor-config = %{version}-%{release}
Requires: acrn-hypervisor-license = %{version}-%{release} Requires: acrn-hypervisor-license = %{version}-%{release}
Requires: acrn-hypervisor-services = %{version}-%{release} Requires: acrn-hypervisor-services = %{version}-%{release}
@ -71,6 +74,14 @@ Requires: acrn-hypervisor-services = %{version}-%{release}
bin components for the acrn-hypervisor package. bin components for the acrn-hypervisor package.
%package config
Summary: config components for the acrn-hypervisor package.
Group: Default
%description config
config components for the acrn-hypervisor package.
%package data %package data
Summary: data components for the acrn-hypervisor package. Summary: data components for the acrn-hypervisor package.
Group: Data Group: Data
@ -125,17 +136,17 @@ export http_proxy=http://127.0.0.1:9/
export https_proxy=http://127.0.0.1:9/ export https_proxy=http://127.0.0.1:9/
export no_proxy=localhost,127.0.0.1,0.0.0.0 export no_proxy=localhost,127.0.0.1,0.0.0.0
export LANG=C.UTF-8 export LANG=C.UTF-8
export SOURCE_DATE_EPOCH=1576518774 export SOURCE_DATE_EPOCH=1576520015
export GCC_IGNORE_WERROR=1 export GCC_IGNORE_WERROR=1
export CFLAGS="$CFLAGS -fno-lto " export CFLAGS="$CFLAGS -fno-lto "
export FCFLAGS="$CFLAGS -fno-lto " export FCFLAGS="$CFLAGS -fno-lto "
export FFLAGS="$CFLAGS -fno-lto " export FFLAGS="$CFLAGS -fno-lto "
export CXXFLAGS="$CXXFLAGS -fno-lto " export CXXFLAGS="$CXXFLAGS -fno-lto "
make %{?_smp_mflags} all sbl-hypervisor BUILD_VERSION=”%{version}_%{release}” BUILD_TAG=”%{version}” make %{?_smp_mflags} RELEASE=0 all sbl-hypervisor BUILD_VERSION=”%{version}_%{release}” BUILD_TAG=”%{version}”
%install %install
export SOURCE_DATE_EPOCH=1576518774 export SOURCE_DATE_EPOCH=1576520015
rm -rf %{buildroot} rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/package-licenses/acrn-hypervisor mkdir -p %{buildroot}/usr/share/package-licenses/acrn-hypervisor
cp %{_builddir}/acrn-hypervisor-acrn-2019w50.5-140000p/LICENSE %{buildroot}/usr/share/package-licenses/acrn-hypervisor/3cc9b5c24d3ab78578359aa1b98166ee5cf6df9b cp %{_builddir}/acrn-hypervisor-acrn-2019w50.5-140000p/LICENSE %{buildroot}/usr/share/package-licenses/acrn-hypervisor/3cc9b5c24d3ab78578359aa1b98166ee5cf6df9b
@ -143,7 +154,7 @@ cp %{_builddir}/acrn-hypervisor-acrn-2019w50.5-140000p/doc/LICENSE %{buildroot}/
cp %{_builddir}/acrn-hypervisor-acrn-2019w50.5-140000p/misc/acrn-config/kconfig/LICENSE.kconfiglib %{buildroot}/usr/share/package-licenses/acrn-hypervisor/0256be14ad1f607cb4bd89d716442115dab0294c cp %{_builddir}/acrn-hypervisor-acrn-2019w50.5-140000p/misc/acrn-config/kconfig/LICENSE.kconfiglib %{buildroot}/usr/share/package-licenses/acrn-hypervisor/0256be14ad1f607cb4bd89d716442115dab0294c
cp %{_builddir}/acrn-hypervisor-acrn-2019w50.5-140000p/misc/acrn-config/library/hypervisor_license %{buildroot}/usr/share/package-licenses/acrn-hypervisor/e769dc34d30330fcb407f27559c817e502fdfb13 cp %{_builddir}/acrn-hypervisor-acrn-2019w50.5-140000p/misc/acrn-config/library/hypervisor_license %{buildroot}/usr/share/package-licenses/acrn-hypervisor/e769dc34d30330fcb407f27559c817e502fdfb13
cp %{_builddir}/acrn-hypervisor-acrn-2019w50.5-140000p/misc/tools/acrn-crashlog/license_header %{buildroot}/usr/share/package-licenses/acrn-hypervisor/b63d865a65562d341e07541b47e5b542a3e2ca67 cp %{_builddir}/acrn-hypervisor-acrn-2019w50.5-140000p/misc/tools/acrn-crashlog/license_header %{buildroot}/usr/share/package-licenses/acrn-hypervisor/b63d865a65562d341e07541b47e5b542a3e2ca67
%make_install sbl-hypervisor-install hypervisor-install-debug sbl-hypervisor-install-debug %make_install RELEASE=0 sbl-hypervisor-install hypervisor-install-debug sbl-hypervisor-install-debug
## install_append content ## install_append content
mkdir -p %{buildroot}/usr/lib/systemd/system/multi-user.target.wants mkdir -p %{buildroot}/usr/lib/systemd/system/multi-user.target.wants
ln -s ../acrnd.service %{buildroot}/usr/lib/systemd/system/multi-user.target.wants/acrnd.service ln -s ../acrnd.service %{buildroot}/usr/lib/systemd/system/multi-user.target.wants/acrnd.service
@ -192,7 +203,20 @@ ln -s ../../samples/apl-mrb/launch_uos.sh %{buildroot}/usr/share/acrn/conf/add/v
%files bin %files bin
%defattr(-,root,root,-) %defattr(-,root,root,-)
/usr/bin/acrn-dm /usr/bin/acrn-dm
/usr/bin/acrnctl
/usr/bin/acrnd /usr/bin/acrnd
/usr/bin/acrnlog
/usr/bin/acrnprobe
/usr/bin/acrntrace
/usr/bin/crashlogctl
/usr/bin/debugger
/usr/bin/usercrash-wrapper
/usr/bin/usercrash_c
/usr/bin/usercrash_s
%files config
%defattr(-,root,root,-)
/usr/lib/tmpfiles.d/acrn-crashlog-dirs.conf
%files data %files data
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -208,6 +232,8 @@ ln -s ../../samples/apl-mrb/launch_uos.sh %{buildroot}/usr/share/acrn/conf/add/v
/usr/share/acrn/bios/changelog_vsbl.txt /usr/share/acrn/bios/changelog_vsbl.txt
/usr/share/acrn/conf/add/vm1.args /usr/share/acrn/conf/add/vm1.args
/usr/share/acrn/conf/add/vm1.sh /usr/share/acrn/conf/add/vm1.sh
/usr/share/acrn/crashlog/40-watchdog.conf
/usr/share/acrn/crashlog/80-coredump.conf
/usr/share/acrn/samples/apl-mrb/acrn_guest.service /usr/share/acrn/samples/apl-mrb/acrn_guest.service
/usr/share/acrn/samples/apl-mrb/launch_uos.args /usr/share/acrn/samples/apl-mrb/launch_uos.args
/usr/share/acrn/samples/apl-mrb/launch_uos.sh /usr/share/acrn/samples/apl-mrb/launch_uos.sh
@ -221,6 +247,7 @@ ln -s ../../samples/apl-mrb/launch_uos.sh %{buildroot}/usr/share/acrn/conf/add/v
/usr/share/acrn/samples/nuc/launch_zephyr.sh /usr/share/acrn/samples/nuc/launch_zephyr.sh
/usr/share/acrn/samples/nuc/runC.json /usr/share/acrn/samples/nuc/runC.json
/usr/share/clr-service-restart/acrnd.service /usr/share/clr-service-restart/acrnd.service
/usr/share/defaults/telemetrics/acrnprobe.xml
%files dev %files dev
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -246,6 +273,9 @@ ln -s ../../samples/apl-mrb/launch_uos.sh %{buildroot}/usr/share/acrn/conf/add/v
%exclude /usr/lib/systemd/system/multi-user.target.wants/acrnd.service %exclude /usr/lib/systemd/system/multi-user.target.wants/acrnd.service
/usr/lib/systemd/system/acrn_guest.service /usr/lib/systemd/system/acrn_guest.service
/usr/lib/systemd/system/acrnd.service /usr/lib/systemd/system/acrnd.service
/usr/lib/systemd/system/acrnlog.service
/usr/lib/systemd/system/acrnprobe.service
/usr/lib/systemd/system/usercrash.service
%files staticdev %files staticdev
%defattr(-,root,root,-) %defattr(-,root,root,-)

View File

@ -1,2 +1,3 @@
2019w45.2.140000p 2019w50.5.140000p
numactl-dev
util-linux util-linux

View File

@ -1 +1 @@
253 254

View File

@ -1,7 +1,15 @@
libblkid.so.1
libc.so.6 libc.so.6
libcom_err.so.2
libcrypto.so.1.1 libcrypto.so.1.1
libevent-2.1.so.6
libext2fs.so.2
libnuma.so.1
libpciaccess.so.0 libpciaccess.so.0
libpthread.so.0 libpthread.so.0
librt.so.1 librt.so.1
libsystemd.so.0
libtelemetry.so.4
libusb-1.0.so.0 libusb-1.0.so.0
libuuid.so.1 libuuid.so.1
libxml2.so.2