4ca61337697f0fb30b1f6e93300250aef137c751
[packages/libass.git] / libass.spec
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:        https://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 >= 2.50
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 >= 2:2
20 BuildRequires:  pkgconfig
21 BuildRequires:  sed >= 4.0
22 BuildRequires:  tar >= 1:1.22
23 BuildRequires:  xz
24 BuildRequires:  yasm >= 1.3.0
25 Requires:       fontconfig-libs >= 1:2.4.2
26 Requires:       freetype >= 1:2.2.1
27 Requires:       fribidi >= 0.19.0
28 Requires:       harfbuzz >= 0.9.5
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 LibASS is a portable subtitle renderer for the ASS/SSA (Advanced
33 Substation Alpha/Substation Alpha) subtitle format. It is mostly
34 compatible with VSFilter.
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 # obsoleted by pkg-config
97 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libass.la
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %files
106 %defattr(644,root,root,755)
107 %doc COPYING Changelog
108 %attr(755,root,root) %{_libdir}/libass.so.*.*.*
109 %attr(755,root,root) %ghost %{_libdir}/libass.so.5
110
111 %files devel
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_libdir}/libass.so
114 %{_includedir}/ass
115 %{_pkgconfigdir}/libass.pc
116
117 %files static
118 %defattr(644,root,root,755)
119 %{_libdir}/libass.a
This page took 0.071945 seconds and 2 git commands to generate.