SPEC: global exclude statements are not additive, need to merge into single statements

parent aa882ab2
Pipeline #869774 passed with stages
in 92 minutes and 46 seconds
......@@ -28,7 +28,7 @@
%define release_version @CPACK_PACKAGE_RELEASE@
# release tags like x.y.z-0 enable automatically to build with eos-xrootd
%if "%release_version" == "2"
%if "%release_version" == "4"
%define _with_eos_xrootd_rh 1
%endif
......@@ -142,7 +142,11 @@ BuildRequires: eos-protobuf3-compiler = 3.5.1-5.el7.cern.eos
BuildRequires: eos-protobuf3-devel = 3.5.1-5.el7.cern.eos
# don't put an explicit dependency on protobuf because eos-protobuf3 hides shared libraries from provide
%if %{?_with_eos_xrootd_rh:1}%{!?_with_eos_xrootd_rh:0}
%global __requires_exclude ^(libprotobuf.so.*$|libXrd*)
%else
%global __requires_exclude ^libprotobuf.so.*$
%endif
%else
%if %{?fedora}%{!?fedora:0} >= 27
BuildRequires: protobuf >= 3.3, protobuf-devel >= 3.3, protobuf-compiler >= 3.3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment