Accepting request 890866 from home:vulyanov:branches:Virtualization

- Remove meta info for virt-containers

OBS-URL: https://build.opensuse.org/request/show/890866
OBS-URL: https://build.opensuse.org/package/show/Virtualization/obs-service-replace_using_env?expand=0&rev=5
This commit is contained in:
Vasily Ulyanov 2021-05-06 06:20:24 +00:00 committed by Git OBS Bridge
parent 12206d50f3
commit 117da3c0a5
3 changed files with 8 additions and 22 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Apr 27 11:23:42 UTC 2021 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Remove meta info for virt-containers
-------------------------------------------------------------------
Thu Apr 8 08:51:05 UTC 2021 - Vasily Ulyanov <vasily.ulyanov@suse.com>

View File

@ -25,8 +25,7 @@ URL: https://build.opensuse.org/
Source0: replace_using_env
Source1: replace_using_env.service
Source2: README
Source3: virt-containers-meta
Source4: LICENSE
Source3: LICENSE
Requires: bash
Requires: sed
BuildArch: noarch
@ -37,15 +36,14 @@ in the specified files with the values from the build environment.
%prep
cp %{SOURCE2} .
cp %{SOURCE4} .
cp %{SOURCE3} .
%build
%install
mkdir -p %{buildroot}%{_prefix}/lib/obs/service/meta
mkdir -p %{buildroot}%{_prefix}/lib/obs/service
install -m 0755 %{SOURCE0} %{buildroot}%{_prefix}/lib/obs/service
install -m 0644 %{SOURCE1} %{buildroot}%{_prefix}/lib/obs/service
install -m 0755 %{SOURCE3} %{buildroot}%{_prefix}/lib/obs/service/meta
%files
%license LICENSE

View File

@ -1,17 +0,0 @@
#!/bin/bash
distro=$(rpm --eval '%{?sle_version}:%{?is_opensuse}%{!?is_opensuse:0}')
case "${distro}" in
150200:0)
TAGPREFIX=suse/sles/15.2
LABELPREFIX=com.suse.kubevirt
;;
150300:0)
TAGPREFIX=suse/sles/15.3
LABELPREFIX=com.suse.kubevirt
;;
*)
TAGPREFIX=kubevirt
LABELPREFIX=org.opensuse.kubevirt
;;
esac