]>
Commit | Line | Data |
---|---|---|
dac3c49e JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | # | |
5 | Summary: Daala next-generation video codec | |
6 | Summary(pl.UTF-8): Daala - kodek obrazu następnej generacji | |
7 | Name: daala | |
8 | Version: 0.0 | |
9 | %define snap 20130928 | |
419d2c49 | 10 | Release: 0.%{snap}.2 |
dac3c49e JB |
11 | License: BSD |
12 | Group: Libraries | |
13 | # git clone https://git.xiph.org/daala.git | |
14 | Source0: %{name}.tar.xz | |
15 | # Source0-md5: b3ab1702b39a35bb564861a84863584f | |
16 | URL: http://xiph.org/daala/ | |
17 | BuildRequires: SDL-devel | |
18 | BuildRequires: autoconf >= 2.53 | |
19 | BuildRequires: automake >= 1:1.11 | |
20 | BuildRequires: libogg-devel >= 1:1.3 | |
21 | BuildRequires: libpng-devel | |
22 | BuildRequires: libtheora-devel | |
23 | BuildRequires: libtool >= 2:2 | |
24 | %if %{with apidocs} | |
25 | BuildRequires: doxygen | |
26 | BuildRequires: transfig | |
27 | %endif | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | Daala is the code-name for a new video compression technology. The | |
32 | effort is a collaboration between Mozilla Foundation, Xiph.Org | |
33 | Foundation and other contributors. | |
34 | ||
35 | The goal of the project is to provide a free to implement, use and | |
36 | distribute digital media format and reference implementation with | |
37 | technical performance superior to H.265. | |
38 | ||
39 | %description -l pl.UTF-8 | |
40 | Daala to nazwa kodowa nowej technologii kompresji obrazu. Próby te | |
41 | są efektem współpracy Mozilla Foundation, Xiph.Org oraz innych | |
42 | współpracowników. | |
43 | ||
44 | Celem projektu jest dostarczenie wolnego w implementacji, użyciu i | |
45 | rozpowszechnianiu formatu treści cyfrowej oraz wzorcowej implementacji | |
46 | o wydajności lepszej niż H.265. | |
47 | ||
48 | %package devel | |
49 | Summary: Header files for Daala libraries | |
50 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Daala | |
51 | Group: Development/Libraries | |
52 | Requires: %{name} = %{version}-%{release} | |
53 | Requires: libogg-devel >= 1.3 | |
54 | Requires: libpng-devel | |
55 | ||
56 | %description devel | |
57 | Header files for Daala libraries. | |
58 | ||
59 | %description devel -l pl.UTF-8 | |
60 | Pliki nagłówkowe bibliotek Daala. | |
61 | ||
62 | %package static | |
63 | Summary: Static Daala libraries | |
64 | Summary(pl.UTF-8): Statyczne biblioteki Daala | |
65 | Group: Development/Libraries | |
66 | Requires: %{name}-devel = %{version}-%{release} | |
67 | ||
68 | %description static | |
69 | Static Daala libraries. | |
70 | ||
71 | %description static -l pl.UTF-8 | |
72 | Statyczne biblioteki Daala. | |
73 | ||
74 | %package apidocs | |
75 | Summary: Daala API documentation | |
76 | Summary(pl.UTF-8): Dokumentacja API bibliotek Daala | |
77 | Group: Documentation | |
78 | ||
79 | %description apidocs | |
80 | API documentation for Daala libraries. | |
81 | ||
82 | %description apidocs -l pl.UTF-8 | |
83 | Dokumentacja API bibliotek Daala. | |
84 | ||
85 | %prep | |
86 | %setup -q -n %{name} | |
87 | ||
88 | %build | |
89 | %{__libtoolize} | |
90 | %{__aclocal} -I m4 | |
91 | %{__autoconf} | |
92 | %{__autoheader} | |
93 | %{__automake} | |
94 | %configure \ | |
95 | %{!?with_apidocs:--disable-doc} \ | |
96 | --disable-silent-rules | |
97 | %{__make} | |
98 | ||
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %{__make} install \ | |
103 | DESTDIR=$RPM_BUILD_ROOT | |
104 | ||
105 | # obsoleted by pkg-config | |
106 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdaala*.la | |
107 | # packaged as %doc | |
108 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/daala | |
109 | ||
110 | %clean | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %post -p /sbin/ldconfig | |
114 | %postun -p /sbin/ldconfig | |
115 | ||
116 | %files | |
117 | %defattr(644,root,root,755) | |
118 | %doc AUTHORS COPYING README | |
119 | %attr(755,root,root) %{_libdir}/libdaalabase.so.*.*.* | |
120 | %attr(755,root,root) %ghost %{_libdir}/libdaalabase.so.0 | |
121 | %attr(755,root,root) %{_libdir}/libdaaladec.so.*.*.* | |
122 | %attr(755,root,root) %ghost %{_libdir}/libdaaladec.so.0 | |
123 | %attr(755,root,root) %{_libdir}/libdaalaenc.so.*.*.* | |
124 | %attr(755,root,root) %ghost %{_libdir}/libdaalaenc.so.0 | |
125 | ||
126 | %files devel | |
127 | %defattr(644,root,root,755) | |
128 | %attr(755,root,root) %{_libdir}/libdaalabase.so | |
129 | %attr(755,root,root) %{_libdir}/libdaaladec.so | |
130 | %attr(755,root,root) %{_libdir}/libdaalaenc.so | |
131 | %{_includedir}/daala | |
132 | %{_pkgconfigdir}/daaladec.pc | |
133 | %{_pkgconfigdir}/daalaenc.pc | |
134 | ||
135 | %files static | |
136 | %defattr(644,root,root,755) | |
137 | %{_libdir}/libdaalabase.a | |
138 | %{_libdir}/libdaaladec.a | |
139 | %{_libdir}/libdaalaenc.a | |
140 | ||
141 | %if %{with apidocs} | |
142 | %files apidocs | |
143 | %defattr(644,root,root,755) | |
144 | %doc doc/html/* | |
145 | %endif |