libass/libass.spec
Takashi Iwai 3bc13de502 Accepting request 851536 from home:alois:branches:multimedia:libs
- Update to version 0.15.0
  * Fix backwards/VSFilter-incompatible font sizes with FreeType
    2.10+
  * Improve speed via better caching
  * Require HarfBuzz unconditionally to ensure good shaping for
    complex scripts
  * ass_set_use_margins(true) now simply places text on the whole
    screen instead of attempting to tie it to video positioning
    (set by the margin values) and failing in various ways when
    margins are used to implement pan & scan in a video player
  * Add ass_track_set_feature() & catch-all
    ASS_FEATURE_INCOMPATIBLE_EXTENSIONS
  * Add ASS_FEATURE_BIDI_BRACKETS to enable Unicode 6.3+ bracket
    matching when applying the Unicode Bidirectional Algorithm
    (incompatible with VSFilter; requires libass built with
    FriBidi 1.0+)
  * Fix stack overflow on deeply nested \t tags
  * Fix positioning of events with leading line breaks
  * Fix small but nonzero \bord becoming \bord0 (regression in
    0.14.0)
  * Measure BorderStyle=4 box padding from glyph border, not
    from glyph fill
  * Scale everything from script resolution if storage size is
    not set (including borders and shadows regardless of
    ScaledBorderAndShadow)
  * Fix the default aspect ratio calculation when neither
    ass_set_pixel_aspect() nor ass_set_aspect_ratio() is called
  * Multiple fixes for karaoke override tags
  * Handle memory allocation failures better:
    avoid some crashes and produce images closer to truth
  * Avoid some integer overflows
  * Add internal infrastructure for regression testing
  * Improve VSFilter compatibility:
    + Treat invalid nested \t tags like VSFilter
    + Make \t(T,T,...) at time exactly T use the post-transition
      values
    + Make lines stack more like they do in VSFilter
    + Default ScaledBorderAndShadow to 0 (like VSFilter),
      except for subtitles that were produced by old FFmpeg/Libav
    + Make shadow positioning with 3D transforms match VSFilter's
    + Cut out glyphs from border & shadow in all the same cases
      as VSFilter
    + Match VSFilter on animated color tags with negative
      acceleration
    + Fix parsing of some files that VSFilter accepts but libass
      didn't by ignoring leading whitespace in each line of an
      ASS file or CodecPrivate
    + Improve font selection with CoreText
    + Stop faux-bolding fonts that are too bold to get faux bold
      in VSFilter
    + Ignore leading/trailing spaces when calculating height of
      nonblank lines
    + Match VSFilter on \fade with large alpha value arguments
    + Stop splitting bitmaps on font substitution
    + Multiple fixes for Banner and Scroll effects
    + Multiple fixes for karaoke override tags

OBS-URL: https://build.opensuse.org/request/show/851536
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libass?expand=0&rev=53
2020-12-01 09:55:17 +00:00

91 lines
2.6 KiB
RPMSpec

#
# spec file for package libass
#
# Copyright (c) 2020 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/
#
%define sover 9
Name: libass
Version: 0.15.0
Release: 0
Summary: Library for SSA/ASS-formatted subtitle rendering
License: ISC
Group: Development/Libraries/C and C++
URL: https://github.com/libass/libass
Source: https://github.com/libass/libass/releases/download/%{version}/%{name}-%{version}.tar.xz
Source99: baselibs.conf
BuildRequires: nasm
BuildRequires: pkgconfig
BuildRequires: pkgconfig(fontconfig) >= 2.10.92
BuildRequires: pkgconfig(freetype2) >= 9.10.3
BuildRequires: pkgconfig(fribidi) >= 0.19.0
BuildRequires: pkgconfig(harfbuzz) >= 0.9.5
%description
libass is a subtitle renderer for the ASS/SSA
(Advanced Substation Alpha/Substation Alpha) subtitle
format. It is mostly compatible with VSFilter.
%package -n libass%{sover}
Summary: Library for SSA/ASS-formatted subtitle rendering
Group: System/Libraries
%description -n libass%{sover}
libass is a subtitle renderer for the ASS/SSA
(Advanced Substation Alpha/Substation Alpha) subtitle
format. It is mostly compatible with VSFilter.
%package devel
Summary: Development files for libass, a subtitle rendering library
Group: Development/Libraries/C and C++
Requires: glibc-devel
Requires: libass%{sover} = %{version}
Requires: pkgconfig(fontconfig)
Requires: pkgconfig(freetype2) >= 9.10.3
Requires: pkgconfig(fribidi) >= 0.19.0
Requires: pkgconfig(harfbuzz)
%description devel
This package is needed if you want to develop / compile against libASS.
%prep
%autosetup
%build
%configure \
--disable-silent-rules \
--disable-static
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%check
make %{?_smp_mflags} check
%post -n libass%{sover} -p /sbin/ldconfig
%postun -n libass%{sover} -p /sbin/ldconfig
%files -n libass%{sover}
%{_libdir}/libass.so.%{sover}*
%files devel
%{_includedir}/ass
%{_libdir}/libass.so
%{_libdir}/pkgconfig/libass.pc
%changelog