]>
Commit | Line | Data |
---|---|---|
1 | Summary: LibASS - SSA/ASS subtitles rendering library | |
2 | Summary(pl.UTF-8): LibASS - biblioteka renderująca napisy SSA/ASS | |
3 | Name: libass | |
4 | Version: 0.17.2 | |
5 | Release: 1 | |
6 | License: MIT-like | |
7 | Group: Libraries | |
8 | #Source0Download: https://github.com/libass/libass/releases | |
9 | Source0: https://github.com/libass/libass/releases/download/%{version}/%{name}-%{version}.tar.xz | |
10 | # Source0-md5: 0863bbeb95cf1ae51b2ccd091b5771cb | |
11 | URL: https://github.com/libass/libass/ | |
12 | BuildRequires: autoconf >= 2.50 | |
13 | BuildRequires: automake | |
14 | BuildRequires: fontconfig-devel >= 1:2.10.92 | |
15 | # pkgconfig(freetype2) >= 9.17.3 | |
16 | BuildRequires: freetype-devel >= 1:2.3.6 | |
17 | BuildRequires: fribidi-devel >= 0.19.1 | |
18 | BuildRequires: harfbuzz-devel >= 1.2.3 | |
19 | BuildRequires: libtool >= 2:2 | |
20 | BuildRequires: libunibreak-devel >= 1.1 | |
21 | %ifarch %{ix86} %{x8664} x32 | |
22 | BuildRequires: nasm | |
23 | %endif | |
24 | BuildRequires: pkgconfig | |
25 | BuildRequires: tar >= 1:1.22 | |
26 | BuildRequires: xz | |
27 | Requires: fontconfig-libs >= 1:2.10.92 | |
28 | Requires: freetype >= 1:2.3.6 | |
29 | Requires: fribidi >= 0.19.1 | |
30 | Requires: harfbuzz >= 1.2.3 | |
31 | Requires: libunibreak >= 1.1 | |
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 | ||
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} | |
49 | Requires: fontconfig-devel >= 1:2.10.92 | |
50 | Requires: freetype-devel >= 1:2.3.6 | |
51 | Requires: fribidi-devel >= 0.19.1 | |
52 | Requires: harfbuzz-devel >= 1.2.3 | |
53 | Requires: libunibreak-devel >= 1.1 | |
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 | |
79 | %{__libtoolize} | |
80 | %{__aclocal} -I m4 | |
81 | %{__autoconf} | |
82 | %{__autoheader} | |
83 | %{__automake} | |
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 | ||
95 | # obsoleted by pkg-config | |
96 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libass.la | |
97 | ||
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) | |
106 | %doc COPYING Changelog | |
107 | %attr(755,root,root) %{_libdir}/libass.so.*.*.* | |
108 | %attr(755,root,root) %ghost %{_libdir}/libass.so.9 | |
109 | ||
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
112 | %attr(755,root,root) %{_libdir}/libass.so | |
113 | %{_includedir}/ass | |
114 | %{_pkgconfigdir}/libass.pc | |
115 | ||
116 | %files static | |
117 | %defattr(644,root,root,755) | |
118 | %{_libdir}/libass.a |