]>
Commit | Line | Data |
---|---|---|
b9fc0da1 JB |
1 | Summary: LibASS - SSA/ASS subtitles rendering library |
2 | Summary(pl.UTF-8): LibASS - biblioteka renderująca napisy SSA/ASS | |
3 | Name: libass | |
82cc62ae | 4 | Version: 0.17.1 |
6d229e9e | 5 | Release: 1 |
012f0c52 | 6 | License: MIT-like |
b9fc0da1 | 7 | Group: Libraries |
6d229e9e | 8 | #Source0Download: https://github.com/libass/libass/releases |
cfe7bfd4 | 9 | Source0: https://github.com/libass/libass/releases/download/%{version}/%{name}-%{version}.tar.xz |
82cc62ae | 10 | # Source0-md5: 73f00a898161be424e05d4bee1962dbb |
5e58a9c8 | 11 | URL: https://github.com/libass/libass/ |
cfe7bfd4 | 12 | BuildRequires: autoconf >= 2.50 |
5e58a9c8 | 13 | BuildRequires: automake |
6d229e9e | 14 | BuildRequires: fontconfig-devel >= 1:2.10.92 |
2485a14f JP |
15 | # pkgconfig(freetype2) >= 9.17.3 |
16 | BuildRequires: freetype-devel >= 1:2.3.6 | |
82cc62ae | 17 | BuildRequires: fribidi-devel >= 0.19.1 |
02cde84a | 18 | BuildRequires: harfbuzz-devel >= 1.2.3 |
cfe7bfd4 | 19 | BuildRequires: libtool >= 2:2 |
82cc62ae | 20 | BuildRequires: libunibreak-devel >= 1.1 |
4a216441 JB |
21 | %ifarch %{ix86} %{x8664} x32 |
22 | BuildRequires: nasm | |
23 | %endif | |
b9fc0da1 | 24 | BuildRequires: pkgconfig |
50411762 JB |
25 | BuildRequires: tar >= 1:1.22 |
26 | BuildRequires: xz | |
6d229e9e | 27 | Requires: fontconfig-libs >= 1:2.10.92 |
2485a14f JP |
28 | Requires: freetype >= 1:2.3.6 |
29 | Requires: fribidi >= 0.19.1 | |
02cde84a | 30 | Requires: harfbuzz >= 1.2.3 |
82cc62ae | 31 | Requires: libunibreak >= 1.1 |
b9fc0da1 JB |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
35 | LibASS is a portable subtitle renderer for the ASS/SSA (Advanced | |
36 | Substation Alpha/Substation Alpha) subtitle format. It is mostly | |
37 | compatible with VSFilter. | |
38 | ||
b9fc0da1 JB |
39 | %description -l pl.UTF-8 |
40 | LibASS to przenośna biblioteka renderująca napisy w formacie ASS/SSA | |
41 | (Advanced Substation Alpha/Substation Alpha). Jest w większości | |
42 | kompatybilna z VSFiltrem. | |
43 | ||
44 | %package devel | |
45 | Summary: Header files for LibASS library | |
46 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LibASS | |
47 | Group: Development/Libraries | |
48 | Requires: %{name} = %{version}-%{release} | |
6d229e9e | 49 | Requires: fontconfig-devel >= 1:2.10.92 |
2485a14f JP |
50 | Requires: freetype-devel >= 1:2.3.6 |
51 | Requires: fribidi-devel >= 0.19.1 | |
02cde84a | 52 | Requires: harfbuzz-devel >= 1.2.3 |
82cc62ae | 53 | Requires: libunibreak-devel >= 1.1 |
b9fc0da1 JB |
54 | |
55 | %description devel | |
56 | This package contains the header files for developing applications | |
57 | that use LibASS library. | |
58 | ||
59 | %description devel -l pl.UTF-8 | |
60 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
61 | wykorzystujących bibliotekę LibASS. | |
62 | ||
63 | %package static | |
64 | Summary: Static LibASS library | |
65 | Summary(pl.UTF-8): Statyczna biblioteka LibASS | |
66 | Group: Development/Libraries | |
67 | Requires: %{name}-devel = %{version}-%{release} | |
68 | ||
69 | %description static | |
70 | Static LibASS library. | |
71 | ||
72 | %description static -l pl.UTF-8 | |
73 | Statyczna biblioteka LibASS. | |
74 | ||
75 | %prep | |
76 | %setup -q | |
77 | ||
78 | %build | |
5e58a9c8 JP |
79 | %{__libtoolize} |
80 | %{__aclocal} -I m4 | |
81 | %{__autoconf} | |
82 | %{__autoheader} | |
83 | %{__automake} | |
b9fc0da1 JB |
84 | %configure \ |
85 | --disable-silent-rules | |
86 | ||
87 | %{__make} | |
88 | ||
89 | %install | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %{__make} install \ | |
93 | DESTDIR=$RPM_BUILD_ROOT | |
94 | ||
cfe7bfd4 JB |
95 | # obsoleted by pkg-config |
96 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libass.la | |
97 | ||
b9fc0da1 JB |
98 | %clean |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
101 | %post -p /sbin/ldconfig | |
102 | %postun -p /sbin/ldconfig | |
103 | ||
104 | %files | |
105 | %defattr(644,root,root,755) | |
012f0c52 | 106 | %doc COPYING Changelog |
b9fc0da1 | 107 | %attr(755,root,root) %{_libdir}/libass.so.*.*.* |
66aba02d | 108 | %attr(755,root,root) %ghost %{_libdir}/libass.so.9 |
b9fc0da1 JB |
109 | |
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
112 | %attr(755,root,root) %{_libdir}/libass.so | |
b9fc0da1 JB |
113 | %{_includedir}/ass |
114 | %{_pkgconfigdir}/libass.pc | |
115 | ||
116 | %files static | |
117 | %defattr(644,root,root,755) | |
118 | %{_libdir}/libass.a |