]>
Commit | Line | Data |
---|---|---|
1 | # TODO: suid/capabilities for ptp-helper? | |
2 | # | |
3 | # Conditional build: | |
4 | %bcond_without apidocs # hotdoc based API documentation | |
5 | ||
6 | %define gstmver 1.0 | |
7 | ||
8 | Summary: GStreamer Streaming-media framework runtime | |
9 | Summary(pl.UTF-8): GStreamer - biblioteki środowiska do obróbki strumieni | |
10 | Name: gstreamer | |
11 | Version: 1.20.1 | |
12 | Release: 1 | |
13 | License: LGPL v2+ | |
14 | Group: Libraries | |
15 | Source0: https://gstreamer.freedesktop.org/src/gstreamer/%{name}-%{version}.tar.xz | |
16 | # Source0-md5: 0684f545cddd1f3141fbeec73935447b | |
17 | Patch0: %{name}-inspect-rpm-format.patch | |
18 | URL: https://gstreamer.freedesktop.org/ | |
19 | BuildRequires: bash-completion-devel >= 2.0 | |
20 | BuildRequires: bison >= 1.875 | |
21 | BuildRequires: docbook-dtd412-xml | |
22 | BuildRequires: elfutils-devel | |
23 | BuildRequires: flex >= 2.5.31 | |
24 | BuildRequires: gettext-tools >= 0.17 | |
25 | BuildRequires: glib2-devel >= 1:2.56.0 | |
26 | %if %(locale -a | grep -q '^C\.UTF-8$'; echo $?) | |
27 | BuildRequires: glibc-localedb-all | |
28 | %endif | |
29 | BuildRequires: glibc-misc | |
30 | BuildRequires: gobject-introspection-devel >= 1.31.1 | |
31 | %{?with_apidocs:BuildRequires: hotdoc >= 0.11.0} | |
32 | BuildRequires: libcap-devel | |
33 | %ifarch %{ix86} %{x8664} x32 %{arm} hppa ia64 mips ppc ppc64 sh | |
34 | BuildRequires: libunwind-devel | |
35 | %endif | |
36 | BuildRequires: meson >= 0.59 | |
37 | BuildRequires: ninja >= 1.5 | |
38 | BuildRequires: perl-base | |
39 | BuildRequires: pkgconfig >= 1:0.9.0 | |
40 | BuildRequires: python3 >= 1:3.2 | |
41 | BuildRequires: rpm-build >= 4.6 | |
42 | BuildRequires: rpmbuild(macros) >= 1.736 | |
43 | BuildRequires: sed >= 4.0 | |
44 | BuildRequires: tar >= 1:1.22 | |
45 | BuildRequires: xz | |
46 | Requires: glib2 >= 1:2.56.0 | |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
48 | ||
49 | %define gstlibdir %{_libdir}/gstreamer-%{gstmver} | |
50 | %define gstlibexecdir %{_libexecdir}/gstreamer-%{gstmver} | |
51 | %define gstincludedir %{_includedir}/gstreamer-%{gstmver} | |
52 | ||
53 | %description | |
54 | GStreamer is a streaming-media framework, based on graphs of filters | |
55 | which operate on media data. Applications using this library can do | |
56 | anything from real-time sound processing to playing videos, and just | |
57 | about anything else media-related. Its plugin-based architecture means | |
58 | that new data types or processing capabilities can be added simply by | |
59 | installing new plugins. | |
60 | ||
61 | %description -l pl.UTF-8 | |
62 | GStreamer to środowisko obróbki danych strumieniowych, bazujące na | |
63 | grafie filtrów operujących na danych medialnych. Aplikacje używające | |
64 | tej biblioteki mogą robić wszystko od przetwarzania dźwięku w czasie | |
65 | rzeczywistym, do odtwarzania filmów i czegokolwiek innego związanego z | |
66 | mediami. Architektura bazująca na wtyczkach pozwala na łatwe dodawanie | |
67 | nowych typów danych lub możliwości obróbki. | |
68 | ||
69 | %package devel | |
70 | Summary: Include files for GStreamer streaming-media framework | |
71 | Summary(pl.UTF-8): Pliki nagłówkowe do środowiska obróbki strumieni GStreamer | |
72 | Group: Development/Libraries | |
73 | Requires: %{name} = %{version}-%{release} | |
74 | Requires: glib2-devel >= 1:2.56.0 | |
75 | Obsoletes: gstreamer-plugins-bad-devel < 0.10.10 | |
76 | Conflicts: gstreamer-plugins-bad-devel < 1.14 | |
77 | ||
78 | %description devel | |
79 | This package contains the includes files necessary to develop | |
80 | applications and plugins for GStreamer. | |
81 | ||
82 | %description devel -l pl.UTF-8 | |
83 | Ten pakiet zawiera pliki nagłówkowe potrzebne do rozwijania aplikacji | |
84 | i wtyczek do GStreamera. | |
85 | ||
86 | %package static | |
87 | Summary: GStreamer static libraries | |
88 | Summary(pl.UTF-8): Biblioteki statyczne GStreamer | |
89 | Group: Development/Libraries | |
90 | Requires: %{name}-devel = %{version}-%{release} | |
91 | ||
92 | %description static | |
93 | Static versions of GStreamer libraries. | |
94 | ||
95 | %description static -l pl.UTF-8 | |
96 | Statyczne wersje bibliotek GStreamer. | |
97 | ||
98 | %package apidocs | |
99 | Summary: GStreamer API documentation | |
100 | Summary(pl.UTF-8): Dokumentacja API GStreamera | |
101 | Group: Documentation | |
102 | BuildArch: noarch | |
103 | ||
104 | %description apidocs | |
105 | GStreamer API documentation. | |
106 | ||
107 | %description apidocs -l pl.UTF-8 | |
108 | Dokumentacja API GStreamera. | |
109 | ||
110 | %package gdb | |
111 | Summary: GStreamer pretty printers for GDB | |
112 | Summary(pl.UTF-8): Funkcje wypisujące dane GStreamer dla GDB | |
113 | Group: Development/Debuggers | |
114 | ||
115 | %description gdb | |
116 | This package contains Python scripts for GDB pretty printing of the | |
117 | GStreamer types. | |
118 | ||
119 | %description gdb -l pl.UTF-8 | |
120 | Ten pakiet zawiera skrypty Pythona dla GDB służące do ładnego | |
121 | wypisywania typów GStreamer. | |
122 | ||
123 | %package -n bash-completion-gstreamer | |
124 | Summary: Bash completion for GStreamer utilities | |
125 | Summary(pl.UTF-8): Bashowe uzupełnianie parametrów narzędzi GStreamera | |
126 | Group: Applications/Shells | |
127 | Requires: %{name} = %{version}-%{release} | |
128 | Requires: bash-completion >= 2.0 | |
129 | ||
130 | %description -n bash-completion-gstreamer | |
131 | Bash completion for GStreamer utilities: gst-inspect and gst-launch. | |
132 | ||
133 | %description -n bash-completion-gstreamer -l pl.UTF-8 | |
134 | Bashowe uzupełnianie parametrów narzędzi GStreamera: gst-inspect oraz | |
135 | gst-launch. | |
136 | ||
137 | %prep | |
138 | %setup -q | |
139 | %patch0 -p1 | |
140 | ||
141 | %{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' docs/gst-plugins-doc-cache-generator.py | |
142 | ||
143 | %build | |
144 | %meson build \ | |
145 | %{?with_apidocs:-Ddoc=enabled} \ | |
146 | -D tests=disabled \ | |
147 | -D examples=disabled | |
148 | ||
149 | %ninja_build -C build | |
150 | ||
151 | %if %{with apidocs} | |
152 | cd build/docs | |
153 | for component in base check controller coreelements coretracers gstreamer net ; do | |
154 | LC_ALL=C.UTF-8 hotdoc run --conf-file ${component}-doc.json | |
155 | done | |
156 | %endif | |
157 | ||
158 | %install | |
159 | rm -rf $RPM_BUILD_ROOT | |
160 | ||
161 | %ninja_install -C build | |
162 | ||
163 | %find_lang %{name} --all-name --with-gnome | |
164 | ||
165 | %py3_comp $RPM_BUILD_ROOT%{_datadir}/gstreamer-1.0/gdb | |
166 | %py3_ocomp $RPM_BUILD_ROOT%{_datadir}/gstreamer-1.0/gdb | |
167 | ||
168 | # no static modules - shut up check files | |
169 | %{__rm} $RPM_BUILD_ROOT%{gstlibdir}/lib*.a | |
170 | ||
171 | %if %{with apidocs} | |
172 | install -d $RPM_BUILD_ROOT%{_docdir}/gstreamer-%{gstmver} | |
173 | cp -pr build/docs/{base,check,controller,coreelements,coretracers,gstreamer,net}-doc $RPM_BUILD_ROOT%{_docdir}/gstreamer-%{gstmver} | |
174 | %endif | |
175 | ||
176 | %clean | |
177 | rm -rf $RPM_BUILD_ROOT | |
178 | ||
179 | %post -p /sbin/ldconfig | |
180 | %postun -p /sbin/ldconfig | |
181 | ||
182 | %files -f %{name}.lang | |
183 | %defattr(644,root,root,755) | |
184 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README.md RELEASE | |
185 | %attr(755,root,root) %{_bindir}/gst-inspect-1.0 | |
186 | %attr(755,root,root) %{_bindir}/gst-launch-1.0 | |
187 | %attr(755,root,root) %{_bindir}/gst-stats-1.0 | |
188 | %attr(755,root,root) %{_bindir}/gst-typefind-1.0 | |
189 | %attr(755,root,root) %{_libdir}/libgstbase-%{gstmver}.so.*.*.* | |
190 | %attr(755,root,root) %ghost %{_libdir}/libgstbase-%{gstmver}.so.0 | |
191 | %attr(755,root,root) %{_libdir}/libgstcheck-%{gstmver}.so.*.*.* | |
192 | %attr(755,root,root) %ghost %{_libdir}/libgstcheck-%{gstmver}.so.0 | |
193 | %attr(755,root,root) %{_libdir}/libgstcontroller-%{gstmver}.so.*.*.* | |
194 | %attr(755,root,root) %ghost %{_libdir}/libgstcontroller-%{gstmver}.so.0 | |
195 | %attr(755,root,root) %{_libdir}/libgstnet-%{gstmver}.so.*.*.* | |
196 | %attr(755,root,root) %ghost %{_libdir}/libgstnet-%{gstmver}.so.0 | |
197 | %attr(755,root,root) %{_libdir}/libgstreamer-%{gstmver}.so.*.*.* | |
198 | %attr(755,root,root) %ghost %{_libdir}/libgstreamer-%{gstmver}.so.0 | |
199 | %if "%{_libexecdir}" != "%{_libdir}" | |
200 | %dir %{gstlibexecdir} | |
201 | %endif | |
202 | %attr(755,root,root) %{gstlibexecdir}/gst-plugin-scanner | |
203 | %attr(755,root,root) %{gstlibexecdir}/gst-ptp-helper | |
204 | %dir %{gstlibdir} | |
205 | %attr(755,root,root) %{gstlibdir}/libgstcoreelements.so | |
206 | %attr(755,root,root) %{gstlibdir}/libgstcoretracers.so | |
207 | # common for some plugins | |
208 | %dir %{_datadir}/gstreamer-1.0 | |
209 | %{_mandir}/man1/gst-inspect-1.0.1* | |
210 | %{_mandir}/man1/gst-launch-1.0.1* | |
211 | %{_mandir}/man1/gst-stats-1.0.1* | |
212 | %{_mandir}/man1/gst-typefind-1.0.1* | |
213 | %{_libdir}/girepository-1.0/Gst-%{gstmver}.typelib | |
214 | %{_libdir}/girepository-1.0/GstBase-%{gstmver}.typelib | |
215 | %{_libdir}/girepository-1.0/GstCheck-%{gstmver}.typelib | |
216 | %{_libdir}/girepository-1.0/GstController-%{gstmver}.typelib | |
217 | %{_libdir}/girepository-1.0/GstNet-%{gstmver}.typelib | |
218 | ||
219 | %files devel | |
220 | %defattr(644,root,root,755) | |
221 | %if %{with apidocs} | |
222 | %attr(755,root,root) %{gstlibexecdir}/gst-hotdoc-plugins-scanner | |
223 | %attr(755,root,root) %{gstlibexecdir}/gst-plugins-doc-cache-generator | |
224 | %endif | |
225 | %attr(755,root,root) %{_libdir}/libgstbase-%{gstmver}.so | |
226 | %attr(755,root,root) %{_libdir}/libgstcheck-%{gstmver}.so | |
227 | %attr(755,root,root) %{_libdir}/libgstcontroller-%{gstmver}.so | |
228 | %attr(755,root,root) %{_libdir}/libgstnet-%{gstmver}.so | |
229 | %attr(755,root,root) %{_libdir}/libgstreamer-%{gstmver}.so | |
230 | %dir %{gstlibdir}/pkgconfig | |
231 | %{gstlibdir}/pkgconfig/gstcoreelements.pc | |
232 | %{gstlibdir}/pkgconfig/gstcoretracers.pc | |
233 | %dir %{gstincludedir} | |
234 | %{gstincludedir}/gst | |
235 | %{_pkgconfigdir}/gstreamer-%{gstmver}.pc | |
236 | %{_pkgconfigdir}/gstreamer-base-%{gstmver}.pc | |
237 | %{_pkgconfigdir}/gstreamer-check-%{gstmver}.pc | |
238 | %{_pkgconfigdir}/gstreamer-controller-%{gstmver}.pc | |
239 | %{_pkgconfigdir}/gstreamer-net-%{gstmver}.pc | |
240 | %{_aclocaldir}/gst-element-check-%{gstmver}.m4 | |
241 | %{_datadir}/gir-1.0/Gst-%{gstmver}.gir | |
242 | %{_datadir}/gir-1.0/GstBase-%{gstmver}.gir | |
243 | %{_datadir}/gir-1.0/GstCheck-%{gstmver}.gir | |
244 | %{_datadir}/gir-1.0/GstController-%{gstmver}.gir | |
245 | %{_datadir}/gir-1.0/GstNet-%{gstmver}.gir | |
246 | ||
247 | %files static | |
248 | %defattr(644,root,root,755) | |
249 | %{_libdir}/libgstbase-%{gstmver}.a | |
250 | %{_libdir}/libgstcheck-%{gstmver}.a | |
251 | %{_libdir}/libgstcontroller-%{gstmver}.a | |
252 | %{_libdir}/libgstnet-%{gstmver}.a | |
253 | %{_libdir}/libgstreamer-%{gstmver}.a | |
254 | ||
255 | %if %{with apidocs} | |
256 | %files apidocs | |
257 | %defattr(644,root,root,755) | |
258 | %dir %{_docdir}/gstreamer-%{gstmver} | |
259 | %{_docdir}/gstreamer-%{gstmver}/base-doc | |
260 | %{_docdir}/gstreamer-%{gstmver}/check-doc | |
261 | %{_docdir}/gstreamer-%{gstmver}/controller-doc | |
262 | %{_docdir}/gstreamer-%{gstmver}/coreelements-doc | |
263 | %{_docdir}/gstreamer-%{gstmver}/coretracers-doc | |
264 | %{_docdir}/gstreamer-%{gstmver}/gstreamer-doc | |
265 | %{_docdir}/gstreamer-%{gstmver}/net-doc | |
266 | %endif | |
267 | ||
268 | %files gdb | |
269 | %defattr(644,root,root,755) | |
270 | %{_datadir}/gdb/auto-load%{_libdir}/libgstreamer-%{gstmver}.so.*.*.*-gdb.py | |
271 | %{_datadir}/gstreamer-1.0/gdb | |
272 | ||
273 | %files -n bash-completion-gstreamer | |
274 | %defattr(644,root,root,755) | |
275 | %{bash_compdir}/gst-inspect-1.0 | |
276 | %{bash_compdir}/gst-launch-1.0 | |
277 | %attr(755,root,root) %{gstlibexecdir}/gst-completion-helper | |
278 | %attr(755,root,root) %{_datadir}/bash-completion/helpers/gst |