Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package containerized-data-importer for 
openSUSE:Factory checked in at 2021-05-04 22:01:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/containerized-data-importer (Old)
 and      /work/SRC/openSUSE:Factory/.containerized-data-importer.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "containerized-data-importer"

Tue May  4 22:01:15 2021 rev:4 rq:890394 version:1.30.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/containerized-data-importer/containerized-data-importer.changes
  2021-04-29 22:52:58.222009372 +0200
+++ 
/work/SRC/openSUSE:Factory/.containerized-data-importer.new.2988/containerized-data-importer.changes
        2021-05-04 22:01:31.164481112 +0200
@@ -1,0 +2,6 @@
+Thu Apr 29 11:36:12 UTC 2021 - Vasily Ulyanov <[email protected]>
+
+- Include release number into docker tag
+- Add cdi_containers_meta build service
+
+-------------------------------------------------------------------

New:
----
  cdi_containers_meta
  cdi_containers_meta.service

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ containerized-data-importer.spec ++++++
--- /var/tmp/diff_new_pack.pmVAi2/_old  2021-05-04 22:01:33.324472994 +0200
+++ /var/tmp/diff_new_pack.pmVAi2/_new  2021-05-04 22:01:33.328472979 +0200
@@ -24,6 +24,8 @@
 Group:          System/Packages
 URL:            https://github.com/kubevirt/containerized-data-importer
 Source0:        %{name}-%{version}.tar.gz
+Source1:        cdi_containers_meta
+Source2:        cdi_containers_meta.service
 BuildRequires:  golang-packaging
 BuildRequires:  libnbd-devel
 BuildRequires:  pkgconfig
@@ -92,6 +94,14 @@
 This contains the built YAML manifests used to install CDI into a
 kubernetes installation with kubectl apply.
 
+%package -n     obs-service-cdi_containers_meta
+Summary:        CDI containers meta information (build service)
+Group:          System/Packages
+
+%description -n obs-service-cdi_containers_meta
+The package provides meta information that is used during the build of
+the CDI container images.
+
 %prep
 # Unpack the sources respecting the GOPATH directory structure expected by the
 # go imports resolver. I.e. if DIR is in GOPATH then DIR/src/foo/bar can be
@@ -158,7 +168,7 @@
        cmd/cdi-operator \
        %{nil}
 
-env DOCKER_PREFIX=$reg_path DOCKER_TAG=%{version} 
./hack/build/build-manifests.sh
+env DOCKER_PREFIX=$reg_path DOCKER_TAG=%{version}-%{release} 
./hack/build/build-manifests.sh
 
 %install
 mkdir -p %{buildroot}%{_bindir}
@@ -181,6 +191,11 @@
 mkdir -p %{buildroot}%{_datadir}/cdi
 cp -r _out/manifests %{buildroot}%{_datadir}/cdi/
 
+# Install cdi_containers_meta build service
+mkdir -p %{buildroot}%{_prefix}/lib/obs/service
+install -m 0755 %{S:1} %{buildroot}%{_prefix}/lib/obs/service
+install -m 0644 %{S:2} %{buildroot}%{_prefix}/lib/obs/service
+
 %files api
 %license LICENSE
 %doc README.md
@@ -223,4 +238,10 @@
 %dir %{_datadir}/cdi
 %{_datadir}/cdi/manifests
 
+%files -n obs-service-cdi_containers_meta
+%license LICENSE
+%doc README.md
+%dir %{_prefix}/lib/obs
+%{_prefix}/lib/obs/service
+
 %changelog

++++++ cdi_containers_meta ++++++
#!/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

if [ -n "${pkg}" ]; then
    if rpm -q ${pkg}; then
        PKG_VERSION=$(rpm -q --queryformat=%{version} ${pkg})
        PKG_RELEASE=$(rpm -q --queryformat=%{release} ${pkg})
    else
        _pkg=$(find ./repos -name "${pkg}*.rpm")
        PKG_VERSION=$(rpm -qp --queryformat=%{version} ${_pkg})
        PKG_RELEASE=$(rpm -qp --queryformat=%{release} ${_pkg})
    fi
fi
++++++ cdi_containers_meta.service ++++++
<service name="cdi_containers_meta">
    <summary>Containers meta information for CDI (build service)</summary>
    <description>Provides meta information that is used during the build of
the CDI container images.</description>
</service>

Reply via email to