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