Dominique Leuenberger 2021-05-06 20:52:43 +00:00 committed by Git OBS Bridge
commit 405304b2a2
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> 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 Source0: replace_using_env
Source1: replace_using_env.service Source1: replace_using_env.service
Source2: README Source2: README
Source3: virt-containers-meta Source3: LICENSE
Source4: LICENSE
Requires: bash Requires: bash
Requires: sed Requires: sed
BuildArch: noarch BuildArch: noarch
@ -37,15 +36,14 @@ in the specified files with the values from the build environment.
%prep %prep
cp %{SOURCE2} . cp %{SOURCE2} .
cp %{SOURCE4} . cp %{SOURCE3} .
%build %build
%install %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 0755 %{SOURCE0} %{buildroot}%{_prefix}/lib/obs/service
install -m 0644 %{SOURCE1} %{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 %files
%license LICENSE %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