]>
Commit | Line | Data |
---|---|---|
b68c95f7 | 1 | # TODO: suid/capabilities for ptp-helper? |
c44ba6d0 | 2 | %define vmajor 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 |
f3cd19d1 | 7 | Version: 1.14.4 |
5d0defac | 8 | Release: 2 |
3e490ffb | 9 | License: LGPL v2+ |
aa3775f0 | 10 | Group: Libraries |
b6b50e80 | 11 | Source0: https://gstreamer.freedesktop.org/src/gstreamer/%{name}-%{version}.tar.xz |
f3cd19d1 | 12 | # Source0-md5: f67fbbc42bd85a0701df119f52fb52bd |
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 | |
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 |
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 | ||
b68c95f7 JB |
106 | %package -n bash-completion-gstreamer |
107 | Summary: Bash completion for GStreamer utilities | |
108 | Summary(pl.UTF-8): Bashowe uzupełnianie parametrów narzędzi GStreamera | |
109 | Group: Applications/Shells | |
110 | Requires: %{name} = %{version}-%{release} | |
111 | Requires: bash-completion >= 2.0 | |
112 | ||
113 | %description -n bash-completion-gstreamer | |
114 | Bash completion for GStreamer utilities: gst-inspect and gst-launch. | |
115 | ||
116 | %description -n bash-completion-gstreamer | |
117 | Bashowe uzupełnianie parametrów narzędzi GStreamera: gst-inspect oraz | |
118 | gst-launch. | |
119 | ||
8fe6c68e | 120 | %prep |
be480bee | 121 | %setup -q |
f61ac254 | 122 | %patch0 -p1 |
3e490ffb | 123 | |
8fe6c68e | 124 | %build |
3e490ffb JB |
125 | # po/Makefile.in.in is modified |
126 | #{__gettextize} | |
0914acac | 127 | %{__libtoolize} |
41ad949c | 128 | %{__aclocal} -I common/m4 -I m4 -I . |
eef0a4ad | 129 | %{__autoconf} |
0914acac MK |
130 | %{__autoheader} |
131 | %{__automake} | |
836bb034 | 132 | %configure \ |
91240adb | 133 | --disable-examples \ |
4ca32f31 | 134 | --disable-silent-rules \ |
91240adb | 135 | --disable-tests \ |
66c5307a | 136 | --enable-gtk-doc \ |
c44ba6d0 ŁK |
137 | --with-html-dir=%{_gtkdocdir} \ |
138 | --enable-static | |
10947d06 | 139 | |
07a0af1a | 140 | LC_ALL=C.UTF-8 \ |
4ca32f31 | 141 | %{__make} |
8fe6c68e | 142 | |
94b8580b | 143 | %install |
aa3775f0 | 144 | rm -rf $RPM_BUILD_ROOT |
8fe6c68e | 145 | |
91240adb | 146 | %{__make} install \ |
7b283813 JB |
147 | DESTDIR=$RPM_BUILD_ROOT |
148 | ||
9e6e4167 | 149 | %find_lang %{name} --all-name --with-gnome |
150 | ||
f3cd19d1 JB |
151 | # no *.la for modules nor static modules - shut up check files |
152 | %{__rm} $RPM_BUILD_ROOT%{gstlibdir}/lib*.{la,a} | |
e3c412c9 JB |
153 | # obsoleted by pkg-config |
154 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgst*.la | |
70462d81 | 155 | |
8fe6c68e | 156 | %clean |
e3bdbfbd | 157 | rm -rf $RPM_BUILD_ROOT |
8fe6c68e | 158 | |
078e7ce4 | 159 | %post -p /sbin/ldconfig |
ef826307 | 160 | %postun -p /sbin/ldconfig |
94b8580b | 161 | |
9e6e4167 | 162 | %files -f %{name}.lang |
aa3775f0 | 163 | %defattr(644,root,root,755) |
396d97fd | 164 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README RELEASE |
e3c412c9 JB |
165 | %attr(755,root,root) %{_bindir}/gst-inspect-1.0 |
166 | %attr(755,root,root) %{_bindir}/gst-launch-1.0 | |
3dcbbc36 | 167 | %attr(755,root,root) %{_bindir}/gst-stats-1.0 |
e3c412c9 | 168 | %attr(755,root,root) %{_bindir}/gst-typefind-1.0 |
c44ba6d0 ŁK |
169 | %attr(755,root,root) %{_libdir}/libgstbase-%{vmajor}.so.*.*.* |
170 | %attr(755,root,root) %ghost %{_libdir}/libgstbase-%{vmajor}.so.0 | |
171 | %attr(755,root,root) %{_libdir}/libgstcheck-%{vmajor}.so.*.*.* | |
172 | %attr(755,root,root) %ghost %{_libdir}/libgstcheck-%{vmajor}.so.0 | |
173 | %attr(755,root,root) %{_libdir}/libgstcontroller-%{vmajor}.so.*.*.* | |
174 | %attr(755,root,root) %ghost %{_libdir}/libgstcontroller-%{vmajor}.so.0 | |
175 | %attr(755,root,root) %{_libdir}/libgstnet-%{vmajor}.so.*.*.* | |
176 | %attr(755,root,root) %ghost %{_libdir}/libgstnet-%{vmajor}.so.0 | |
177 | %attr(755,root,root) %{_libdir}/libgstreamer-%{vmajor}.so.*.*.* | |
178 | %attr(755,root,root) %ghost %{_libdir}/libgstreamer-%{vmajor}.so.0 | |
970997fa JB |
179 | %if "%{_libexecdir}" != "%{_libdir}" |
180 | %dir %{gstlibexecdir} | |
181 | %endif | |
182 | %attr(755,root,root) %{gstlibexecdir}/gst-plugin-scanner | |
183 | %attr(755,root,root) %{gstlibexecdir}/gst-ptp-helper | |
184 | %dir %{gstlibdir} | |
185 | %attr(755,root,root) %{gstlibdir}/libgstcoreelements.so | |
186 | %attr(755,root,root) %{gstlibdir}/libgstcoretracers.so | |
e3c412c9 JB |
187 | %{_mandir}/man1/gst-inspect-1.0.1* |
188 | %{_mandir}/man1/gst-launch-1.0.1* | |
417c9e6b | 189 | %{_mandir}/man1/gst-stats-1.0.1* |
e3c412c9 | 190 | %{_mandir}/man1/gst-typefind-1.0.1* |
c44ba6d0 ŁK |
191 | %{_libdir}/girepository-1.0/Gst-%{vmajor}.typelib |
192 | %{_libdir}/girepository-1.0/GstBase-%{vmajor}.typelib | |
193 | %{_libdir}/girepository-1.0/GstCheck-%{vmajor}.typelib | |
194 | %{_libdir}/girepository-1.0/GstController-%{vmajor}.typelib | |
195 | %{_libdir}/girepository-1.0/GstNet-%{vmajor}.typelib | |
8fe6c68e | 196 | |
197 | %files devel | |
aa3775f0 | 198 | %defattr(644,root,root,755) |
c44ba6d0 ŁK |
199 | %attr(755,root,root) %{_libdir}/libgstbase-%{vmajor}.so |
200 | %attr(755,root,root) %{_libdir}/libgstcheck-%{vmajor}.so | |
201 | %attr(755,root,root) %{_libdir}/libgstcontroller-%{vmajor}.so | |
202 | %attr(755,root,root) %{_libdir}/libgstnet-%{vmajor}.so | |
203 | %attr(755,root,root) %{_libdir}/libgstreamer-%{vmajor}.so | |
970997fa JB |
204 | %dir %{gstincludedir} |
205 | %{gstincludedir}/gst | |
c44ba6d0 ŁK |
206 | %{_pkgconfigdir}/gstreamer-%{vmajor}.pc |
207 | %{_pkgconfigdir}/gstreamer-base-%{vmajor}.pc | |
208 | %{_pkgconfigdir}/gstreamer-check-%{vmajor}.pc | |
209 | %{_pkgconfigdir}/gstreamer-controller-%{vmajor}.pc | |
210 | %{_pkgconfigdir}/gstreamer-net-%{vmajor}.pc | |
211 | %{_aclocaldir}/gst-element-check-%{vmajor}.m4 | |
c44ba6d0 ŁK |
212 | %{_datadir}/gir-1.0/Gst-%{vmajor}.gir |
213 | %{_datadir}/gir-1.0/GstBase-%{vmajor}.gir | |
214 | %{_datadir}/gir-1.0/GstCheck-%{vmajor}.gir | |
215 | %{_datadir}/gir-1.0/GstController-%{vmajor}.gir | |
216 | %{_datadir}/gir-1.0/GstNet-%{vmajor}.gir | |
ef826307 JB |
217 | |
218 | %files static | |
219 | %defattr(644,root,root,755) | |
c44ba6d0 ŁK |
220 | %{_libdir}/libgstbase-%{vmajor}.a |
221 | %{_libdir}/libgstcheck-%{vmajor}.a | |
222 | %{_libdir}/libgstcontroller-%{vmajor}.a | |
223 | %{_libdir}/libgstnet-%{vmajor}.a | |
224 | %{_libdir}/libgstreamer-%{vmajor}.a | |
078e7ce4 | 225 | |
226 | %files apidocs | |
227 | %defattr(644,root,root,755) | |
c44ba6d0 ŁK |
228 | %{_gtkdocdir}/gstreamer-%{vmajor} |
229 | %{_gtkdocdir}/gstreamer-libs-%{vmajor} | |
230 | %{_gtkdocdir}/gstreamer-plugins-%{vmajor} | |
b68c95f7 JB |
231 | |
232 | %files -n bash-completion-gstreamer | |
233 | %defattr(644,root,root,755) | |
3dcbbc36 ŁK |
234 | %{bash_compdir}/gst-inspect-1.0 |
235 | %{bash_compdir}/gst-launch-1.0 | |
970997fa | 236 | %attr(755,root,root) %{gstlibexecdir}/gst-completion-helper |
b68c95f7 | 237 | %attr(755,root,root) %{_datadir}/bash-completion/helpers/gst |