]>
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 |
07a0af1a | 7 | Version: 1.12.4 |
b68c95f7 | 8 | Release: 1 |
3e490ffb | 9 | License: LGPL v2+ |
aa3775f0 | 10 | Group: Libraries |
b6b50e80 | 11 | Source0: https://gstreamer.freedesktop.org/src/gstreamer/%{name}-%{version}.tar.xz |
07a0af1a | 12 | # Source0-md5: 9d268f2e891cce1ac0832f1cc467d4ea |
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 | |
28c60d38 JB |
31 | %ifarch %{ix86} %{x8664} %{arm} hppa ia64 mips ppc ppc64 sh |
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 | |
774fa34b JB |
42 | %define _gstlibdir %{_libdir}/gstreamer-%{vmajor} |
43 | %define _gstincludedir %{_includedir}/gstreamer-%{vmajor} | |
c6416cbe | 44 | |
8fe6c68e | 45 | %description |
aa3775f0 MP |
46 | GStreamer is a streaming-media framework, based on graphs of filters |
47 | which operate on media data. Applications using this library can do | |
48 | anything from real-time sound processing to playing videos, and just | |
49 | about anything else media-related. Its plugin-based architecture means | |
50 | that new data types or processing capabilities can be added simply by | |
51 | installing new plugins. | |
8fe6c68e | 52 | |
212bb255 JR |
53 | %description -l pl.UTF-8 |
54 | GStreamer to środowisko obróbki danych strumieniowych, bazujące na | |
55 | grafie filtrów operujących na danych medialnych. Aplikacje używające | |
56 | tej biblioteki mogą robić wszystko od przetwarzania dźwięku w czasie | |
57 | rzeczywistym, do odtwarzania filmów i czegokolwiek innego związanego z | |
58 | mediami. Architektura bazująca na wtyczkach pozwala na łatwe dodawanie | |
59 | nowych typów danych lub możliwości obróbki. | |
ef826307 | 60 | |
8fe6c68e | 61 | %package devel |
ef826307 | 62 | Summary: Include files for GStreamer streaming-media framework |
69ce472f | 63 | Summary(pl.UTF-8): Pliki nagłówkowe do środowiska obróbki strumieni GStreamer |
aa3775f0 | 64 | Group: Development/Libraries |
9e6e4167 | 65 | Requires: %{name} = %{version}-%{release} |
3dcbbc36 | 66 | Requires: glib2-devel >= 1:2.40.0 |
06b33981 | 67 | Obsoletes: gstreamer-plugins-bad-devel < 0.10.10 |
8fe6c68e | 68 | |
69 | %description devel | |
ef826307 JB |
70 | This package contains the includes files necessary to develop |
71 | applications and plugins for GStreamer. | |
72 | ||
212bb255 JR |
73 | %description devel -l pl.UTF-8 |
74 | Ten pakiet zawiera pliki nagłówkowe potrzebne do rozwijania aplikacji | |
ef826307 JB |
75 | i wtyczek do GStreamera. |
76 | ||
77 | %package static | |
78 | Summary: GStreamer static libraries | |
69ce472f | 79 | Summary(pl.UTF-8): Biblioteki statyczne GStreamer |
ef826307 | 80 | Group: Development/Libraries |
9e6e4167 | 81 | Requires: %{name}-devel = %{version}-%{release} |
8fe6c68e | 82 | |
ef826307 JB |
83 | %description static |
84 | Static versions of GStreamer libraries. | |
85 | ||
212bb255 | 86 | %description static -l pl.UTF-8 |
ef826307 | 87 | Statyczne wersje bibliotek GStreamer. |
8fe6c68e | 88 | |
078e7ce4 | 89 | %package apidocs |
90 | Summary: GStreamer API documentation | |
69ce472f | 91 | Summary(pl.UTF-8): Dokumentacja API Gstreamera |
078e7ce4 | 92 | Group: Documentation |
93 | Requires: gtk-doc-common | |
e1d0ecfc ER |
94 | %if "%{_rpmversion}" >= "5" |
95 | BuildArch: noarch | |
96 | %endif | |
078e7ce4 | 97 | |
98 | %description apidocs | |
99 | GStreamer API documentation. | |
100 | ||
212bb255 | 101 | %description apidocs -l pl.UTF-8 |
078e7ce4 | 102 | Dokumentacja API Gstreamera. |
103 | ||
b68c95f7 JB |
104 | %package -n bash-completion-gstreamer |
105 | Summary: Bash completion for GStreamer utilities | |
106 | Summary(pl.UTF-8): Bashowe uzupełnianie parametrów narzędzi GStreamera | |
107 | Group: Applications/Shells | |
108 | Requires: %{name} = %{version}-%{release} | |
109 | Requires: bash-completion >= 2.0 | |
110 | ||
111 | %description -n bash-completion-gstreamer | |
112 | Bash completion for GStreamer utilities: gst-inspect and gst-launch. | |
113 | ||
114 | %description -n bash-completion-gstreamer | |
115 | Bashowe uzupełnianie parametrów narzędzi GStreamera: gst-inspect oraz | |
116 | gst-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 | 138 | LC_ALL=C.UTF-8 \ |
4ca32f31 | 139 | %{__make} |
8fe6c68e | 140 | |
94b8580b | 141 | %install |
aa3775f0 | 142 | rm -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 | 155 | rm -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 |