]> git.pld-linux.org Git - packages/gstreamer.git/blame - gstreamer.spec
- up to 1.19.3
[packages/gstreamer.git] / gstreamer.spec
CommitLineData
b68c95f7 1# TODO: suid/capabilities for ptp-helper?
500c9cf5 2%define gstmver 1.0
e1d0ecfc 3
aa3775f0 4Summary: GStreamer Streaming-media framework runtime
69ce472f 5Summary(pl.UTF-8): GStreamer - biblioteki środowiska do obróbki strumieni
aa3775f0 6Name: gstreamer
dfdf0fe8
JR
7Version: 1.19.3
8Release: 1
3e490ffb 9License: LGPL v2+
aa3775f0 10Group: Libraries
b6b50e80 11Source0: https://gstreamer.freedesktop.org/src/gstreamer/%{name}-%{version}.tar.xz
dfdf0fe8 12# Source0-md5: 5af65dab2d400fbc5a9850b16bb5db05
28c60d38 13Patch0: %{name}-inspect-rpm-format.patch
b6b50e80 14URL: https://gstreamer.freedesktop.org/
b68c95f7
JB
15BuildRequires: autoconf >= 2.69
16BuildRequires: automake >= 1:1.14
4ca32f31 17BuildRequires: bison >= 1.875
d3c26881 18BuildRequires: docbook-dtd412-xml
28c60d38 19BuildRequires: elfutils-devel
4ca32f31 20BuildRequires: flex >= 2.5.31
a3fe4935 21BuildRequires: gettext-tools >= 0.17
3dcbbc36 22BuildRequires: glib2-devel >= 1:2.40.0
07a0af1a
JB
23%if %(locale -a | grep -q '^C\.UTF-8$'; echo $?)
24BuildRequires: glibc-localedb-all
25%endif
d3c26881 26BuildRequires: glibc-misc
c44ba6d0 27BuildRequires: gobject-introspection-devel >= 1.31.1
dfdf0fe8 28BuildRequires: hotdoc
b68c95f7
JB
29BuildRequires: libcap-devel
30BuildRequires: libtool >= 2:2.2.6
f3cd19d1 31%ifarch %{ix86} %{x8664} x32 %{arm} hppa ia64 mips ppc ppc64 sh
28c60d38
JB
32BuildRequires: libunwind-devel
33%endif
9e6e4167 34BuildRequires: perl-base
965ff8c8 35BuildRequires: pkgconfig >= 1:0.9.0
4ca32f31 36BuildRequires: python >= 2.1
dc982622 37BuildRequires: rpm-build >= 4.6
dfdf0fe8 38BuildRequires: rpmbuild(macros) >= 1.726
5d1e72f6 39BuildRequires: tar >= 1:1.22
5d1e72f6 40BuildRequires: xz
3dcbbc36 41Requires: glib2 >= 1:2.40.0
bc1f103d 42BuildRoot: %{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
49GStreamer is a streaming-media framework, based on graphs of filters
50which operate on media data. Applications using this library can do
51anything from real-time sound processing to playing videos, and just
52about anything else media-related. Its plugin-based architecture means
53that new data types or processing capabilities can be added simply by
54installing new plugins.
8fe6c68e 55
212bb255
JR
56%description -l pl.UTF-8
57GStreamer to środowisko obróbki danych strumieniowych, bazujące na
58grafie filtrów operujących na danych medialnych. Aplikacje używające
59tej biblioteki mogą robić wszystko od przetwarzania dźwięku w czasie
60rzeczywistym, do odtwarzania filmów i czegokolwiek innego związanego z
61mediami. Architektura bazująca na wtyczkach pozwala na łatwe dodawanie
62nowych typów danych lub możliwości obróbki.
ef826307 63
8fe6c68e 64%package devel
ef826307 65Summary: Include files for GStreamer streaming-media framework
69ce472f 66Summary(pl.UTF-8): Pliki nagłówkowe do środowiska obróbki strumieni GStreamer
aa3775f0 67Group: Development/Libraries
9e6e4167 68Requires: %{name} = %{version}-%{release}
3dcbbc36 69Requires: glib2-devel >= 1:2.40.0
06b33981 70Obsoletes: gstreamer-plugins-bad-devel < 0.10.10
5d0defac 71Conflicts: gstreamer-plugins-bad-devel < 1.14
8fe6c68e 72
73%description devel
ef826307
JB
74This package contains the includes files necessary to develop
75applications and plugins for GStreamer.
76
212bb255
JR
77%description devel -l pl.UTF-8
78Ten pakiet zawiera pliki nagłówkowe potrzebne do rozwijania aplikacji
ef826307
JB
79i wtyczek do GStreamera.
80
81%package static
82Summary: GStreamer static libraries
69ce472f 83Summary(pl.UTF-8): Biblioteki statyczne GStreamer
ef826307 84Group: Development/Libraries
9e6e4167 85Requires: %{name}-devel = %{version}-%{release}
8fe6c68e 86
ef826307
JB
87%description static
88Static versions of GStreamer libraries.
89
212bb255 90%description static -l pl.UTF-8
ef826307 91Statyczne wersje bibliotek GStreamer.
8fe6c68e 92
205d484a
BS
93%package gdb
94Summary: GStreamer pretty printers for GDB
95Summary(pl.UTF-8): Funkcje wypisujące dane GStreamer dla GDB
96Group: Development/Debuggers
97
98%description gdb
99This package contains Python scripts for GDB pretty printing of the
100GStreamer types.
101
102%description gdb -l pl.UTF-8
103Ten pakiet zawiera skrypty Pythona dla GDB służące do ładnego
104wypisywania typów GStreamer.
105
b68c95f7
JB
106%package -n bash-completion-gstreamer
107Summary: Bash completion for GStreamer utilities
108Summary(pl.UTF-8): Bashowe uzupełnianie parametrów narzędzi GStreamera
109Group: Applications/Shells
110Requires: %{name} = %{version}-%{release}
111Requires: bash-completion >= 2.0
112
113%description -n bash-completion-gstreamer
114Bash completion for GStreamer utilities: gst-inspect and gst-launch.
115
116%description -n bash-completion-gstreamer
117Bashowe uzupełnianie parametrów narzędzi GStreamera: gst-inspect oraz
118gst-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 136rm -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 150rm -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
This page took 0.115253 seconds and 4 git commands to generate.