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