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