From 0aeffaf2ef84736e3a37837137a77c36f3f8f7c9 Mon Sep 17 00:00:00 2001 From: Dmitry Maksyoma Date: Fri, 12 Feb 2021 23:07:03 +1300 Subject: [PATCH] Rpm: run rpmlint after building rpm --- builder/build-rpm-inside-docker | 1 + builder/dockerfile.centos_core.rpm.build | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/builder/build-rpm-inside-docker b/builder/build-rpm-inside-docker index 1e856c6..5f51cd1 100755 --- a/builder/build-rpm-inside-docker +++ b/builder/build-rpm-inside-docker @@ -27,3 +27,4 @@ os_dir="build/${os}_${os_codename}" prepare_build_env rpmbuild -ba ~/rpmbuild/SPECS/kasmvncserver.spec copy_rpm_to_build_dir +rpmlint "$os_dir"/*.rpm || true diff --git a/builder/dockerfile.centos_core.rpm.build b/builder/dockerfile.centos_core.rpm.build index 925eee4..7a4e208 100644 --- a/builder/dockerfile.centos_core.rpm.build +++ b/builder/dockerfile.centos_core.rpm.build @@ -1,6 +1,6 @@ FROM centos:centos7 -RUN yum install -y rpm* gpg* rng-tools +RUN yum install -y rpm* gpg* rng-tools rpmlint RUN yum install -y tree vim less RUN yum install -y redhat-lsb-core