]> git.pld-linux.org Git - packages/gstreamer.git/blame - gstreamer.spec
- trying to unify macro names
[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
205d484a
BS
7Version: 1.16.0
8Release: 1
3e490ffb 9License: LGPL v2+
aa3775f0 10Group: Libraries
b6b50e80 11Source0: https://gstreamer.freedesktop.org/src/gstreamer/%{name}-%{version}.tar.xz
205d484a 12# Source0-md5: 862b7e4263d946bc2ef31b3c582e5587
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
6fcf6a9b 28BuildRequires: gtk-doc >= 1.12
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
5d1e72f6 37BuildRequires: tar >= 1:1.22
5d1e72f6 38BuildRequires: xz
3dcbbc36 39Requires: glib2 >= 1:2.40.0
bc1f103d 40BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
4988018f 41
500c9cf5
JB
42%define gstlibdir %{_libdir}/gstreamer-%{gstmver}
43%define gstlibexecdir %{_libexecdir}/gstreamer-%{gstmver}
44%define gstincludedir %{_includedir}/gstreamer-%{gstmver}
c6416cbe 45
8fe6c68e 46%description
aa3775f0
MP
47GStreamer is a streaming-media framework, based on graphs of filters
48which operate on media data. Applications using this library can do
49anything from real-time sound processing to playing videos, and just
50about anything else media-related. Its plugin-based architecture means
51that new data types or processing capabilities can be added simply by
52installing new plugins.
8fe6c68e 53
212bb255
JR
54%description -l pl.UTF-8
55GStreamer to środowisko obróbki danych strumieniowych, bazujące na
56grafie filtrów operujących na danych medialnych. Aplikacje używające
57tej biblioteki mogą robić wszystko od przetwarzania dźwięku w czasie
58rzeczywistym, do odtwarzania filmów i czegokolwiek innego związanego z
59mediami. Architektura bazująca na wtyczkach pozwala na łatwe dodawanie
60nowych typów danych lub możliwości obróbki.
ef826307 61
8fe6c68e 62%package devel
ef826307 63Summary: Include files for GStreamer streaming-media framework
69ce472f 64Summary(pl.UTF-8): Pliki nagłówkowe do środowiska obróbki strumieni GStreamer
aa3775f0 65Group: Development/Libraries
9e6e4167 66Requires: %{name} = %{version}-%{release}
3dcbbc36 67Requires: glib2-devel >= 1:2.40.0
06b33981 68Obsoletes: gstreamer-plugins-bad-devel < 0.10.10
5d0defac 69Conflicts: gstreamer-plugins-bad-devel < 1.14
8fe6c68e 70
71%description devel
ef826307
JB
72This package contains the includes files necessary to develop
73applications and plugins for GStreamer.
74
212bb255
JR
75%description devel -l pl.UTF-8
76Ten pakiet zawiera pliki nagłówkowe potrzebne do rozwijania aplikacji
ef826307
JB
77i wtyczek do GStreamera.
78
79%package static
80Summary: GStreamer static libraries
69ce472f 81Summary(pl.UTF-8): Biblioteki statyczne GStreamer
ef826307 82Group: Development/Libraries
9e6e4167 83Requires: %{name}-devel = %{version}-%{release}
8fe6c68e 84
ef826307
JB
85%description static
86Static versions of GStreamer libraries.
87
212bb255 88%description static -l pl.UTF-8
ef826307 89Statyczne wersje bibliotek GStreamer.
8fe6c68e 90
078e7ce4 91%package apidocs
92Summary: GStreamer API documentation
69ce472f 93Summary(pl.UTF-8): Dokumentacja API Gstreamera
078e7ce4 94Group: Documentation
95Requires: gtk-doc-common
e1d0ecfc
ER
96%if "%{_rpmversion}" >= "5"
97BuildArch: noarch
98%endif
078e7ce4 99
100%description apidocs
101GStreamer API documentation.
102
212bb255 103%description apidocs -l pl.UTF-8
078e7ce4 104Dokumentacja API Gstreamera.
105
205d484a
BS
106%package gdb
107Summary: GStreamer pretty printers for GDB
108Summary(pl.UTF-8): Funkcje wypisujące dane GStreamer dla GDB
109Group: Development/Debuggers
110
111%description gdb
112This package contains Python scripts for GDB pretty printing of the
113GStreamer types.
114
115%description gdb -l pl.UTF-8
116Ten pakiet zawiera skrypty Pythona dla GDB służące do ładnego
117wypisywania typów GStreamer.
118
b68c95f7
JB
119%package -n bash-completion-gstreamer
120Summary: Bash completion for GStreamer utilities
121Summary(pl.UTF-8): Bashowe uzupełnianie parametrów narzędzi GStreamera
122Group: Applications/Shells
123Requires: %{name} = %{version}-%{release}
124Requires: bash-completion >= 2.0
125
126%description -n bash-completion-gstreamer
127Bash completion for GStreamer utilities: gst-inspect and gst-launch.
128
129%description -n bash-completion-gstreamer
130Bashowe uzupełnianie parametrów narzędzi GStreamera: gst-inspect oraz
131gst-launch.
132
8fe6c68e 133%prep
be480bee 134%setup -q
f61ac254 135%patch0 -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
205d484a
BS
252%{_datadir}/gstreamer-1.0/gdb
253
b68c95f7
JB
254%files -n bash-completion-gstreamer
255%defattr(644,root,root,755)
3dcbbc36
ŁK
256%{bash_compdir}/gst-inspect-1.0
257%{bash_compdir}/gst-launch-1.0
970997fa 258%attr(755,root,root) %{gstlibexecdir}/gst-completion-helper
b68c95f7 259%attr(755,root,root) %{_datadir}/bash-completion/helpers/gst
This page took 0.140592 seconds and 4 git commands to generate.