-
Notifications
You must be signed in to change notification settings - Fork 2
Ignoring alerts
ᴀɴᴛᴏɴ ɴᴏᴠᴏᴊɪʟᴏᴠ edited this page Sep 4, 2024
·
6 revisions
You can provide one more ID's of checks to disable using option -I
/--ignore
:
perfecto -I PF2,PF12 myapp.spec
All rpmlint
checks can be disabled using -nl
/--no-lint
option or by passing ID LNT0
to -I
/--ignore
option:
perfecto --no-lint myapp.spec
# or
perfecto -I PF2,PF12,LNT0 myapp.spec
Use directive ignore
in your spec file to disable any alerts for the next line:
pushd libressl-%{libre_ver}
mkdir build
# perfecto:ignore
./configure --prefix=$(pwd)/build --enable-shared=no
%{__make} %{?_smp_mflags}
%{__make} install
popd
You can provide number of lines to ignore:
# perfecto:ignore 4
Source1: %{name}-%{version}-1.tar.gz
Source2: %{name}-%{version}-2.tar.gz
Source3: %{name}-%{version}-3.tar.gz
Source4: %{name}-%{version}-4.tar.gz
Note
You can use perfecto:absolve
or perfecto:disable
as well as perfecto:ignore
.
Use directive target
in your spec file to disable check on some systems.
The target
directive allows defining different types of targets:
- ID of OS:
ol
,centos
,almalinux
,fedora
… - ID of OS with major version:
ol7
,centos7
,almalinux8
,fedora39
… - Platform ID:
el8
,el9
… - OS like ID using
@
prefix:@rhel
,@centos
,@fedora
…
Example:
################################################################################
# perfecto:target el8 el9 @centos
################################################################################
%{!?_without_check: %define _with_check 1}
################################################################################
Summary: Test spec for perfecto
Name: perfecto
Version: 1.0.0
Release: 0%{?dist}
Group: System Environment/Base
License: MIT
URL: https://domain.com
…