- updated to 1.12.4
[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
b68c95f7 8Release: 1
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
774fa34b
JB
42%define _gstlibdir %{_libdir}/gstreamer-%{vmajor}
43%define _gstincludedir %{_includedir}/gstreamer-%{vmajor}
c6416cbe 44
8fe6c68e 45%description
aa3775f0
MP
46GStreamer is a streaming-media framework, based on graphs of filters
47which operate on media data. Applications using this library can do
48anything from real-time sound processing to playing videos, and just
49about anything else media-related. Its plugin-based architecture means
50that new data types or processing capabilities can be added simply by
51installing new plugins.
8fe6c68e 52
212bb255
JR
53%description -l pl.UTF-8
54GStreamer to środowisko obróbki danych strumieniowych, bazujące na
55grafie filtrów operujących na danych medialnych. Aplikacje używające
56tej biblioteki mogą robić wszystko od przetwarzania dźwięku w czasie
57rzeczywistym, do odtwarzania filmów i czegokolwiek innego związanego z
58mediami. Architektura bazująca na wtyczkach pozwala na łatwe dodawanie
59nowych typów danych lub możliwości obróbki.
ef826307 60
8fe6c68e 61%package devel
ef826307 62Summary: Include files for GStreamer streaming-media framework
69ce472f 63Summary(pl.UTF-8): Pliki nagłówkowe do środowiska obróbki strumieni GStreamer
aa3775f0 64Group: Development/Libraries
9e6e4167 65Requires: %{name} = %{version}-%{release}
3dcbbc36 66Requires: glib2-devel >= 1:2.40.0
06b33981 67Obsoletes: gstreamer-plugins-bad-devel < 0.10.10
8fe6c68e 68
69%description devel
ef826307
JB
70This package contains the includes files necessary to develop
71applications and plugins for GStreamer.
72
212bb255
JR
73%description devel -l pl.UTF-8
74Ten pakiet zawiera pliki nagłówkowe potrzebne do rozwijania aplikacji
ef826307
JB
75i wtyczek do GStreamera.
76
77%package static
78Summary: GStreamer static libraries
69ce472f 79Summary(pl.UTF-8): Biblioteki statyczne GStreamer
ef826307 80Group: Development/Libraries
9e6e4167 81Requires: %{name}-devel = %{version}-%{release}
8fe6c68e 82
ef826307
JB
83%description static
84Static versions of GStreamer libraries.
85
212bb255 86%description static -l pl.UTF-8
ef826307 87Statyczne wersje bibliotek GStreamer.
8fe6c68e 88
078e7ce4 89%package apidocs
90Summary: GStreamer API documentation
69ce472f 91Summary(pl.UTF-8): Dokumentacja API Gstreamera
078e7ce4 92Group: Documentation
93Requires: gtk-doc-common
e1d0ecfc
ER
94%if "%{_rpmversion}" >= "5"
95BuildArch: noarch
96%endif
078e7ce4 97
98%description apidocs
99GStreamer API documentation.
100
212bb255 101%description apidocs -l pl.UTF-8
078e7ce4 102Dokumentacja API Gstreamera.
103
b68c95f7
JB
104%package -n bash-completion-gstreamer
105Summary: Bash completion for GStreamer utilities
106Summary(pl.UTF-8): Bashowe uzupełnianie parametrów narzędzi GStreamera
107Group: Applications/Shells
108Requires: %{name} = %{version}-%{release}
109Requires: bash-completion >= 2.0
110
111%description -n bash-completion-gstreamer
112Bash completion for GStreamer utilities: gst-inspect and gst-launch.
113
114%description -n bash-completion-gstreamer
115Bashowe uzupełnianie parametrów narzędzi GStreamera: gst-inspect oraz
116gst-launch.
117
8fe6c68e 118%prep
be480bee 119%setup -q
f61ac254 120%patch0 -p1
3e490ffb 121
8fe6c68e 122%build
3e490ffb
JB
123# po/Makefile.in.in is modified
124#{__gettextize}
0914acac 125%{__libtoolize}
41ad949c 126%{__aclocal} -I common/m4 -I m4 -I .
eef0a4ad 127%{__autoconf}
0914acac
MK
128%{__autoheader}
129%{__automake}
836bb034 130%configure \
91240adb 131 --disable-examples \
4ca32f31 132 --disable-silent-rules \
91240adb 133 --disable-tests \
66c5307a 134 --enable-gtk-doc \
c44ba6d0
ŁK
135 --with-html-dir=%{_gtkdocdir} \
136 --enable-static
10947d06 137
07a0af1a 138LC_ALL=C.UTF-8 \
4ca32f31 139%{__make}
8fe6c68e 140
94b8580b 141%install
aa3775f0 142rm -rf $RPM_BUILD_ROOT
8fe6c68e 143
91240adb 144%{__make} install \
7b283813
JB
145 DESTDIR=$RPM_BUILD_ROOT
146
9e6e4167 147%find_lang %{name} --all-name --with-gnome
148
d9da29b9
JB
149# no *.la for modules - shut up check files
150%{__rm} $RPM_BUILD_ROOT%{_gstlibdir}/lib*.la
e3c412c9
JB
151# obsoleted by pkg-config
152%{__rm} $RPM_BUILD_ROOT%{_libdir}/libgst*.la
70462d81 153
8fe6c68e 154%clean
e3bdbfbd 155rm -rf $RPM_BUILD_ROOT
8fe6c68e 156
078e7ce4 157%post -p /sbin/ldconfig
ef826307 158%postun -p /sbin/ldconfig
94b8580b 159
9e6e4167 160%files -f %{name}.lang
aa3775f0 161%defattr(644,root,root,755)
396d97fd 162%doc AUTHORS ChangeLog MAINTAINERS NEWS README RELEASE
e3c412c9
JB
163%attr(755,root,root) %{_bindir}/gst-inspect-1.0
164%attr(755,root,root) %{_bindir}/gst-launch-1.0
3dcbbc36 165%attr(755,root,root) %{_bindir}/gst-stats-1.0
e3c412c9 166%attr(755,root,root) %{_bindir}/gst-typefind-1.0
c44ba6d0
ŁK
167%attr(755,root,root) %{_libdir}/libgstbase-%{vmajor}.so.*.*.*
168%attr(755,root,root) %ghost %{_libdir}/libgstbase-%{vmajor}.so.0
169%attr(755,root,root) %{_libdir}/libgstcheck-%{vmajor}.so.*.*.*
170%attr(755,root,root) %ghost %{_libdir}/libgstcheck-%{vmajor}.so.0
171%attr(755,root,root) %{_libdir}/libgstcontroller-%{vmajor}.so.*.*.*
172%attr(755,root,root) %ghost %{_libdir}/libgstcontroller-%{vmajor}.so.0
173%attr(755,root,root) %{_libdir}/libgstnet-%{vmajor}.so.*.*.*
174%attr(755,root,root) %ghost %{_libdir}/libgstnet-%{vmajor}.so.0
175%attr(755,root,root) %{_libdir}/libgstreamer-%{vmajor}.so.*.*.*
176%attr(755,root,root) %ghost %{_libdir}/libgstreamer-%{vmajor}.so.0
7b283813 177%dir %{_gstlibdir}
87b5d78a 178%attr(755,root,root) %{_gstlibdir}/gst-plugin-scanner
b68c95f7 179%attr(755,root,root) %{_gstlibdir}/gst-ptp-helper
774fa34b 180%attr(755,root,root) %{_gstlibdir}/libgstcoreelements.so
3dcbbc36 181%attr(755,root,root) %{_gstlibdir}/libgstcoretracers.so
e3c412c9
JB
182%{_mandir}/man1/gst-inspect-1.0.1*
183%{_mandir}/man1/gst-launch-1.0.1*
417c9e6b 184%{_mandir}/man1/gst-stats-1.0.1*
e3c412c9 185%{_mandir}/man1/gst-typefind-1.0.1*
c44ba6d0
ŁK
186%{_libdir}/girepository-1.0/Gst-%{vmajor}.typelib
187%{_libdir}/girepository-1.0/GstBase-%{vmajor}.typelib
188%{_libdir}/girepository-1.0/GstCheck-%{vmajor}.typelib
189%{_libdir}/girepository-1.0/GstController-%{vmajor}.typelib
190%{_libdir}/girepository-1.0/GstNet-%{vmajor}.typelib
8fe6c68e 191
192%files devel
aa3775f0 193%defattr(644,root,root,755)
c44ba6d0
ŁK
194%attr(755,root,root) %{_libdir}/libgstbase-%{vmajor}.so
195%attr(755,root,root) %{_libdir}/libgstcheck-%{vmajor}.so
196%attr(755,root,root) %{_libdir}/libgstcontroller-%{vmajor}.so
197%attr(755,root,root) %{_libdir}/libgstnet-%{vmajor}.so
198%attr(755,root,root) %{_libdir}/libgstreamer-%{vmajor}.so
c6416cbe 199%{_gstincludedir}
c44ba6d0
ŁK
200%{_pkgconfigdir}/gstreamer-%{vmajor}.pc
201%{_pkgconfigdir}/gstreamer-base-%{vmajor}.pc
202%{_pkgconfigdir}/gstreamer-check-%{vmajor}.pc
203%{_pkgconfigdir}/gstreamer-controller-%{vmajor}.pc
204%{_pkgconfigdir}/gstreamer-net-%{vmajor}.pc
205%{_aclocaldir}/gst-element-check-%{vmajor}.m4
c44ba6d0
ŁK
206%{_datadir}/gir-1.0/Gst-%{vmajor}.gir
207%{_datadir}/gir-1.0/GstBase-%{vmajor}.gir
208%{_datadir}/gir-1.0/GstCheck-%{vmajor}.gir
209%{_datadir}/gir-1.0/GstController-%{vmajor}.gir
210%{_datadir}/gir-1.0/GstNet-%{vmajor}.gir
ef826307
JB
211
212%files static
213%defattr(644,root,root,755)
c44ba6d0
ŁK
214%{_libdir}/libgstbase-%{vmajor}.a
215%{_libdir}/libgstcheck-%{vmajor}.a
216%{_libdir}/libgstcontroller-%{vmajor}.a
217%{_libdir}/libgstnet-%{vmajor}.a
218%{_libdir}/libgstreamer-%{vmajor}.a
078e7ce4 219
220%files apidocs
221%defattr(644,root,root,755)
c44ba6d0
ŁK
222%{_gtkdocdir}/gstreamer-%{vmajor}
223%{_gtkdocdir}/gstreamer-libs-%{vmajor}
224%{_gtkdocdir}/gstreamer-plugins-%{vmajor}
b68c95f7
JB
225
226%files -n bash-completion-gstreamer
227%defattr(644,root,root,755)
3dcbbc36
ŁK
228%{bash_compdir}/gst-inspect-1.0
229%{bash_compdir}/gst-launch-1.0
28c60d38 230%attr(755,root,root) %{_gstlibdir}/gst-completion-helper
b68c95f7 231%attr(755,root,root) %{_datadir}/bash-completion/helpers/gst
This page took 0.162742 seconds and 4 git commands to generate.