forked from pool/obs-service-replace_using_env
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:
parent
12206d50f3
commit
117da3c0a5
@ -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>
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user