]>
Commit | Line | Data |
---|---|---|
88828506 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without wxwidgets # wxWidgets based analyzer | |
196f2aa4 | 4 | |
71eae072 JP |
5 | %ifarch %{arm_with_neon} |
6 | %define with_neon 1 | |
7 | %endif | |
8 | ||
196f2aa4 | 9 | Summary: Royalty-free next-generation video format |
88828506 | 10 | Summary(pl.UTF-8): Format wideo nowej generacji bez opłat licencyjnych |
196f2aa4 | 11 | Name: aom |
341fde9e | 12 | Version: 3.8.2 |
f3ad4e2d | 13 | Release: 1 |
196f2aa4 AM |
14 | License: BSD |
15 | Group: Libraries | |
9f00df26 | 16 | #Source0Download: https://aomedia.googlesource.com/aom/ |
6db68915 | 17 | # tarball is recreated with different md5 on each download |
cfd71477 | 18 | #Source0: https://aomedia.googlesource.com/aom/+archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz |
6db68915 | 19 | Source0: %{name}-%{version}.tar.gz |
341fde9e | 20 | # Source0-md5: 4702f686cc18a6736ca7f1f6d1e025b0 |
5cadd04f | 21 | Patch0: %{name}-examples.patch |
88828506 | 22 | URL: https://aomedia.org/ |
f3ad4e2d | 23 | BuildRequires: cmake >= 3.9 |
5cadd04f | 24 | BuildRequires: doxygen >= 1:1.8.10 |
196f2aa4 AM |
25 | BuildRequires: graphviz |
26 | BuildRequires: libstdc++-devel | |
04780dc0 | 27 | BuildRequires: rpm-build >= 4.6 |
71eae072 | 28 | BuildRequires: rpmbuild(macros) >= 2.007 |
88828506 JB |
29 | BuildRequires: sed >= 4.0 |
30 | %{?with_wxwidgets:BuildRequires: wxGTK3-unicode-devel} | |
196f2aa4 | 31 | BuildRequires: yasm |
88828506 | 32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
196f2aa4 AM |
33 | |
34 | %description | |
35 | The Alliance for Open Media's focus is to deliver a next-generation | |
36 | video format that is: | |
88828506 JB |
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 | |
41 | hardware; | |
42 | - Capable of consistent, highest-quality, real-time video delivery; | |
43 | and | |
44 | - Flexible for both commercial and non-commercial content, including | |
45 | user-generated content. | |
46 | ||
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 | |
56 | rzeczywistym | |
57 | - elastyczny zarówno dla treści komercyjnych, jak i niekomercyjnych, w | |
58 | tym wygenerowanych przez użytkownika. | |
196f2aa4 AM |
59 | |
60 | %package devel | |
88828506 JB |
61 | Summary: Development files for AOM |
62 | Summary(pl.UTF-8): Pliki programistyczne AOM | |
196f2aa4 AM |
63 | Group: Development/Libraries |
64 | Requires: %{name} = %{version}-%{release} | |
65 | ||
66 | %description devel | |
88828506 | 67 | Development files for AOM the royalty-free next-generation video |
196f2aa4 AM |
68 | format. |
69 | ||
88828506 JB |
70 | %description devel -l pl.UTF-8 |
71 | Pliki programistyczne AOM - formatu obrazu nowej generacji, bez opłat | |
72 | licencyjnych. | |
73 | ||
203056d2 JB |
74 | %package static |
75 | Summary: Static AOM library | |
76 | Summary(pl.UTF-8): Statyczna biblioteka AOM | |
77 | Group: Development/Libraries | |
78 | Requires: %{name}-devel = %{version}-%{release} | |
79 | ||
80 | %description static | |
81 | Static AOM library. | |
82 | ||
83 | %description static -l pl.UTF-8 | |
84 | Statyczna biblioteka AOM. | |
85 | ||
86 | %package apidocs | |
87 | Summary: API documentation for AOM library | |
88 | Summary(pl.UTF-8): Dokumentacja API biblioteki AOM | |
89 | Group: Documentation | |
4b62a0b9 | 90 | BuildArch: noarch |
203056d2 JB |
91 | |
92 | %description apidocs | |
93 | API documentation for AOM library. | |
94 | ||
95 | %description apidocs -l pl.UTF-8 | |
96 | Dokumentacja API biblioteki AOM. | |
97 | ||
88828506 JB |
98 | %package gui |
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} | |
103 | ||
104 | %description gui | |
105 | Graphical analyzer for AOM. | |
106 | ||
107 | %description gui -l pl.UTF-8 | |
108 | Graficzny analizator formatu AOM. | |
109 | ||
196f2aa4 AM |
110 | %prep |
111 | %setup -qc | |
5cadd04f | 112 | %patch0 -p1 |
827c9cca | 113 | |
196f2aa4 | 114 | %build |
88828506 JB |
115 | install -d builddir |
116 | cd builddir | |
203056d2 | 117 | # build/cmake/aom_install.cmake and .pc creation expect relative ..._{BINDIR,INCLUDEDIR,LIBDIR} |
88828506 | 118 | %cmake .. \ |
203056d2 JB |
119 | -DCMAKE_INSTALL_BINDIR:PATH=bin \ |
120 | -DCMAKE_INSTALL_INCLUDEDIR:PATH=include \ | |
121 | -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \ | |
88828506 JB |
122 | %ifnarch aarch64 %{arm} %{ix86} %{x8664} |
123 | -DAOM_TARGET_CPU=generic \ | |
196f2aa4 AM |
124 | %endif |
125 | %ifarch %{arm} | |
88828506 | 126 | -DAOM_TARGET_CPU=arm \ |
196f2aa4 AM |
127 | %endif |
128 | %ifarch aarch64 | |
88828506 | 129 | -DAOM_TARGET_CPU=arm64 \ |
196f2aa4 AM |
130 | %endif |
131 | %ifarch %{ix86} | |
88828506 | 132 | -DAOM_TARGET_CPU=x86 \ |
196f2aa4 | 133 | %endif |
88828506 JB |
134 | %ifarch %{x8664} |
135 | -DAOM_TARGET_CPU=x86_64 \ | |
196f2aa4 | 136 | %endif |
88828506 JB |
137 | -DCMAKE_SKIP_RPATH=1 \ |
138 | %{?with_wxwidgets:-DCONFIG_ANALYZER=1} \ | |
139 | -DCONFIG_WEBM_IO=1 \ | |
88828506 | 140 | -DENABLE_DOCS=1 \ |
71eae072 | 141 | %{cmake_on_off neon ENABLE_NEON} \ |
88828506 | 142 | -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-gtk3-unicode-config |
196f2aa4 AM |
143 | |
144 | %{__make} | |
145 | ||
146 | ||
147 | %install | |
148 | rm -rf $RPM_BUILD_ROOT | |
149 | ||
88828506 | 150 | %{__make} -C builddir install \ |
196f2aa4 AM |
151 | DESTDIR=$RPM_BUILD_ROOT |
152 | ||
203056d2 | 153 | %{?with_wxwidgets:install -p builddir/examples/analyzer $RPM_BUILD_ROOT%{_bindir}/aomanalyzer} |
196f2aa4 AM |
154 | |
155 | %clean | |
156 | rm -rf $RPM_BUILD_ROOT | |
157 | ||
158 | %post -p /sbin/ldconfig | |
159 | %postun -p /sbin/ldconfig | |
160 | ||
161 | %files | |
162 | %defattr(644,root,root,755) | |
88828506 | 163 | %doc AUTHORS CHANGELOG LICENSE PATENTS README.md |
196f2aa4 AM |
164 | %attr(755,root,root) %{_bindir}/aomdec |
165 | %attr(755,root,root) %{_bindir}/aomenc | |
203056d2 | 166 | %attr(755,root,root) %{_libdir}/libaom.so.*.*.* |
5cadd04f | 167 | %attr(755,root,root) %ghost %{_libdir}/libaom.so.3 |
196f2aa4 AM |
168 | |
169 | %files devel | |
170 | %defattr(644,root,root,755) | |
196f2aa4 | 171 | %attr(755,root,root) %{_libdir}/libaom.so |
88828506 JB |
172 | %{_includedir}/aom |
173 | %{_pkgconfigdir}/aom.pc | |
174 | ||
203056d2 JB |
175 | %files static |
176 | %defattr(644,root,root,755) | |
177 | %{_libdir}/libaom.a | |
178 | ||
179 | %files apidocs | |
180 | %defattr(644,root,root,755) | |
5cadd04f | 181 | %doc builddir/docs/html/*.{css,html,js,png} |
203056d2 | 182 | |
88828506 JB |
183 | %if %{with wxwidgets} |
184 | %files gui | |
185 | %defattr(644,root,root,755) | |
186 | %attr(755,root,root) %{_bindir}/aomanalyzer | |
187 | %endif |