]>
Commit | Line | Data |
---|---|---|
88828506 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without wxwidgets # wxWidgets based analyzer | |
196f2aa4 AM |
4 | |
5 | Summary: Royalty-free next-generation video format | |
88828506 | 6 | Summary(pl.UTF-8): Format wideo nowej generacji bez opłat licencyjnych |
196f2aa4 | 7 | Name: aom |
7f57dbde | 8 | Version: 2.0.1 |
203056d2 | 9 | Release: 1 |
196f2aa4 AM |
10 | License: BSD |
11 | Group: Libraries | |
9f00df26 | 12 | #Source0Download: https://aomedia.googlesource.com/aom/ |
6db68915 | 13 | # tarball is recreated with different md5 on each download |
203056d2 | 14 | #Source0: https://aomedia.googlesource.com/aom/+archive/v%{version}.tar.gz?fake=/%{name}-%{version}.tar.gz |
6db68915 | 15 | Source0: %{name}-%{version}.tar.gz |
7f57dbde | 16 | # Source0-md5: 65026b04d1e02d8b163e863cc2555416 |
88828506 JB |
17 | URL: https://aomedia.org/ |
18 | BuildRequires: cmake >= 3.5 | |
196f2aa4 AM |
19 | BuildRequires: doxygen |
20 | BuildRequires: graphviz | |
21 | BuildRequires: libstdc++-devel | |
7f57dbde | 22 | BuildRequires: rpmbuild(macros) >= 1.752 |
88828506 JB |
23 | BuildRequires: sed >= 4.0 |
24 | %{?with_wxwidgets:BuildRequires: wxGTK3-unicode-devel} | |
196f2aa4 | 25 | BuildRequires: yasm |
88828506 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
196f2aa4 AM |
27 | |
28 | %description | |
29 | The Alliance for Open Media's focus is to deliver a next-generation | |
30 | video format that is: | |
88828506 JB |
31 | - Interoperable and open; |
32 | - Optimized for the Internet; | |
33 | - Scalable to any modern device at any bandwidth; | |
34 | - Designed with a low computational footprint and optimized for | |
35 | hardware; | |
36 | - Capable of consistent, highest-quality, real-time video delivery; | |
37 | and | |
38 | - Flexible for both commercial and non-commercial content, including | |
39 | user-generated content. | |
40 | ||
41 | %description -l pl.UTF-8 | |
42 | Celem Alliance for Open Media jest dostarczenie nowej generacji | |
43 | formatu wideo, który jest: | |
44 | - interoperacyjny i otwarty | |
45 | - zoptymalizowany dla Internetu | |
46 | - skalowalny na dowolne współczesne urządzenie przy dowolnym paśmie | |
47 | - zaprojektowany z myślą o małym narzucie obliczeniowym, | |
48 | zoptymalizowany dla sprzętu | |
49 | - umożliwiający spójne udostępnianie wysokiej jakości obrazu w czasie | |
50 | rzeczywistym | |
51 | - elastyczny zarówno dla treści komercyjnych, jak i niekomercyjnych, w | |
52 | tym wygenerowanych przez użytkownika. | |
196f2aa4 AM |
53 | |
54 | %package devel | |
88828506 JB |
55 | Summary: Development files for AOM |
56 | Summary(pl.UTF-8): Pliki programistyczne AOM | |
196f2aa4 AM |
57 | Group: Development/Libraries |
58 | Requires: %{name} = %{version}-%{release} | |
59 | ||
60 | %description devel | |
88828506 | 61 | Development files for AOM the royalty-free next-generation video |
196f2aa4 AM |
62 | format. |
63 | ||
88828506 JB |
64 | %description devel -l pl.UTF-8 |
65 | Pliki programistyczne AOM - formatu obrazu nowej generacji, bez opłat | |
66 | licencyjnych. | |
67 | ||
203056d2 JB |
68 | %package static |
69 | Summary: Static AOM library | |
70 | Summary(pl.UTF-8): Statyczna biblioteka AOM | |
71 | Group: Development/Libraries | |
72 | Requires: %{name}-devel = %{version}-%{release} | |
73 | ||
74 | %description static | |
75 | Static AOM library. | |
76 | ||
77 | %description static -l pl.UTF-8 | |
78 | Statyczna biblioteka AOM. | |
79 | ||
80 | %package apidocs | |
81 | Summary: API documentation for AOM library | |
82 | Summary(pl.UTF-8): Dokumentacja API biblioteki AOM | |
83 | Group: Documentation | |
4b62a0b9 | 84 | BuildArch: noarch |
203056d2 JB |
85 | |
86 | %description apidocs | |
87 | API documentation for AOM library. | |
88 | ||
89 | %description apidocs -l pl.UTF-8 | |
90 | Dokumentacja API biblioteki AOM. | |
91 | ||
88828506 JB |
92 | %package gui |
93 | Summary: Graphical analyzer for AOM | |
94 | Summary(pl.UTF-8): Graficzny analizator formatu AOM | |
95 | Group: X11/Applications/Multimedia | |
96 | Requires: %{name} = %{version}-%{release} | |
97 | ||
98 | %description gui | |
99 | Graphical analyzer for AOM. | |
100 | ||
101 | %description gui -l pl.UTF-8 | |
102 | Graficzny analizator formatu AOM. | |
103 | ||
196f2aa4 AM |
104 | %prep |
105 | %setup -qc | |
827c9cca | 106 | |
196f2aa4 | 107 | %build |
88828506 JB |
108 | install -d builddir |
109 | cd builddir | |
203056d2 | 110 | # build/cmake/aom_install.cmake and .pc creation expect relative ..._{BINDIR,INCLUDEDIR,LIBDIR} |
88828506 | 111 | %cmake .. \ |
203056d2 JB |
112 | -DCMAKE_INSTALL_BINDIR:PATH=bin \ |
113 | -DCMAKE_INSTALL_INCLUDEDIR:PATH=include \ | |
114 | -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \ | |
88828506 JB |
115 | %ifnarch aarch64 %{arm} %{ix86} %{x8664} |
116 | -DAOM_TARGET_CPU=generic \ | |
196f2aa4 AM |
117 | %endif |
118 | %ifarch %{arm} | |
88828506 | 119 | -DAOM_TARGET_CPU=arm \ |
196f2aa4 AM |
120 | %endif |
121 | %ifarch aarch64 | |
88828506 | 122 | -DAOM_TARGET_CPU=arm64 \ |
196f2aa4 AM |
123 | %endif |
124 | %ifarch %{ix86} | |
88828506 | 125 | -DAOM_TARGET_CPU=x86 \ |
196f2aa4 | 126 | %endif |
88828506 JB |
127 | %ifarch %{x8664} |
128 | -DAOM_TARGET_CPU=x86_64 \ | |
196f2aa4 | 129 | %endif |
88828506 JB |
130 | -DCMAKE_SKIP_RPATH=1 \ |
131 | %{?with_wxwidgets:-DCONFIG_ANALYZER=1} \ | |
132 | -DCONFIG_WEBM_IO=1 \ | |
133 | -DENABLE_CCACHE=1 \ | |
134 | -DENABLE_DOCS=1 \ | |
135 | -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-gtk3-unicode-config | |
196f2aa4 AM |
136 | |
137 | %{__make} | |
138 | ||
139 | ||
140 | %install | |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
88828506 | 143 | %{__make} -C builddir install \ |
196f2aa4 AM |
144 | DESTDIR=$RPM_BUILD_ROOT |
145 | ||
203056d2 | 146 | %{?with_wxwidgets:install -p builddir/examples/analyzer $RPM_BUILD_ROOT%{_bindir}/aomanalyzer} |
196f2aa4 AM |
147 | |
148 | %clean | |
149 | rm -rf $RPM_BUILD_ROOT | |
150 | ||
151 | %post -p /sbin/ldconfig | |
152 | %postun -p /sbin/ldconfig | |
153 | ||
154 | %files | |
155 | %defattr(644,root,root,755) | |
88828506 | 156 | %doc AUTHORS CHANGELOG LICENSE PATENTS README.md |
196f2aa4 AM |
157 | %attr(755,root,root) %{_bindir}/aomdec |
158 | %attr(755,root,root) %{_bindir}/aomenc | |
203056d2 JB |
159 | %attr(755,root,root) %{_libdir}/libaom.so.*.*.* |
160 | %attr(755,root,root) %ghost %{_libdir}/libaom.so.2 | |
196f2aa4 AM |
161 | |
162 | %files devel | |
163 | %defattr(644,root,root,755) | |
196f2aa4 | 164 | %attr(755,root,root) %{_libdir}/libaom.so |
88828506 JB |
165 | %{_includedir}/aom |
166 | %{_pkgconfigdir}/aom.pc | |
167 | ||
203056d2 JB |
168 | %files static |
169 | %defattr(644,root,root,755) | |
170 | %{_libdir}/libaom.a | |
171 | ||
172 | %files apidocs | |
173 | %defattr(644,root,root,755) | |
174 | %doc builddir/docs/html/* | |
175 | ||
88828506 JB |
176 | %if %{with wxwidgets} |
177 | %files gui | |
178 | %defattr(644,root,root,755) | |
179 | %attr(755,root,root) %{_bindir}/aomanalyzer | |
180 | %endif |