]>
Commit | Line | Data |
---|---|---|
7a1be2c9 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # API documentation | |
4 | %bcond_without static_libs # static library | |
5 | # | |
6 | Summary: AV1 decoder library | |
7 | Summary(pl.UTF-8): Biblioteka dekodera AV1 | |
8 | Name: dav1d | |
3c76d603 | 9 | Version: 1.1.0 |
c32387d4 | 10 | Release: 1 |
7a1be2c9 JB |
11 | License: BSD |
12 | Group: Libraries | |
13 | Source0: https://download.videolan.org/videolan/dav1d/%{version}/%{name}-%{version}.tar.xz | |
3c76d603 | 14 | # Source0-md5: e98a56198b2f47dbd27c747e69a9e140 |
0ac586e3 | 15 | Patch0: %{name}-nasm.patch |
7a1be2c9 | 16 | URL: https://code.videolan.org/videolan/dav1d |
7a1be2c9 | 17 | %{?with_apidocs:BuildRequires: doxygen} |
6df0eb2b | 18 | BuildRequires: meson >= 0.49.0 |
319a975c JB |
19 | %ifarch %{ix86} %{x8664} x32 |
20 | BuildRequires: nasm >= 2.13.02 | |
21 | %endif | |
73ac9645 | 22 | BuildRequires: ninja >= 1.5 |
7a1be2c9 | 23 | BuildRequires: pkgconfig |
cc2487a3 | 24 | BuildRequires: rpm-build >= 4.6 |
6df0eb2b | 25 | BuildRequires: rpmbuild(macros) >= 1.752 |
7a1be2c9 JB |
26 | BuildRequires: tar >= 1:1.22 |
27 | BuildRequires: xz | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | dav1d is a new AV1 cross-platform decoder, open-source, and focused on | |
32 | speed and correctness. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | dav1d to nowy, wieloplatformowy dekoder AV1, mający otwarte źródła, | |
36 | rozwijany głównie z myślą o szybkości i poprawności. | |
37 | ||
38 | %package devel | |
39 | Summary: Header files for DAV1D library | |
40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki DAV1D | |
41 | Group: Development/Libraries | |
42 | Requires: %{name} = %{version}-%{release} | |
7a1be2c9 JB |
43 | |
44 | %description devel | |
45 | Header files for DAV1D library. | |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Pliki nagłówkowe biblioteki DAV1D. | |
49 | ||
50 | %package static | |
51 | Summary: Static DAV1D library | |
52 | Summary(pl.UTF-8): Statyczna biblioteka DAV1D | |
53 | Group: Development/Libraries | |
54 | Requires: %{name}-devel = %{version}-%{release} | |
55 | ||
56 | %description static | |
57 | Static DAV1D library. | |
58 | ||
59 | %description static -l pl.UTF-8 | |
60 | Statyczna biblioteka DAV1D. | |
61 | ||
62 | %package apidocs | |
63 | Summary: API documentation for DAV1D library | |
64 | Summary(pl.UTF-8): Dokumentacja API biblioteki DAV1D | |
65 | Group: Documentation | |
c07e14c8 | 66 | BuildArch: noarch |
7a1be2c9 JB |
67 | |
68 | %description apidocs | |
69 | API documentation for DAV1D library. | |
70 | ||
71 | %description apidocs -l pl.UTF-8 | |
72 | Dokumentacja API biblioteki DAV1D. | |
73 | ||
74 | %prep | |
75 | %setup -q | |
0ac586e3 | 76 | %patch0 -p1 |
7a1be2c9 JB |
77 | |
78 | %build | |
79 | %meson build \ | |
fb9bc2e4 | 80 | %{!?with_static_libs:--default-library=shared} \ |
cbfc1b1b | 81 | -Denable_docs=%{__true_false apidocs} |
7a1be2c9 | 82 | |
fb9bc2e4 | 83 | %ninja_build -C build %{?with_apidocs:doc/html} |
7a1be2c9 JB |
84 | |
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %ninja_install -C build | |
89 | ||
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %post -p /sbin/ldconfig | |
94 | %postun -p /sbin/ldconfig | |
95 | ||
96 | %files | |
97 | %defattr(644,root,root,755) | |
98 | %doc COPYING NEWS README.md THANKS.md doc/PATENTS | |
99 | %attr(755,root,root) %{_bindir}/dav1d | |
100 | %attr(755,root,root) %{_libdir}/libdav1d.so.*.*.* | |
fb9bc2e4 | 101 | %attr(755,root,root) %ghost %{_libdir}/libdav1d.so.6 |
7a1be2c9 JB |
102 | |
103 | %files devel | |
104 | %defattr(644,root,root,755) | |
105 | %attr(755,root,root) %{_libdir}/libdav1d.so | |
106 | %{_includedir}/dav1d | |
107 | %{_pkgconfigdir}/dav1d.pc | |
108 | ||
109 | %if %{with static_libs} | |
110 | %files static | |
111 | %defattr(644,root,root,755) | |
112 | %{_libdir}/libdav1d.a | |
113 | %endif | |
114 | ||
115 | %if %{with apidocs} | |
116 | %files apidocs | |
117 | %defattr(644,root,root,755) | |
118 | %doc build/doc/html/* | |
119 | %endif |