3 %bcond_without wxwidgets # wxWidgets based analyzer
5 Summary: Royalty-free next-generation video format
6 Summary(pl.UTF-8): Format wideo nowej generacji bez opłat licencyjnych
10 Version: %{basever}.%{subver}
14 Source0: https://aomedia.googlesource.com/aom/+archive/v%{basever}-%{subver}.tar.gz?fake=/%{name}-%{version}.tar.gz
15 # Source0-md5: 5b22f5d026057ded5339bd17fd214e8a
16 Patch0: %{name}-build.patch
17 URL: https://aomedia.org/
18 BuildRequires: cmake >= 3.5
19 BuildRequires: doxygen
20 BuildRequires: graphviz
21 BuildRequires: libstdc++-devel
22 BuildRequires: sed >= 4.0
23 %{?with_wxwidgets:BuildRequires: wxGTK3-unicode-devel}
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 The Alliance for Open Media's focus is to deliver a next-generation
30 - Interoperable and open;
31 - Optimized for the Internet;
32 - Scalable to any modern device at any bandwidth;
33 - Designed with a low computational footprint and optimized for
35 - Capable of consistent, highest-quality, real-time video delivery;
37 - Flexible for both commercial and non-commercial content, including
38 user-generated content.
40 %description -l pl.UTF-8
41 Celem Alliance for Open Media jest dostarczenie nowej generacji
42 formatu wideo, który jest:
43 - interoperacyjny i otwarty
44 - zoptymalizowany dla Internetu
45 - skalowalny na dowolne współczesne urządzenie przy dowolnym paśmie
46 - zaprojektowany z myślą o małym narzucie obliczeniowym,
47 zoptymalizowany dla sprzętu
48 - umożliwiający spójne udostępnianie wysokiej jakości obrazu w czasie
50 - elastyczny zarówno dla treści komercyjnych, jak i niekomercyjnych, w
51 tym wygenerowanych przez użytkownika.
54 Summary: Development files for AOM
55 Summary(pl.UTF-8): Pliki programistyczne AOM
56 Group: Development/Libraries
57 Requires: %{name} = %{version}-%{release}
60 Development files for AOM the royalty-free next-generation video
63 %description devel -l pl.UTF-8
64 Pliki programistyczne AOM - formatu obrazu nowej generacji, bez opłat
68 Summary: Graphical analyzer for AOM
69 Summary(pl.UTF-8): Graficzny analizator formatu AOM
70 Group: X11/Applications/Multimedia
71 Requires: %{name} = %{version}-%{release}
74 Graphical analyzer for AOM.
76 %description gui -l pl.UTF-8
77 Graficzny analizator formatu AOM.
83 %{__sed} -i -e 's/^Next Release/v%{version}/' CHANGELOG
89 -DLIB_INSTALL_DIR=%{_libdir} \
90 %ifnarch aarch64 %{arm} %{ix86} %{x8664}
91 -DAOM_TARGET_CPU=generic \
94 -DAOM_TARGET_CPU=arm \
97 -DAOM_TARGET_CPU=arm64 \
100 -DAOM_TARGET_CPU=x86 \
103 -DAOM_TARGET_CPU=x86_64 \
105 -DCMAKE_SKIP_RPATH=1 \
106 %{?with_wxwidgets:-DCONFIG_ANALYZER=1} \
110 -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-gtk3-unicode-config
116 rm -rf $RPM_BUILD_ROOT
118 %{__make} -C builddir install \
119 DESTDIR=$RPM_BUILD_ROOT
121 %{?with_wxwidgets:install -pm 0755 builddir/examples/analyzer $RPM_BUILD_ROOT%{_bindir}/aomanalyzer}
124 rm -rf $RPM_BUILD_ROOT
126 %post -p /sbin/ldconfig
127 %postun -p /sbin/ldconfig
130 %defattr(644,root,root,755)
131 %doc AUTHORS CHANGELOG LICENSE PATENTS README.md
132 %attr(755,root,root) %{_bindir}/aomdec
133 %attr(755,root,root) %{_bindir}/aomenc
134 %attr(755,root,root) %{_libdir}/libaom.so.0
137 %defattr(644,root,root,755)
138 %doc builddir/docs/html/*
139 %attr(755,root,root) %{_libdir}/libaom.so
141 %{_pkgconfigdir}/aom.pc
143 %if %{with wxwidgets}
145 %defattr(644,root,root,755)
146 %attr(755,root,root) %{_bindir}/aomanalyzer