File fribidi.spec of Package fribidi.24294
#
# spec file for package fribidi
#
# Copyright (c) 2022 SUSE LLC
#
# 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/
#
Name: fribidi
Version: 0.19.2
Release: 0
Summary: Free Implementation of BiDi Algorithm
License: LGPL-2.1-only
Group: System/Libraries
URL: http://fribidi.org/
# bug437293
%ifarch ppc64
Obsoletes: fribidi-64bit
%endif
#
Provides: locale(ar;he)
Source: http://fribidi.org/download/%{name}-%{version}.tar.gz
Source2: baselibs.conf
# PATCH-FIX-UPSTREAM fribidi-CVE-2022-25308.patch boo#1196147 mgorse@suse.com -- fix a stack overflow.
Patch0: fribidi-CVE-2022-25308.patch
# PATCH-FIX-UPSTREAM fribidi-CVE-2022-25309.patch boo#1196148 mgorse@suse.com -- Protect against garbage in the CapRTL encoder.
Patch1: fribidi-CVE-2022-25309.patch
# PATCH-FIX-UPSTREAM fribidi-CVE-2022-25310.patch boo#1196150 mgorse@suse.com -- fix SEGV issue in fribidi_remove_bidi_marks.
Patch2: fribidi-CVE-2022-25310.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkg-config
%description
This library implements the algorithm as described in the "Unicode
Standard Annex #9, the Bidirectional Algorithm,
http://www.unicode.org/unicode/reports/tr9/". FriBidi is exhaustively
tested against the Bidi Reference Code and, to the best of the
developers' knowledge, does notcontain any conformance bugs.
The API was inspired by the document "Bi-Di languages support - BiDi
API proposal" by Franck Portaneri, which he wrote as a proposal for
adding BiDi support to Mozilla.
%package devel
Summary: Development Files for FriBiDi
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: pkg-config
%description devel
This package provides headers and manual files for FriBiDi.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
%configure --disable-static
%__make %{?_smp_mflags}
%check
%__make check
%install
%__make DESTDIR=%buildroot install
%__rm %buildroot%{_libdir}/libfribidi.la
%clean
%__rm -rf %buildroot
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/fribidi
%{_libdir}/libfribidi.so.*
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO
%files devel
%defattr(-, root, root)
%dir %{_includedir}/fribidi
%{_includedir}/fribidi/*
%{_libdir}/libfribidi.so
%{_libdir}/pkgconfig/fribidi.pc
%doc %{_mandir}/man3/fribidi_*
%changelog