]>
Commit | Line | Data |
---|---|---|
b68c95f7 | 1 | # TODO: suid/capabilities for ptp-helper? |
500c9cf5 | 2 | %define gstmver 1.0 |
e1d0ecfc | 3 | |
aa3775f0 | 4 | Summary: GStreamer Streaming-media framework runtime |
69ce472f | 5 | Summary(pl.UTF-8): GStreamer - biblioteki środowiska do obróbki strumieni |
aa3775f0 | 6 | Name: gstreamer |
205d484a | 7 | Version: 1.16.0 |
c09caebc | 8 | Release: 3 |
3e490ffb | 9 | License: LGPL v2+ |
aa3775f0 | 10 | Group: Libraries |
b6b50e80 | 11 | Source0: https://gstreamer.freedesktop.org/src/gstreamer/%{name}-%{version}.tar.xz |
205d484a | 12 | # Source0-md5: 862b7e4263d946bc2ef31b3c582e5587 |
28c60d38 | 13 | Patch0: %{name}-inspect-rpm-format.patch |
b6b50e80 | 14 | URL: https://gstreamer.freedesktop.org/ |
b68c95f7 JB |
15 | BuildRequires: autoconf >= 2.69 |
16 | BuildRequires: automake >= 1:1.14 | |
4ca32f31 | 17 | BuildRequires: bison >= 1.875 |
d3c26881 | 18 | BuildRequires: docbook-dtd412-xml |
28c60d38 | 19 | BuildRequires: elfutils-devel |
4ca32f31 | 20 | BuildRequires: flex >= 2.5.31 |
a3fe4935 | 21 | BuildRequires: gettext-tools >= 0.17 |
3dcbbc36 | 22 | BuildRequires: glib2-devel >= 1:2.40.0 |
07a0af1a JB |
23 | %if %(locale -a | grep -q '^C\.UTF-8$'; echo $?) |
24 | BuildRequires: glibc-localedb-all | |
25 | %endif | |
d3c26881 | 26 | BuildRequires: glibc-misc |
c44ba6d0 | 27 | BuildRequires: gobject-introspection-devel >= 1.31.1 |
6fcf6a9b | 28 | BuildRequires: gtk-doc >= 1.12 |
b68c95f7 JB |
29 | BuildRequires: libcap-devel |
30 | BuildRequires: libtool >= 2:2.2.6 | |
f3cd19d1 | 31 | %ifarch %{ix86} %{x8664} x32 %{arm} hppa ia64 mips ppc ppc64 sh |
28c60d38 JB |
32 | BuildRequires: libunwind-devel |
33 | %endif | |
9e6e4167 | 34 | BuildRequires: perl-base |
965ff8c8 | 35 | BuildRequires: pkgconfig >= 1:0.9.0 |
4ca32f31 | 36 | BuildRequires: python >= 2.1 |
5d1e72f6 | 37 | BuildRequires: tar >= 1:1.22 |
5d1e72f6 | 38 | BuildRequires: xz |
3dcbbc36 | 39 | Requires: glib2 >= 1:2.40.0 |
bc1f103d | 40 | BuildRoot: %{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 |
47 | GStreamer is a streaming-media framework, based on graphs of filters |
48 | which operate on media data. Applications using this library can do | |
49 | anything from real-time sound processing to playing videos, and just | |
50 | about anything else media-related. Its plugin-based architecture means | |
51 | that new data types or processing capabilities can be added simply by | |
52 | installing new plugins. | |
8fe6c68e | 53 | |
212bb255 JR |
54 | %description -l pl.UTF-8 |
55 | GStreamer to środowisko obróbki danych strumieniowych, bazujące na | |
56 | grafie filtrów operujących na danych medialnych. Aplikacje używające | |
57 | tej biblioteki mogą robić wszystko od przetwarzania dźwięku w czasie | |
58 | rzeczywistym, do odtwarzania filmów i czegokolwiek innego związanego z | |
59 | mediami. Architektura bazująca na wtyczkach pozwala na łatwe dodawanie | |
60 | nowych typów danych lub możliwości obróbki. | |
ef826307 | 61 | |
8fe6c68e | 62 | %package devel |
ef826307 | 63 | Summary: Include files for GStreamer streaming-media framework |
69ce472f | 64 | Summary(pl.UTF-8): Pliki nagłówkowe do środowiska obróbki strumieni GStreamer |
aa3775f0 | 65 | Group: Development/Libraries |
9e6e4167 | 66 | Requires: %{name} = %{version}-%{release} |
3dcbbc36 | 67 | Requires: glib2-devel >= 1:2.40.0 |
06b33981 | 68 | Obsoletes: gstreamer-plugins-bad-devel < 0.10.10 |
5d0defac | 69 | Conflicts: gstreamer-plugins-bad-devel < 1.14 |
8fe6c68e | 70 | |
71 | %description devel | |
ef826307 JB |
72 | This package contains the includes files necessary to develop |
73 | applications and plugins for GStreamer. | |
74 | ||
212bb255 JR |
75 | %description devel -l pl.UTF-8 |
76 | Ten pakiet zawiera pliki nagłówkowe potrzebne do rozwijania aplikacji | |
ef826307 JB |
77 | i wtyczek do GStreamera. |
78 | ||
79 | %package static | |
80 | Summary: GStreamer static libraries | |
69ce472f | 81 | Summary(pl.UTF-8): Biblioteki statyczne GStreamer |
ef826307 | 82 | Group: Development/Libraries |
9e6e4167 | 83 | Requires: %{name}-devel = %{version}-%{release} |
8fe6c68e | 84 | |
ef826307 JB |
85 | %description static |
86 | Static versions of GStreamer libraries. | |
87 | ||
212bb255 | 88 | %description static -l pl.UTF-8 |
ef826307 | 89 | Statyczne wersje bibliotek GStreamer. |
8fe6c68e | 90 | |
078e7ce4 | 91 | %package apidocs |
92 | Summary: GStreamer API documentation | |
69ce472f | 93 | Summary(pl.UTF-8): Dokumentacja API Gstreamera |
078e7ce4 | 94 | Group: Documentation |
95 | Requires: gtk-doc-common | |
e1d0ecfc ER |
96 | %if "%{_rpmversion}" >= "5" |
97 | BuildArch: noarch | |
98 | %endif | |
078e7ce4 | 99 | |
100 | %description apidocs | |
101 | GStreamer API documentation. | |
102 | ||
212bb255 | 103 | %description apidocs -l pl.UTF-8 |
078e7ce4 | 104 | Dokumentacja API Gstreamera. |
105 | ||
205d484a BS |
106 | %package gdb |
107 | Summary: GStreamer pretty printers for GDB | |
108 | Summary(pl.UTF-8): Funkcje wypisujące dane GStreamer dla GDB | |
109 | Group: Development/Debuggers | |
110 | ||
111 | %description gdb | |
112 | This package contains Python scripts for GDB pretty printing of the | |
113 | GStreamer types. | |
114 | ||
115 | %description gdb -l pl.UTF-8 | |
116 | Ten pakiet zawiera skrypty Pythona dla GDB służące do ładnego | |
117 | wypisywania typów GStreamer. | |
118 | ||
b68c95f7 JB |
119 | %package -n bash-completion-gstreamer |
120 | Summary: Bash completion for GStreamer utilities | |
121 | Summary(pl.UTF-8): Bashowe uzupełnianie parametrów narzędzi GStreamera | |
122 | Group: Applications/Shells | |
123 | Requires: %{name} = %{version}-%{release} | |
124 | Requires: bash-completion >= 2.0 | |
125 | ||
126 | %description -n bash-completion-gstreamer | |
127 | Bash completion for GStreamer utilities: gst-inspect and gst-launch. | |
128 | ||
129 | %description -n bash-completion-gstreamer | |
130 | Bashowe uzupełnianie parametrów narzędzi GStreamera: gst-inspect oraz | |
131 | gst-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 | 153 | LC_ALL=C.UTF-8 \ |
4ca32f31 | 154 | %{__make} |
8fe6c68e | 155 | |
94b8580b | 156 | %install |
aa3775f0 | 157 | rm -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 | 174 | rm -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 |