3 %bcond_without wxwidgets # wxWidgets based analyzer
5 %ifarch %{arm_with_neon}
9 Summary: Royalty-free next-generation video format
10 Summary(pl.UTF-8): Format wideo nowej generacji bez opłat licencyjnych
16 #Source0Download: https://aomedia.googlesource.com/aom/
17 # tarball is recreated with different md5 on each download
18 #Source0: https://aomedia.googlesource.com/aom/+archive/v%{version}.tar.gz?fake=/%{name}-%{version}.tar.gz
19 Source0: %{name}-%{version}.tar.gz
20 # Source0-md5: 07e428c79ea3e81720c13f75f391b955
21 Patch0: %{name}-examples.patch
22 URL: https://aomedia.org/
23 BuildRequires: cmake >= 3.6
24 BuildRequires: doxygen >= 1:1.8.10
25 BuildRequires: graphviz
26 BuildRequires: libstdc++-devel
27 BuildRequires: rpm-build >= 4.6
28 BuildRequires: rpmbuild(macros) >= 2.007
29 BuildRequires: sed >= 4.0
30 %{?with_wxwidgets:BuildRequires: wxGTK3-unicode-devel}
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 The Alliance for Open Media's focus is to deliver a next-generation
37 - Interoperable and open;
38 - Optimized for the Internet;
39 - Scalable to any modern device at any bandwidth;
40 - Designed with a low computational footprint and optimized for
42 - Capable of consistent, highest-quality, real-time video delivery;
44 - Flexible for both commercial and non-commercial content, including
45 user-generated content.
47 %description -l pl.UTF-8
48 Celem Alliance for Open Media jest dostarczenie nowej generacji
49 formatu wideo, który jest:
50 - interoperacyjny i otwarty
51 - zoptymalizowany dla Internetu
52 - skalowalny na dowolne współczesne urządzenie przy dowolnym paśmie
53 - zaprojektowany z myślą o małym narzucie obliczeniowym,
54 zoptymalizowany dla sprzętu
55 - umożliwiający spójne udostępnianie wysokiej jakości obrazu w czasie
57 - elastyczny zarówno dla treści komercyjnych, jak i niekomercyjnych, w
58 tym wygenerowanych przez użytkownika.
61 Summary: Development files for AOM
62 Summary(pl.UTF-8): Pliki programistyczne AOM
63 Group: Development/Libraries
64 Requires: %{name} = %{version}-%{release}
67 Development files for AOM the royalty-free next-generation video
70 %description devel -l pl.UTF-8
71 Pliki programistyczne AOM - formatu obrazu nowej generacji, bez opłat
75 Summary: Static AOM library
76 Summary(pl.UTF-8): Statyczna biblioteka AOM
77 Group: Development/Libraries
78 Requires: %{name}-devel = %{version}-%{release}
83 %description static -l pl.UTF-8
84 Statyczna biblioteka AOM.
87 Summary: API documentation for AOM library
88 Summary(pl.UTF-8): Dokumentacja API biblioteki AOM
93 API documentation for AOM library.
95 %description apidocs -l pl.UTF-8
96 Dokumentacja API biblioteki AOM.
99 Summary: Graphical analyzer for AOM
100 Summary(pl.UTF-8): Graficzny analizator formatu AOM
101 Group: X11/Applications/Multimedia
102 Requires: %{name} = %{version}-%{release}
105 Graphical analyzer for AOM.
107 %description gui -l pl.UTF-8
108 Graficzny analizator formatu AOM.
117 # build/cmake/aom_install.cmake and .pc creation expect relative ..._{BINDIR,INCLUDEDIR,LIBDIR}
119 -DCMAKE_INSTALL_BINDIR:PATH=bin \
120 -DCMAKE_INSTALL_INCLUDEDIR:PATH=include \
121 -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
122 %ifnarch aarch64 %{arm} %{ix86} %{x8664}
123 -DAOM_TARGET_CPU=generic \
126 -DAOM_TARGET_CPU=arm \
129 -DAOM_TARGET_CPU=arm64 \
132 -DAOM_TARGET_CPU=x86 \
135 -DAOM_TARGET_CPU=x86_64 \
137 -DCMAKE_SKIP_RPATH=1 \
138 %{?with_wxwidgets:-DCONFIG_ANALYZER=1} \
142 %{cmake_on_off neon ENABLE_NEON} \
143 -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-gtk3-unicode-config
149 rm -rf $RPM_BUILD_ROOT
151 %{__make} -C builddir install \
152 DESTDIR=$RPM_BUILD_ROOT
154 %{?with_wxwidgets:install -p builddir/examples/analyzer $RPM_BUILD_ROOT%{_bindir}/aomanalyzer}
157 rm -rf $RPM_BUILD_ROOT
159 %post -p /sbin/ldconfig
160 %postun -p /sbin/ldconfig
163 %defattr(644,root,root,755)
164 %doc AUTHORS CHANGELOG LICENSE PATENTS README.md
165 %attr(755,root,root) %{_bindir}/aomdec
166 %attr(755,root,root) %{_bindir}/aomenc
167 %attr(755,root,root) %{_libdir}/libaom.so.*.*.*
168 %attr(755,root,root) %ghost %{_libdir}/libaom.so.3
171 %defattr(644,root,root,755)
172 %attr(755,root,root) %{_libdir}/libaom.so
174 %{_pkgconfigdir}/aom.pc
177 %defattr(644,root,root,755)
181 %defattr(644,root,root,755)
182 %doc builddir/docs/html/*.{css,html,js,png}
184 %if %{with wxwidgets}
186 %defattr(644,root,root,755)
187 %attr(755,root,root) %{_bindir}/aomanalyzer