]>
Commit | Line | Data |
---|---|---|
00c35e2c | 1 | # TODO: system cpuinfo (when released? note: different project than packaged in cpuinfo.spec) |
102e92f1 JB |
2 | Summary: Scalable Video Technology for AV1 (SVT-AV1 Encoder and Decoder) |
3 | Summary(pl.UTF-8): Scalable Video Technology dla AV1 (koder i dekoder SVT-AV1) | |
4 | Name: svt-av1 | |
82fc47f6 | 5 | Version: 2.1.0 |
102e92f1 JB |
6 | Release: 1 |
7 | License: BSD | |
8 | Group: Libraries | |
23237acf JB |
9 | #Source0Download: https://gitlab.com/AOMediaCodec/SVT-AV1/-/releases |
10 | Source0: https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v%{version}/SVT-AV1-v%{version}.tar.bz2 | |
82fc47f6 | 11 | # Source0-md5: 79404543e5adbd5c23d537352e9f4ba6 |
23237acf JB |
12 | URL: https://gitlab.com/AOMediaCodec/SVT-AV1 |
13 | BuildRequires: cmake >= 3.16 | |
102e92f1 JB |
14 | BuildRequires: libstdc++-devel >= 6:5.4 |
15 | BuildRequires: rpmbuild(macros) >= 1.605 | |
16 | %ifarch %{x8664} | |
f7a636fe | 17 | # or nasm >= 2.14 |
102e92f1 JB |
18 | BuildRequires: yasm >= 1.2.0 |
19 | %endif | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | The Scalable Video Technology for AV1 (SVT-AV1 Encoder and Decoder) is | |
24 | an AV1-compliant encoder/decoder library core. The SVT-AV1 encoder | |
25 | development is a work-in-progress targeting performance levels | |
26 | applicable to both VOD and Live encoding/transcoding video | |
27 | applications. The SVT-AV1 decoder implementation is targeting future | |
28 | codec research activities. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Scalable Video Technology dla AV1 (koder i dekoder SVT-AV1) to główna | |
32 | biblioteka kodera/dekodera zgodnego z AV1. Rozwój kodera SVT-AV1 trwa, | |
33 | a jego celem jest osiągnięcie wydajności nadającej się do kodowania i | |
34 | przekodowywania obrazu zarówno VOD, jak i w czasie rzeczywistym. | |
35 | Implementacja dekodera ma na celu dalsze badania nad kodekiem. | |
36 | ||
37 | %package devel | |
38 | Summary: Header files for SVT-AV1 library | |
39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SVT-AV1 | |
40 | Group: Development/Libraries | |
41 | Requires: %{name} = %{version}-%{release} | |
42 | ||
43 | %description devel | |
44 | Header files for SVT-AV1 library. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki nagłówkowe biblioteki SVT-AV1. | |
48 | ||
49 | %prep | |
23237acf | 50 | %setup -q -n SVT-AV1-v%{version} |
102e92f1 JB |
51 | |
52 | %build | |
23237acf | 53 | %cmake -B build \ |
c037bad3 | 54 | %ifnarch %{x8664} |
102e92f1 JB |
55 | -DCOMPILE_C_ONLY=ON |
56 | %endif | |
57 | ||
23237acf | 58 | %{__make} -C build |
102e92f1 JB |
59 | |
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %{__make} -C build install \ | |
64 | DESTDIR=$RPM_BUILD_ROOT | |
65 | ||
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %post -p /sbin/ldconfig | |
70 | %postun -p /sbin/ldconfig | |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
74 | %doc CHANGELOG.md LICENSE.md PATENTS.md README.md | |
75 | %attr(755,root,root) %{_bindir}/SvtAv1DecApp | |
76 | %attr(755,root,root) %{_bindir}/SvtAv1EncApp | |
77 | %attr(755,root,root) %{_libdir}/libSvtAv1Dec.so.*.*.* | |
78 | %attr(755,root,root) %ghost %{_libdir}/libSvtAv1Dec.so.0 | |
79 | %attr(755,root,root) %{_libdir}/libSvtAv1Enc.so.*.*.* | |
7925d6c8 | 80 | %attr(755,root,root) %ghost %{_libdir}/libSvtAv1Enc.so.2 |
102e92f1 JB |
81 | |
82 | %files devel | |
83 | %defattr(644,root,root,755) | |
84 | %attr(755,root,root) %{_libdir}/libSvtAv1Dec.so | |
85 | %attr(755,root,root) %{_libdir}/libSvtAv1Enc.so | |
86 | %{_includedir}/svt-av1 | |
87 | %{_pkgconfigdir}/SvtAv1Dec.pc | |
88 | %{_pkgconfigdir}/SvtAv1Enc.pc |