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: e4147c91806c7786404ac493e67511dc
18 Patch0: %{name}-system-libs.patch
19 URL: https://chromium.googlesource.com/codecs/libgav1
20 BuildRequires: abseil-cpp-devel
21 BuildRequires: cmake >= 3.7.1
22 BuildRequires: gtest-devel
23 BuildRequires: libstdc++-devel >= 6:5
24 BuildRequires: rpmbuild(macros) >= 1.605
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 libgav1 is a Main profile (0) & High profile (1) compliant AV1
31 %description -l pl.UTF-8
32 libgav1 to dekoder AV1 zgodny z profilami Main (0) i High (1).
35 Summary: Header files for libgav1 library
36 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgav1
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
39 Requires: libstdc++-devel >= 6:5
42 Header files for libgav1 library.
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki libgav1.
48 Summary: Static libgav1 library
49 Summary(pl.UTF-8): Statyczna biblioteka libgav1
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}-%{release}
54 Static libgav1 library.
56 %description static -l pl.UTF-8
57 Statyczna biblioteka libgav1.
67 -DCMAKE_INSTALL_BINDIR=bin \
68 -DCMAKE_INSTALL_DATAROOTDIR=share \
69 -DCMAKE_INSTALL_INCLUDEDIR=include \
70 -DCMAKE_INSTALL_LIBDIR=%{_lib} \
71 %{!?with_tests:-DLIBGAV1_ENABLE_TESTS=OFF}
76 # how to execute all automatically?
77 for f in $(echo ./*_test) ; do
83 rm -rf $RPM_BUILD_ROOT
85 %{__make} -C build install \
86 DESTDIR=$RPM_BUILD_ROOT
89 rm -rf $RPM_BUILD_ROOT
91 %post -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
95 %defattr(644,root,root,755)
96 %doc AUTHORS README.md
97 %attr(755,root,root) %{_bindir}/gav1_decode
98 %attr(755,root,root) %{_libdir}/libgav1.so.*.*.*
99 %attr(755,root,root) %ghost %{_libdir}/libgav1.so.0
102 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_libdir}/libgav1.so
105 %{_pkgconfigdir}/libgav1.pc
106 %{_datadir}/cmake/libgav1-config.cmake
109 %defattr(644,root,root,755)