- made _libexecdir aware; release 2
[packages/gstreamer.git] / gstreamer.spec
CommitLineData
b68c95f7 1# TODO: suid/capabilities for ptp-helper?
c44ba6d0 2%define vmajor 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
07a0af1a 7Version: 1.12.4
970997fa 8Release: 2
3e490ffb 9License: LGPL v2+
aa3775f0 10Group: Libraries
b6b50e80 11Source0: https://gstreamer.freedesktop.org/src/gstreamer/%{name}-%{version}.tar.xz
07a0af1a 12# Source0-md5: 9d268f2e891cce1ac0832f1cc467d4ea
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
28c60d38
JB
31%ifarch %{ix86} %{x8664} %{arm} hppa ia64 mips ppc ppc64 sh
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
970997fa
JB
42%define gstlibdir %{_libdir}/gstreamer-%{vmajor}
43%define gstlibexecdir %{_libexecdir}/gstreamer-%{vmajor}
44%define gstincludedir %{_includedir}/gstreamer-%{vmajor}
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
8fe6c68e 69
70%description devel
ef826307
JB
71This package contains the includes files necessary to develop
72applications and plugins for GStreamer.
73
212bb255
JR
74%description devel -l pl.UTF-8
75Ten pakiet zawiera pliki nagłówkowe potrzebne do rozwijania aplikacji
ef826307
JB
76i wtyczek do GStreamera.
77
78%package static
79Summary: GStreamer static libraries
69ce472f 80Summary(pl.UTF-8): Biblioteki statyczne GStreamer
ef826307 81Group: Development/Libraries
9e6e4167 82Requires: %{name}-devel = %{version}-%{release}
8fe6c68e 83
ef826307
JB
84%description static
85Static versions of GStreamer libraries.
86
212bb255 87%description static -l pl.UTF-8
ef826307 88Statyczne wersje bibliotek GStreamer.
8fe6c68e 89
078e7ce4 90%package apidocs
91Summary: GStreamer API documentation
69ce472f 92Summary(pl.UTF-8): Dokumentacja API Gstreamera
078e7ce4 93Group: Documentation
94Requires: gtk-doc-common
e1d0ecfc
ER
95%if "%{_rpmversion}" >= "5"
96BuildArch: noarch
97%endif
078e7ce4 98
99%description apidocs
100GStreamer API documentation.
101
212bb255 102%description apidocs -l pl.UTF-8
078e7ce4 103Dokumentacja API Gstreamera.
104
b68c95f7
JB
105%package -n bash-completion-gstreamer
106Summary: Bash completion for GStreamer utilities
107Summary(pl.UTF-8): Bashowe uzupełnianie parametrów narzędzi GStreamera
108Group: Applications/Shells
109Requires: %{name} = %{version}-%{release}
110Requires: bash-completion >= 2.0
111
112%description -n bash-completion-gstreamer
113Bash completion for GStreamer utilities: gst-inspect and gst-launch.
114
115%description -n bash-completion-gstreamer
116Bashowe uzupełnianie parametrów narzędzi GStreamera: gst-inspect oraz
117gst-launch.
118
8fe6c68e 119%prep
be480bee 120%setup -q
f61ac254 121%patch0 -p1
3e490ffb 122
8fe6c68e 123%build
3e490ffb
JB
124# po/Makefile.in.in is modified
125#{__gettextize}
0914acac 126%{__libtoolize}
41ad949c 127%{__aclocal} -I common/m4 -I m4 -I .
eef0a4ad 128%{__autoconf}
0914acac
MK
129%{__autoheader}
130%{__automake}
836bb034 131%configure \
91240adb 132 --disable-examples \
4ca32f31 133 --disable-silent-rules \
91240adb 134 --disable-tests \
66c5307a 135 --enable-gtk-doc \
c44ba6d0
ŁK
136 --with-html-dir=%{_gtkdocdir} \
137 --enable-static
10947d06 138
07a0af1a 139LC_ALL=C.UTF-8 \
4ca32f31 140%{__make}
8fe6c68e 141
94b8580b 142%install
aa3775f0 143rm -rf $RPM_BUILD_ROOT
8fe6c68e 144
91240adb 145%{__make} install \
7b283813
JB
146 DESTDIR=$RPM_BUILD_ROOT
147
9e6e4167 148%find_lang %{name} --all-name --with-gnome
149
d9da29b9 150# no *.la for modules - shut up check files
970997fa 151%{__rm} $RPM_BUILD_ROOT%{gstlibdir}/lib*.la
e3c412c9
JB
152# obsoleted by pkg-config
153%{__rm} $RPM_BUILD_ROOT%{_libdir}/libgst*.la
70462d81 154
8fe6c68e 155%clean
e3bdbfbd 156rm -rf $RPM_BUILD_ROOT
8fe6c68e 157
078e7ce4 158%post -p /sbin/ldconfig
ef826307 159%postun -p /sbin/ldconfig
94b8580b 160
9e6e4167 161%files -f %{name}.lang
aa3775f0 162%defattr(644,root,root,755)
396d97fd 163%doc AUTHORS ChangeLog MAINTAINERS NEWS README RELEASE
e3c412c9
JB
164%attr(755,root,root) %{_bindir}/gst-inspect-1.0
165%attr(755,root,root) %{_bindir}/gst-launch-1.0
3dcbbc36 166%attr(755,root,root) %{_bindir}/gst-stats-1.0
e3c412c9 167%attr(755,root,root) %{_bindir}/gst-typefind-1.0
c44ba6d0
ŁK
168%attr(755,root,root) %{_libdir}/libgstbase-%{vmajor}.so.*.*.*
169%attr(755,root,root) %ghost %{_libdir}/libgstbase-%{vmajor}.so.0
170%attr(755,root,root) %{_libdir}/libgstcheck-%{vmajor}.so.*.*.*
171%attr(755,root,root) %ghost %{_libdir}/libgstcheck-%{vmajor}.so.0
172%attr(755,root,root) %{_libdir}/libgstcontroller-%{vmajor}.so.*.*.*
173%attr(755,root,root) %ghost %{_libdir}/libgstcontroller-%{vmajor}.so.0
174%attr(755,root,root) %{_libdir}/libgstnet-%{vmajor}.so.*.*.*
175%attr(755,root,root) %ghost %{_libdir}/libgstnet-%{vmajor}.so.0
176%attr(755,root,root) %{_libdir}/libgstreamer-%{vmajor}.so.*.*.*
177%attr(755,root,root) %ghost %{_libdir}/libgstreamer-%{vmajor}.so.0
970997fa
JB
178%if "%{_libexecdir}" != "%{_libdir}"
179%dir %{gstlibexecdir}
180%endif
181%attr(755,root,root) %{gstlibexecdir}/gst-plugin-scanner
182%attr(755,root,root) %{gstlibexecdir}/gst-ptp-helper
183%dir %{gstlibdir}
184%attr(755,root,root) %{gstlibdir}/libgstcoreelements.so
185%attr(755,root,root) %{gstlibdir}/libgstcoretracers.so
e3c412c9
JB
186%{_mandir}/man1/gst-inspect-1.0.1*
187%{_mandir}/man1/gst-launch-1.0.1*
417c9e6b 188%{_mandir}/man1/gst-stats-1.0.1*
e3c412c9 189%{_mandir}/man1/gst-typefind-1.0.1*
c44ba6d0
ŁK
190%{_libdir}/girepository-1.0/Gst-%{vmajor}.typelib
191%{_libdir}/girepository-1.0/GstBase-%{vmajor}.typelib
192%{_libdir}/girepository-1.0/GstCheck-%{vmajor}.typelib
193%{_libdir}/girepository-1.0/GstController-%{vmajor}.typelib
194%{_libdir}/girepository-1.0/GstNet-%{vmajor}.typelib
8fe6c68e 195
196%files devel
aa3775f0 197%defattr(644,root,root,755)
c44ba6d0
ŁK
198%attr(755,root,root) %{_libdir}/libgstbase-%{vmajor}.so
199%attr(755,root,root) %{_libdir}/libgstcheck-%{vmajor}.so
200%attr(755,root,root) %{_libdir}/libgstcontroller-%{vmajor}.so
201%attr(755,root,root) %{_libdir}/libgstnet-%{vmajor}.so
202%attr(755,root,root) %{_libdir}/libgstreamer-%{vmajor}.so
970997fa
JB
203%dir %{gstincludedir}
204%{gstincludedir}/gst
c44ba6d0
ŁK
205%{_pkgconfigdir}/gstreamer-%{vmajor}.pc
206%{_pkgconfigdir}/gstreamer-base-%{vmajor}.pc
207%{_pkgconfigdir}/gstreamer-check-%{vmajor}.pc
208%{_pkgconfigdir}/gstreamer-controller-%{vmajor}.pc
209%{_pkgconfigdir}/gstreamer-net-%{vmajor}.pc
210%{_aclocaldir}/gst-element-check-%{vmajor}.m4
c44ba6d0
ŁK
211%{_datadir}/gir-1.0/Gst-%{vmajor}.gir
212%{_datadir}/gir-1.0/GstBase-%{vmajor}.gir
213%{_datadir}/gir-1.0/GstCheck-%{vmajor}.gir
214%{_datadir}/gir-1.0/GstController-%{vmajor}.gir
215%{_datadir}/gir-1.0/GstNet-%{vmajor}.gir
ef826307
JB
216
217%files static
218%defattr(644,root,root,755)
c44ba6d0
ŁK
219%{_libdir}/libgstbase-%{vmajor}.a
220%{_libdir}/libgstcheck-%{vmajor}.a
221%{_libdir}/libgstcontroller-%{vmajor}.a
222%{_libdir}/libgstnet-%{vmajor}.a
223%{_libdir}/libgstreamer-%{vmajor}.a
078e7ce4 224
225%files apidocs
226%defattr(644,root,root,755)
c44ba6d0
ŁK
227%{_gtkdocdir}/gstreamer-%{vmajor}
228%{_gtkdocdir}/gstreamer-libs-%{vmajor}
229%{_gtkdocdir}/gstreamer-plugins-%{vmajor}
b68c95f7
JB
230
231%files -n bash-completion-gstreamer
232%defattr(644,root,root,755)
3dcbbc36
ŁK
233%{bash_compdir}/gst-inspect-1.0
234%{bash_compdir}/gst-launch-1.0
970997fa 235%attr(755,root,root) %{gstlibexecdir}/gst-completion-helper
b68c95f7 236%attr(755,root,root) %{_datadir}/bash-completion/helpers/gst
This page took 0.178677 seconds and 4 git commands to generate.