2022-04-20 13:34:50 +02:00
|
|
|
#
|
|
|
|
# spec file for package openfst
|
|
|
|
#
|
2024-02-08 15:38:22 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2022-04-20 13:34:50 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-02-08 15:38:22 +01:00
|
|
|
%define lname libfst26
|
2022-04-20 13:34:50 +02:00
|
|
|
Name: openfst
|
2024-02-08 15:38:22 +01:00
|
|
|
Version: 1.8.3
|
2022-04-20 13:34:50 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Weighted finite-state transducer library
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
URL: http://www.openfst.org/
|
|
|
|
Source: http://www.openfst.org/twiki/pub/FST/FstDownload/%name-%version.tar.gz
|
|
|
|
Patch1: i586-80bitfp.patch
|
2024-02-08 15:38:22 +01:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} < 1600
|
|
|
|
BuildRequires: gcc12-c++ >= 8.1.0
|
2022-04-20 13:34:50 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: gcc-c++ >= 8.1.0
|
|
|
|
%endif
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
|
|
|
|
%description
|
|
|
|
OpenFst is a library for constructing, combining, optimizing and
|
|
|
|
searching weighted finite-state transducers (FSTs).
|
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
Summary: Development files for OpenFST
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
OpenFST is a library for constructing, combining, optimizing and
|
|
|
|
searching weighted finite-state transducers (FSTs).
|
|
|
|
|
|
|
|
This package requires SSE on 32-bit x86 to function.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for OpenFST
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %lname = %version-%release
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
OpenFST is a library for constructing, combining, optimizing and
|
|
|
|
searching weighted finite-state transducers (FSTs).
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
%build
|
2024-02-08 15:38:22 +01:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} < 1600
|
|
|
|
export CXX=g++-12
|
2022-04-20 13:34:50 +02:00
|
|
|
%endif
|
|
|
|
autoreconf -fi
|
|
|
|
%configure
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
find %buildroot/%_libdir -type f -name "*.la" -print -delete
|
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license COPYING
|
|
|
|
%_bindir/fst*
|
|
|
|
|
|
|
|
%files -n %lname
|
2024-02-08 15:38:22 +01:00
|
|
|
%_libdir/lib*fst*.so.*
|
2022-04-20 13:34:50 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%_includedir/fst/
|
|
|
|
%_libdir/*.so
|
|
|
|
|
|
|
|
%changelog
|