add conditional for apt-libs so the same spec file can be used for

Centos
This commit is contained in:
Michal Ambroz 2023-11-27 06:44:53 +01:00
parent e32f1a1cce
commit 1b3bd7674a

View File

@ -20,6 +20,7 @@ Patch1: openscap-1.3.9-perlpath.patch
# Implicit declarations due to missing includes # Implicit declarations due to missing includes
# reported in #PR2060, #PR2061, #PR2062
Patch2: openscap-1.3.9-includes.patch Patch2: openscap-1.3.9-includes.patch
BuildRequires: make BuildRequires: make
@ -44,8 +45,14 @@ BuildRequires: dbus-devel
BuildRequires: libyaml-devel BuildRequires: libyaml-devel
BuildRequires: xmlsec1-devel BuildRequires: xmlsec1-devel
BuildRequires: xmlsec1-openssl-devel BuildRequires: xmlsec1-openssl-devel
# apt-libs missing on Centos
%if 0%{?fedora}
BuildRequires: apt-devel BuildRequires: apt-devel
%endif
BuildRequires: opendbx-devel BuildRequires: opendbx-devel
# GConf2 not used on purpose as obsolete and blocking anaconda addon # GConf2 not used on purpose as obsolete and blocking anaconda addon
# BuildRequires: GConf2-devel # BuildRequires: GConf2-devel
BuildRequires: procps-ng-devel BuildRequires: procps-ng-devel
@ -70,6 +77,13 @@ Requires: popt
Requires: procps Requires: procps
Requires: xmlsec1 xmlsec1-openssl Requires: xmlsec1 xmlsec1-openssl
# apt-libs missing on Centos
%if 0%{?fedora}
Requires: apt-libs
%endif
%description %description
OpenSCAP is a set of open source libraries providing an easier path OpenSCAP is a set of open source libraries providing an easier path
for integration of the SCAP line of standards. SCAP is a line of standards for integration of the SCAP line of standards. SCAP is a line of standards
@ -262,6 +276,9 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%{_mandir}/man8/oscap-podman.8* %{_mandir}/man8/oscap-podman.8*
%changelog %changelog
* Thu Nov 23 2023 Michal Ambroz <rebus _AT seznam.cz> - 1:1.3.9-2
- adding conditional for apt-devel apt-libs as proposed upstream
* Thu Nov 23 2023 Michal Ambroz <rebus _AT seznam.cz> - 1:1.3.9-1 * Thu Nov 23 2023 Michal Ambroz <rebus _AT seznam.cz> - 1:1.3.9-1
- bump to 1.3.9 - bump to 1.3.9
- provide perl binding - provide perl binding