1 # TODO: -devel and Qt*Declarative-* packages conflict with gstreamer0.10 equivalents
4 %bcond_without qt4 # Qt 4 libraries
5 %bcond_without qt5 # Qt 5 libraries
7 Summary: QtGStreamer - libraries integrating Qt 4 with GStreamer
8 Summary(pl.UTF-8): QtGStreamer - biblioteki integrujące Qt 4 z GStreamerem
14 Source0: http://gstreamer.freedesktop.org/src/qt-gstreamer/%{name}-%{version}.tar.xz
15 # Source0-md5: fd794045a828c184acc1794b08a463fd
16 URL: http://gstreamer.net/
17 BuildRequires: OpenGL-devel
19 BuildRequires: boost-devel >= 1.39
20 BuildRequires: cmake >= 2.8.9
21 BuildRequires: doxygen
23 BuildRequires: glib2-devel >= 2.0
24 BuildRequires: gstreamer-devel >= 1.0.0
25 BuildRequires: gstreamer-plugins-base-devel >= 1.0.0
26 BuildRequires: libstdc++-devel >= 6:4.5
27 BuildRequires: pkgconfig
28 BuildRequires: tar >= 1:1.22
31 BuildRequires: QtCore-devel >= 4.7
32 BuildRequires: QtDeclarative-devel >= 4.7
33 BuildRequires: QtGui-devel >= 4.7
34 BuildRequires: QtOpenGL-devel >= 4.7
35 BuildRequires: QtTest-devel >= 4.7
36 BuildRequires: qt4-qmake >= 4.7
39 BuildRequires: Qt5Core-devel >= 5.0.0
40 BuildRequires: Qt5Declarative-devel >= 5.0.0
41 BuildRequires: Qt5Gui-devel >= 5.0.0
42 BuildRequires: Qt5OpenGL-devel >= 5.0.0
43 BuildRequires: Qt5Qml-devel >= 5.0.0
44 BuildRequires: Qt5Quick-devel >= 5.0.0
45 BuildRequires: Qt5Widgets-devel >= 5.0.0
46 BuildRequires: Qt5Test-devel >= 5.0.0
47 BuildRequires: qt5-qmake >= 5.0.0
49 Requires: QtCore >= 4.7
50 Requires: QtGui >= 4.7
51 Requires: QtOpenGL >= 4.7
52 Requires: gstreamer >= 1.0.0
53 Requires: gstreamer-plugins-base >= 1.0.0
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57 QtGStreamer is a set of libraries and plugins providing C++ bindings
58 for GStreamer with a Qt-style API plus some helper classes for
59 integrating GStreamer better in Qt 4 applications.
61 Currently, it consists of the following parts:
62 * QtGLib - library providing C++/Qt 4 bindings for parts of the GLib
63 and GObject APIs, a base on which QtGStreamer is built.
64 * QtGStreamer - library providing C++/Qt 4 bindings for GStreamer
65 * QtGStreamerUi - library providing integration with QtGui;
66 currently, it only provides a video widget that embeds GStreamer's
68 * QtGStreamerUtils - library providing some high level utility
71 In addition, it provides a "qwidgetvideosink" GStreamer element, an
72 video sink element that can draw directly on QWidgets using QPainter.
74 %description -l pl.UTF-8
75 QtGStreamer to zestaw bibliotek i wtyczek z wiązaniami C++ do
76 GStreamera o API w stylu Qt oraz klasami pomocniczymi dla lepszej
77 integracji GStreamera w aplikacjach Qt 4.
79 Obecnie zawiera następujące części:
80 - QtGLib - biblioteka z wiązaniami C++/Qt 4 dla części API bibliotek
81 GLib i GObject; w oparciu o nią zbudowany jest QtGStreamer
82 - QtGStreamer - biblioteka z wiązaniami C++/Qt 4 do GStreamera
83 - QtGStreamerUi - biblioteka integrująca z QtGui; obecnie zawiera
84 tylko widget wideo osadzający wyjście obrazu (videosink) GStremera.
85 - QtGStreamerUtils - biblioteka udostępniająca klasy narzędziowe
88 Ponadto pakiet udostępnia element GStreamera "qwidgetvideosink" -
89 element wyjściowy obrazu rysujący bezpośrednio na QWidgetach przy
93 Summary: Header files for QtGStreamer libraries
94 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek QtGStreamer
95 Group: Development/Libraries
96 Requires: %{name} = %{version}-%{release}
97 Requires: QtCore-devel >= 4.7
98 Requires: QtGui-devel >= 4.7
99 Requires: gstreamer-devel >= 1.0.0
100 Requires: gstreamer-plugins-base-devel >= 1.0.0
103 Header files for QtGStreamer libraries.
105 %description devel -l pl.UTF-8
106 Pliki nagłówkowe bibliotek QtGStreamer.
108 %package -n QtDeclarative-plugin-gstreamer
109 Summary: Qt GStreamer plugin for QtDeclarative
110 Summary(pl.UTF-8): Wtyczka Qt GStreamer dla QtDeclarative
112 Requires: %{name} = %{version}-%{release}
113 Requires: QtDeclarative >= 4.7
115 %description -n QtDeclarative-plugin-gstreamer
116 Qt GStreamer plugin for QtDeclarative.
118 %description -n QtDeclarative-plugin-gstreamer -l pl.UTF-8
119 Wtyczka Qt GStreamer dla QtDeclarative.
121 %package -n qt5-gstreamer
122 Summary: Qt5GStreamer - libraries integrating Qt 5 with GStreamer
123 Summary(pl.UTF-8): Qt5GStreamer - biblioteki integrujące Qt 5 z GStreamerem
125 Requires: Qt5Core >= 5.0.0
126 Requires: Qt5Gui >= 5.0.0
127 Requires: Qt5OpenGL >= 5.0.0
128 Requires: Qt5Quick >= 5.0.0
129 Requires: Qt5Widgets >= 5.0.0
130 Requires: gstreamer >= 1.0.0
131 Requires: gstreamer-plugins-base >= 1.0.0
133 %description -n qt5-gstreamer
134 Qt5GStreamer is a set of libraries and plugins providing C++ bindings
135 for GStreamer with a Qt-style API plus some helper classes for
136 integrating GStreamer better in Qt 5 applications.
138 Currently, it consists of the following parts:
139 * Qt5GLib - library providing C++/Qt 5 bindings for parts of the GLib
140 and GObject APIs, a base on which Qt5GStreamer is built.
141 * Qt5GStreamer - library providing C++/Qt 5 bindings for GStreamer
142 * Qt5GStreamerUi - library providing integration with Qt5Gui;
143 currently, it only provides a video widget that embeds GStreamer's
145 * Qt5GStreamerUtils - library providing some high level utility
148 In addition, it provides a "qwidgetvideosink" GStreamer element, an
149 video sink element that can draw directly on QWidgets using QPainter.
151 %description -n qt5-gstreamer -l pl.UTF-8
152 Qt5GStreamer to zestaw bibliotek i wtyczek z wiązaniami C++ do
153 GStreamera o API w stylu Qt oraz klasami pomocniczymi dla lepszej
154 integracji GStreamera w aplikacjach Qt 5.
156 Obecnie zawiera następujące części:
157 - Qt5GLib - biblioteka z wiązaniami C++/Qt 5 dla części API bibliotek
158 GLib i GObject; w oparciu o nią zbudowany jest QtGStreamer
159 - Qt5GStreamer - biblioteka z wiązaniami C++/Qt 5 do GStreamera
160 - Qt5GStreamerUi - biblioteka integrująca z Qt5Gui; obecnie zawiera
161 tylko widget wideo osadzający wyjście obrazu (videosink) GStremera.
162 - QtGStreamerUtils - biblioteka udostępniająca klasy narzędziowe
165 Ponadto pakiet udostępnia element GStreamera "qwidgetvideosink" -
166 element wyjściowy obrazu rysujący bezpośrednio na QWidgetach przy
169 %package -n qt5-gstreamer-devel
170 Summary: Header files for Qt5GStreamer libraries
171 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek QtGStreamer
172 Group: Development/Libraries
173 Requires: %{name} = %{version}-%{release}
174 Requires: Qt5Core-devel >= 5.0.0
175 Requires: Qt5Gui-devel >= 5.0.0
176 Requires: Qt5Quick-devel >= 5.0.0
177 Requires: Qt5Widgets-devel >= 5.0.0
178 Requires: gstreamer-devel >= 1.0.0
179 Requires: gstreamer-plugins-base-devel >= 1.0.0
181 %description -n qt5-gstreamer-devel
182 Header files for Qt5GStreamer libraries.
184 %description -n qt5-gstreamer-devel -l pl.UTF-8
185 Pliki nagłówkowe bibliotek Qt5GStreamer.
187 %package -n Qt5Declarative-plugin-gstreamer
188 Summary: Qt GStreamer plugin for Qt5Declarative (Quick1)
189 Summary(pl.UTF-8): Wtyczka Qt GStreamer dla Qt5Declarative (Quick1)
191 Requires: %{name} = %{version}-%{release}
192 Requires: Qt5Declarative >= 5.0.0
194 %description -n Qt5Declarative-plugin-gstreamer
195 Qt GStreamer plugin for Qt5Declarative (Quick1).
197 %description -n Qt5Declarative-plugin-gstreamer -l pl.UTF-8
198 Wtyczka Qt GStreamer dla Qt5Declarative (Quick1).
200 %package -n Qt5Qml-plugin-gstreamer
201 Summary: Qt GStreamer plugin for Qt5Qml (Quick2)
202 Summary(pl.UTF-8): Wtyczka Qt GStreamer dla Qt5Qml (Quick2)
204 Requires: %{name} = %{version}-%{release}
205 Requires: Qt5Qml >= 5.0.0
206 Requires: Qt5Quick >= 5.0.0
208 %description -n Qt5Qml-plugin-gstreamer
209 Qt GStreamer plugin for Qt5Qml (Quick2).
211 %description -n Qt5Qml-plugin-gstreamer -l pl.UTF-8
212 Wtyczka Qt GStreamer dla Qt5Qml (Quick2).
222 -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
223 -DQTGSTREAMER_EXAMPLES=OFF \
224 -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4
233 -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
234 -DQTGSTREAMER_EXAMPLES=OFF \
235 -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt5 \
242 rm -rf $RPM_BUILD_ROOT
245 %{__make} -C build-qt4 install \
246 DESTDIR=$RPM_BUILD_ROOT
250 %{__make} -C build-qt5 install \
251 DESTDIR=$RPM_BUILD_ROOT
255 rm -rf $RPM_BUILD_ROOT
257 %post -p /sbin/ldconfig
258 %postun -p /sbin/ldconfig
260 %post -n qt5-gstreamer -p /sbin/ldconfig
261 %postun -n qt5-gstreamer -p /sbin/ldconfig
265 %defattr(644,root,root,755)
267 %attr(755,root,root) %{_libdir}/libQtGLib-2.0.so.*.*.*
268 %attr(755,root,root) %ghost %{_libdir}/libQtGLib-2.0.so.0
269 %attr(755,root,root) %{_libdir}/libQtGStreamer-1.0.so.*.*.*
270 %attr(755,root,root) %ghost %{_libdir}/libQtGStreamer-1.0.so.0
271 %attr(755,root,root) %{_libdir}/libQtGStreamerUi-1.0.so.*.*.*
272 %attr(755,root,root) %ghost %{_libdir}/libQtGStreamerUi-1.0.so.0
273 %attr(755,root,root) %{_libdir}/libQtGStreamerUtils-1.0.so.*.*.*
274 %attr(755,root,root) %ghost %{_libdir}/libQtGStreamerUtils-1.0.so.0
275 %attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstqtvideosink.so
278 %defattr(644,root,root,755)
279 %attr(755,root,root) %{_libdir}/libQtGLib-2.0.so
280 %attr(755,root,root) %{_libdir}/libQtGStreamer-1.0.so
281 %attr(755,root,root) %{_libdir}/libQtGStreamerUi-1.0.so
282 %attr(755,root,root) %{_libdir}/libQtGStreamerUtils-1.0.so
283 %{_includedir}/QtGStreamer
284 %{_pkgconfigdir}/QtGLib-2.0.pc
285 %{_pkgconfigdir}/QtGStreamer-1.0.pc
286 %{_pkgconfigdir}/QtGStreamerUi-1.0.pc
287 %{_pkgconfigdir}/QtGStreamerUtils-1.0.pc
288 %{_libdir}/cmake/QtGStreamer
290 %files -n QtDeclarative-plugin-gstreamer
291 %defattr(644,root,root,755)
292 %dir %{_libdir}/qt4/imports/QtGStreamer
293 %attr(755,root,root) %{_libdir}/qt4/imports/QtGStreamer/libQtGStreamerQuick1.so
294 %{_libdir}/qt4/imports/QtGStreamer/qmldir
298 %files -n qt5-gstreamer
299 %defattr(644,root,root,755)
301 %attr(755,root,root) %{_libdir}/libQt5GLib-2.0.so.*.*.*
302 %attr(755,root,root) %ghost %{_libdir}/libQt5GLib-2.0.so.0
303 %attr(755,root,root) %{_libdir}/libQt5GStreamer-1.0.so.*.*.*
304 %attr(755,root,root) %ghost %{_libdir}/libQt5GStreamer-1.0.so.0
305 %attr(755,root,root) %{_libdir}/libQt5GStreamerQuick-1.0.so.*.*.*
306 %attr(755,root,root) %ghost %{_libdir}/libQt5GStreamerQuick-1.0.so.0
307 %attr(755,root,root) %{_libdir}/libQt5GStreamerUi-1.0.so.*.*.*
308 %attr(755,root,root) %ghost %{_libdir}/libQt5GStreamerUi-1.0.so.0
309 %attr(755,root,root) %{_libdir}/libQt5GStreamerUtils-1.0.so.*.*.*
310 %attr(755,root,root) %ghost %{_libdir}/libQt5GStreamerUtils-1.0.so.0
311 %attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstqt5videosink.so
313 %files -n qt5-gstreamer-devel
314 %defattr(644,root,root,755)
315 %attr(755,root,root) %{_libdir}/libQt5GLib-2.0.so
316 %attr(755,root,root) %{_libdir}/libQt5GStreamer-1.0.so
317 %attr(755,root,root) %{_libdir}/libQt5GStreamerQuick-1.0.so
318 %attr(755,root,root) %{_libdir}/libQt5GStreamerUi-1.0.so
319 %attr(755,root,root) %{_libdir}/libQt5GStreamerUtils-1.0.so
320 %{_includedir}/Qt5GStreamer
321 %{_pkgconfigdir}/Qt5GLib-2.0.pc
322 %{_pkgconfigdir}/Qt5GStreamer-1.0.pc
323 %{_pkgconfigdir}/Qt5GStreamerQuick-1.0.pc
324 %{_pkgconfigdir}/Qt5GStreamerUi-1.0.pc
325 %{_pkgconfigdir}/Qt5GStreamerUtils-1.0.pc
326 %{_libdir}/cmake/Qt5GStreamer
328 %files -n Qt5Declarative-plugin-gstreamer
329 %defattr(644,root,root,755)
330 %dir %{_libdir}/qt5/imports/QtGStreamer
331 %attr(755,root,root) %{_libdir}/qt5/imports/QtGStreamer/libQtGStreamerQuick1.so
332 %{_libdir}/qt5/imports/QtGStreamer/qmldir
334 %files -n Qt5Qml-plugin-gstreamer
335 %defattr(644,root,root,755)
336 %dir %{_libdir}/qt5/qml/QtGStreamer
337 %attr(755,root,root) %{_libdir}/qt5/qml/QtGStreamer/libQtGStreamerQuick2.so
338 %{_libdir}/qt5/qml/QtGStreamer/qmldir