diff --git a/protobuf-rpmlintrc b/protobuf-rpmlintrc new file mode 100644 index 0000000..f8008a5 --- /dev/null +++ b/protobuf-rpmlintrc @@ -0,0 +1,3 @@ +addFilter("shlib-policy-name-error") +addFilter("env-script-interpreter") +addFilter("spurious-executable-perm") diff --git a/protobuf.changes b/protobuf.changes index 99ffd20..8125e88 100644 --- a/protobuf.changes +++ b/protobuf.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Apr 27 06:59:31 UTC 2023 - Fridrich Strba + +- Make possible to build on older systems, like SLE12 that miss + some of the used macros. + ------------------------------------------------------------------- Thu Mar 23 09:01:50 UTC 2023 - Martin Liška diff --git a/protobuf.spec b/protobuf.spec index 8b7cc2e..5bcfeda 100644 --- a/protobuf.spec +++ b/protobuf.spec @@ -16,6 +16,7 @@ # +%{!?make_build:%global make_build make %{?_smp_mflags}} %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define sover 3_21_12 %define tarname protobuf @@ -167,6 +168,9 @@ This package contains the Python bindings for Google Protocol Buffers. %prep %autosetup -p1 -n %{tarname}-%{version} + +# The previous blank line is crucial for older system being able +# to use the autosetup macro mkdir gmock %if %{with python2} || %{with python3}