]>
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 |
3dcbbc36 | 7 | Version: 1.8.0 |
b68c95f7 | 8 | Release: 1 |
3e490ffb | 9 | License: LGPL v2+ |
aa3775f0 | 10 | Group: Libraries |
5d1e72f6 | 11 | Source0: http://gstreamer.freedesktop.org/src/gstreamer/%{name}-%{version}.tar.xz |
3dcbbc36 | 12 | # Source0-md5: 6846d7289ec323c38c49b818171e955a |
f61ac254 JB |
13 | Patch0: %{name}-without_ps_pdf.patch |
14 | Patch1: %{name}-eps.patch | |
5ab189e4 | 15 | Patch2: %{name}-inspect-rpm-format.patch |
ef826307 | 16 | URL: http://gstreamer.net/ |
b68c95f7 JB |
17 | BuildRequires: autoconf >= 2.69 |
18 | BuildRequires: automake >= 1:1.14 | |
4ca32f31 | 19 | BuildRequires: bison >= 1.875 |
cebc43df | 20 | BuildRequires: docbook-dtd30-sgml |
d3c26881 | 21 | BuildRequires: docbook-dtd412-xml |
f61ac254 | 22 | BuildRequires: docbook-utils >= 0.6.10 |
4ca32f31 | 23 | BuildRequires: flex >= 2.5.31 |
a3fe4935 | 24 | BuildRequires: gettext-tools >= 0.17 |
3dcbbc36 | 25 | BuildRequires: glib2-devel >= 1:2.40.0 |
d3c26881 | 26 | BuildRequires: glibc-misc |
cebc43df | 27 | BuildRequires: gnome-doc-tools |
c44ba6d0 | 28 | BuildRequires: gobject-introspection-devel >= 1.31.1 |
6fcf6a9b | 29 | BuildRequires: gtk-doc >= 1.12 |
b68c95f7 JB |
30 | BuildRequires: libcap-devel |
31 | BuildRequires: libtool >= 2:2.2.6 | |
8608015c | 32 | BuildRequires: nasm |
9e6e4167 | 33 | BuildRequires: perl-base |
965ff8c8 | 34 | BuildRequires: pkgconfig >= 1:0.9.0 |
4ca32f31 | 35 | BuildRequires: python >= 2.1 |
5d1e72f6 | 36 | BuildRequires: tar >= 1:1.22 |
48842c38 | 37 | BuildRequires: transfig |
fe044034 | 38 | BuildRequires: xmlto |
5d1e72f6 | 39 | BuildRequires: xz |
3dcbbc36 | 40 | Requires: glib2 >= 1:2.40.0 |
bc1f103d | 41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
4988018f | 42 | |
774fa34b JB |
43 | %define _gstlibdir %{_libdir}/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 |
8fe6c68e | 69 | |
70 | %description devel | |
ef826307 JB |
71 | This package contains the includes files necessary to develop |
72 | applications and plugins for GStreamer. | |
73 | ||
212bb255 JR |
74 | %description devel -l pl.UTF-8 |
75 | Ten pakiet zawiera pliki nagłówkowe potrzebne do rozwijania aplikacji | |
ef826307 JB |
76 | i wtyczek do GStreamera. |
77 | ||
78 | %package static | |
79 | Summary: GStreamer static libraries | |
69ce472f | 80 | Summary(pl.UTF-8): Biblioteki statyczne GStreamer |
ef826307 | 81 | Group: Development/Libraries |
9e6e4167 | 82 | Requires: %{name}-devel = %{version}-%{release} |
8fe6c68e | 83 | |
ef826307 JB |
84 | %description static |
85 | Static versions of GStreamer libraries. | |
86 | ||
212bb255 | 87 | %description static -l pl.UTF-8 |
ef826307 | 88 | Statyczne wersje bibliotek GStreamer. |
8fe6c68e | 89 | |
078e7ce4 | 90 | %package apidocs |
91 | Summary: GStreamer API documentation | |
69ce472f | 92 | Summary(pl.UTF-8): Dokumentacja API Gstreamera |
078e7ce4 | 93 | Group: Documentation |
94 | Requires: gtk-doc-common | |
e1d0ecfc ER |
95 | %if "%{_rpmversion}" >= "5" |
96 | BuildArch: noarch | |
97 | %endif | |
078e7ce4 | 98 | |
99 | %description apidocs | |
100 | GStreamer API documentation. | |
101 | ||
212bb255 | 102 | %description apidocs -l pl.UTF-8 |
078e7ce4 | 103 | Dokumentacja API Gstreamera. |
104 | ||
b68c95f7 JB |
105 | %package -n bash-completion-gstreamer |
106 | Summary: Bash completion for GStreamer utilities | |
107 | Summary(pl.UTF-8): Bashowe uzupełnianie parametrów narzędzi GStreamera | |
108 | Group: Applications/Shells | |
109 | Requires: %{name} = %{version}-%{release} | |
110 | Requires: bash-completion >= 2.0 | |
111 | ||
112 | %description -n bash-completion-gstreamer | |
113 | Bash completion for GStreamer utilities: gst-inspect and gst-launch. | |
114 | ||
115 | %description -n bash-completion-gstreamer | |
116 | Bashowe uzupełnianie parametrów narzędzi GStreamera: gst-inspect oraz | |
117 | gst-launch. | |
118 | ||
8fe6c68e | 119 | %prep |
be480bee | 120 | %setup -q |
f61ac254 JB |
121 | %patch0 -p1 |
122 | %patch1 -p1 | |
955c6464 | 123 | %patch2 -p1 |
3e490ffb | 124 | |
8fe6c68e | 125 | %build |
3e490ffb JB |
126 | # po/Makefile.in.in is modified |
127 | #{__gettextize} | |
0914acac | 128 | %{__libtoolize} |
41ad949c | 129 | %{__aclocal} -I common/m4 -I m4 -I . |
eef0a4ad | 130 | %{__autoconf} |
0914acac MK |
131 | %{__autoheader} |
132 | %{__automake} | |
836bb034 | 133 | %configure \ |
91240adb | 134 | --disable-examples \ |
bc366c85 | 135 | --disable-pspdf \ |
4ca32f31 | 136 | --disable-silent-rules \ |
91240adb | 137 | --disable-tests \ |
66c5307a | 138 | --enable-docbook \ |
139 | --enable-gtk-doc \ | |
c44ba6d0 ŁK |
140 | --with-html-dir=%{_gtkdocdir} \ |
141 | --enable-static | |
10947d06 | 142 | |
4ca32f31 | 143 | %{__make} |
8fe6c68e | 144 | |
94b8580b | 145 | %install |
aa3775f0 | 146 | rm -rf $RPM_BUILD_ROOT |
a693ae43 | 147 | install -d $RPM_BUILD_ROOT{%{_docdir}/%{name}-devel-%{version},%{rpmlibdir}} |
8fe6c68e | 148 | |
91240adb | 149 | %{__make} install \ |
7b283813 JB |
150 | DESTDIR=$RPM_BUILD_ROOT |
151 | ||
774fa34b | 152 | mv $RPM_BUILD_ROOT%{_docdir}/%{name}-{%{vmajor},%{version}} |
17e5a044 | 153 | mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/{faq,manual,pwg} \ |
9e6e4167 | 154 | $RPM_BUILD_ROOT%{_docdir}/%{name}-devel-%{version} |
155 | ||
156 | %find_lang %{name} --all-name --with-gnome | |
157 | ||
d9da29b9 JB |
158 | # no *.la for modules - shut up check files |
159 | %{__rm} $RPM_BUILD_ROOT%{_gstlibdir}/lib*.la | |
e3c412c9 JB |
160 | # obsoleted by pkg-config |
161 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgst*.la | |
70462d81 | 162 | |
8fe6c68e | 163 | %clean |
e3bdbfbd | 164 | rm -rf $RPM_BUILD_ROOT |
8fe6c68e | 165 | |
078e7ce4 | 166 | %post -p /sbin/ldconfig |
ef826307 | 167 | %postun -p /sbin/ldconfig |
94b8580b | 168 | |
9e6e4167 | 169 | %files -f %{name}.lang |
aa3775f0 | 170 | %defattr(644,root,root,755) |
396d97fd | 171 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README RELEASE |
e3c412c9 JB |
172 | %attr(755,root,root) %{_bindir}/gst-inspect-1.0 |
173 | %attr(755,root,root) %{_bindir}/gst-launch-1.0 | |
3dcbbc36 | 174 | %attr(755,root,root) %{_bindir}/gst-stats-1.0 |
e3c412c9 | 175 | %attr(755,root,root) %{_bindir}/gst-typefind-1.0 |
c44ba6d0 ŁK |
176 | %attr(755,root,root) %{_libdir}/libgstbase-%{vmajor}.so.*.*.* |
177 | %attr(755,root,root) %ghost %{_libdir}/libgstbase-%{vmajor}.so.0 | |
178 | %attr(755,root,root) %{_libdir}/libgstcheck-%{vmajor}.so.*.*.* | |
179 | %attr(755,root,root) %ghost %{_libdir}/libgstcheck-%{vmajor}.so.0 | |
180 | %attr(755,root,root) %{_libdir}/libgstcontroller-%{vmajor}.so.*.*.* | |
181 | %attr(755,root,root) %ghost %{_libdir}/libgstcontroller-%{vmajor}.so.0 | |
182 | %attr(755,root,root) %{_libdir}/libgstnet-%{vmajor}.so.*.*.* | |
183 | %attr(755,root,root) %ghost %{_libdir}/libgstnet-%{vmajor}.so.0 | |
184 | %attr(755,root,root) %{_libdir}/libgstreamer-%{vmajor}.so.*.*.* | |
185 | %attr(755,root,root) %ghost %{_libdir}/libgstreamer-%{vmajor}.so.0 | |
7b283813 | 186 | %dir %{_gstlibdir} |
87b5d78a | 187 | %attr(755,root,root) %{_gstlibdir}/gst-plugin-scanner |
b68c95f7 | 188 | %attr(755,root,root) %{_gstlibdir}/gst-ptp-helper |
774fa34b | 189 | %attr(755,root,root) %{_gstlibdir}/libgstcoreelements.so |
3dcbbc36 | 190 | %attr(755,root,root) %{_gstlibdir}/libgstcoretracers.so |
e3c412c9 JB |
191 | %{_mandir}/man1/gst-inspect-1.0.1* |
192 | %{_mandir}/man1/gst-launch-1.0.1* | |
193 | %{_mandir}/man1/gst-typefind-1.0.1* | |
c44ba6d0 ŁK |
194 | %{_libdir}/girepository-1.0/Gst-%{vmajor}.typelib |
195 | %{_libdir}/girepository-1.0/GstBase-%{vmajor}.typelib | |
196 | %{_libdir}/girepository-1.0/GstCheck-%{vmajor}.typelib | |
197 | %{_libdir}/girepository-1.0/GstController-%{vmajor}.typelib | |
198 | %{_libdir}/girepository-1.0/GstNet-%{vmajor}.typelib | |
8fe6c68e | 199 | |
200 | %files devel | |
aa3775f0 | 201 | %defattr(644,root,root,755) |
c44ba6d0 ŁK |
202 | %attr(755,root,root) %{_libdir}/libgstbase-%{vmajor}.so |
203 | %attr(755,root,root) %{_libdir}/libgstcheck-%{vmajor}.so | |
204 | %attr(755,root,root) %{_libdir}/libgstcontroller-%{vmajor}.so | |
205 | %attr(755,root,root) %{_libdir}/libgstnet-%{vmajor}.so | |
206 | %attr(755,root,root) %{_libdir}/libgstreamer-%{vmajor}.so | |
66c5307a | 207 | %{_docdir}/%{name}-devel-%{version} |
c6416cbe | 208 | %{_gstincludedir} |
b68c95f7 | 209 | %{_gstlibdir}/include |
c44ba6d0 ŁK |
210 | %{_pkgconfigdir}/gstreamer-%{vmajor}.pc |
211 | %{_pkgconfigdir}/gstreamer-base-%{vmajor}.pc | |
212 | %{_pkgconfigdir}/gstreamer-check-%{vmajor}.pc | |
213 | %{_pkgconfigdir}/gstreamer-controller-%{vmajor}.pc | |
214 | %{_pkgconfigdir}/gstreamer-net-%{vmajor}.pc | |
215 | %{_aclocaldir}/gst-element-check-%{vmajor}.m4 | |
c44ba6d0 ŁK |
216 | %{_datadir}/gir-1.0/Gst-%{vmajor}.gir |
217 | %{_datadir}/gir-1.0/GstBase-%{vmajor}.gir | |
218 | %{_datadir}/gir-1.0/GstCheck-%{vmajor}.gir | |
219 | %{_datadir}/gir-1.0/GstController-%{vmajor}.gir | |
220 | %{_datadir}/gir-1.0/GstNet-%{vmajor}.gir | |
ef826307 JB |
221 | |
222 | %files static | |
223 | %defattr(644,root,root,755) | |
c44ba6d0 ŁK |
224 | %{_libdir}/libgstbase-%{vmajor}.a |
225 | %{_libdir}/libgstcheck-%{vmajor}.a | |
226 | %{_libdir}/libgstcontroller-%{vmajor}.a | |
227 | %{_libdir}/libgstnet-%{vmajor}.a | |
228 | %{_libdir}/libgstreamer-%{vmajor}.a | |
078e7ce4 | 229 | |
230 | %files apidocs | |
231 | %defattr(644,root,root,755) | |
c44ba6d0 ŁK |
232 | %{_gtkdocdir}/gstreamer-%{vmajor} |
233 | %{_gtkdocdir}/gstreamer-libs-%{vmajor} | |
234 | %{_gtkdocdir}/gstreamer-plugins-%{vmajor} | |
b68c95f7 JB |
235 | |
236 | %files -n bash-completion-gstreamer | |
237 | %defattr(644,root,root,755) | |
3dcbbc36 ŁK |
238 | %{bash_compdir}/gst-inspect-1.0 |
239 | %{bash_compdir}/gst-launch-1.0 | |
b68c95f7 JB |
240 | %attr(755,root,root) %{_datadir}/bash-completion/helpers/gst |
241 | %attr(755,root,root) %{_datadir}/bash-completion/helpers/gst-completion-helper-1.0 |