Accepting request 1082699 from home:fcrozat:branches:devel:libraries:c_c++

- Drop support for building on SLE12.

OBS-URL: https://build.opensuse.org/request/show/1082699
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zxing-cpp?expand=0&rev=29
This commit is contained in:
Jan Engelhardt 2023-04-25 09:05:31 +00:00 committed by Git OBS Bridge
parent 8e468b7c5c
commit c708354574
2 changed files with 6 additions and 11 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Apr 25 08:56:24 UTC 2023 - Frederic Crozat <fcrozat@suse.com>
- Drop support for building on SLE12.
-------------------------------------------------------------------
Wed Jan 25 14:01:00 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>

View File

@ -27,15 +27,9 @@ URL: https://github.com/nu-book/zxing-cpp/
Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source99: baselibs.conf
BuildRequires: pkgconfig
# Use cmake3 package on SLE12 because cmake is too old (version 3.5)
%if !0%{?is_opensuse} && 0%{?sle_version} < 150000
BuildRequires: cmake3-full >= 3.10
BuildRequires: gcc11-c++
%else
BuildRequires: cmake >= 3.10
BuildRequires: gcc-c++
%endif
BuildRequires: pkgconfig
# only TW has fmt
%if 0%{?suse_version} > 1500
# For blackbox tests
@ -71,14 +65,10 @@ other applications.
%autosetup -p1
%build
# Use g++-11 to build a C++17 codebase
# Examples require QT5-base/multimedia, but doing so creates a cycle
# Blackbox tests require fmt
%cmake \
-DBUILD_EXAMPLES=OFF \
%if !0%{?is_opensuse} && 0%{?sle_version} < 150000
-DCMAKE_CXX_COMPILER=/usr/bin/g++-11 \
%endif
%if 0%{?suse_version} < 1550
-DBUILD_BLACKBOX_TESTS=OFF
%endif