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