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