Accepting request 1103054 from LibreOffice:Factory

fix sle12sp5

OBS-URL: https://build.opensuse.org/request/show/1103054
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libvoikko?expand=0&rev=46
This commit is contained in:
Timo Jyrinki 2023-08-09 07:37:31 +00:00 committed by Git OBS Bridge
parent 707a1d772b
commit d12b91c15c
2 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Aug 7 20:05:10 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Fix build on older distributions by requiring gcc/g++ >= 7
-------------------------------------------------------------------
Sat Jul 1 21:19:00 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -16,6 +16,7 @@
#
%{!?make_build:%global make_build make %{?_smp_mflags}}
Name: libvoikko
Version: 4.3.2
Release: 0
@ -27,11 +28,17 @@ Source0: https://www.puimula.org/voikko-sources/%{name}/%{name}-%{version
Source1: https://www.puimula.org/voikko-sources/%{name}/%{name}-%{version}.tar.gz.asc
Source2: %{name}.keyring
Source99: baselibs.conf
BuildRequires: gcc-c++
BuildRequires: glib2-devel
BuildRequires: pkgconfig
BuildRequires: python3-xml
BuildRequires: pkgconfig(hfstospell) >= 0.5
%if 0%{?suse_version} < 1500
BuildRequires: gcc7
BuildRequires: gcc7-c++
%else
BuildRequires: gcc >= 7
BuildRequires: gcc-c++ >= 7
%endif
%description
Libvoikko is a library of free natural language processing tools. It
@ -118,6 +125,10 @@ can be used to perform various natural language analysis tasks on text.
%setup -q
%build
%if 0%{?suse_version} < 1500
export CC="gcc-7"
export CXX="g++-7"
%endif
%configure \
--disable-silent_rules \
--disable-static \