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