3 %bcond_without tests # tests building
5 Summary: AV1 decoder library (10-bit)
6 Summary(pl.UTF-8): Biblioteka dekodera AV1 (10-bitowego)
9 %define gitref ac9e35a6a5030fc8f26dcfde24ec8bc19ac12a94
13 #Source0Download: https://chromium.googlesource.com/codecs/libgav1
14 #Source0: https://chromium.googlesource.com/codecs/libgav1/+archive/%{gitref}.tar.gz?/%{name}-%{version}.tar.gz
15 # tarball is recreated on each download, so upload via dropin
16 Source0: %{name}-%{version}.tar.gz
17 # Source0-md5: b4eca44acc66970b90a0465240c0d51f
18 Patch0: %{name}-system-libs.patch
20 URL: https://chromium.googlesource.com/codecs/libgav1
21 BuildRequires: abseil-cpp-devel
22 BuildRequires: cmake >= 3.7.1
23 BuildRequires: gtest-devel
24 BuildRequires: libstdc++-devel >= 6:5
25 BuildRequires: rpmbuild(macros) >= 1.605
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 libgav1 is a Main profile (0) & High profile (1) compliant AV1
32 %description -l pl.UTF-8
33 libgav1 to dekoder AV1 zgodny z profilami Main (0) i High (1).
36 Summary: Header files for libgav1 library
37 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgav1
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
40 Requires: libstdc++-devel >= 6:5
43 Header files for libgav1 library.
45 %description devel -l pl.UTF-8
46 Pliki nagłówkowe biblioteki libgav1.
49 Summary: Static libgav1 library
50 Summary(pl.UTF-8): Statyczna biblioteka libgav1
51 Group: Development/Libraries
52 Requires: %{name}-devel = %{version}-%{release}
55 Static libgav1 library.
57 %description static -l pl.UTF-8
58 Statyczna biblioteka libgav1.
69 -DCMAKE_INSTALL_BINDIR=bin \
70 -DCMAKE_INSTALL_DATAROOTDIR=share \
71 -DCMAKE_INSTALL_INCLUDEDIR=include \
72 -DCMAKE_INSTALL_LIBDIR=%{_lib} \
73 %{!?with_tests:-DLIBGAV1_ENABLE_TESTS=OFF}
78 # how to execute all automatically?
79 for f in $(echo ./*_test) ; do
85 rm -rf $RPM_BUILD_ROOT
87 %{__make} -C build install \
88 DESTDIR=$RPM_BUILD_ROOT
91 rm -rf $RPM_BUILD_ROOT
93 %post -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
97 %defattr(644,root,root,755)
98 %doc AUTHORS README.md
99 %attr(755,root,root) %{_bindir}/gav1_decode
100 %attr(755,root,root) %{_libdir}/libgav1.so.*.*.*
101 %attr(755,root,root) %ghost %{_libdir}/libgav1.so.0
104 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_libdir}/libgav1.so
107 %{_pkgconfigdir}/libgav1.pc
108 %{_datadir}/cmake/libgav1-config.cmake
111 %defattr(644,root,root,755)