1 # NOTE: copy package to qt-gstreamer0.10 before updating to 1.0.x (when available)
2 # TODO: finish Qt5 packages (Quick1/QtDeclarative?)
5 %bcond_without qt4 # Qt 4 libraries
6 %bcond_without qt5 # Qt 5 libraries
8 Summary: QtGStreamer - libraries integrating Qt 4 with GStreamer
9 Summary(pl.UTF-8): QtGStreamer - biblioteki integrujące Qt 4 z GStreamerem
15 Source0: http://gstreamer.freedesktop.org/src/qt-gstreamer/%{name}-%{version}.tar.bz2
16 # Source0-md5: 1dfbca4ffa924b0896dadb42221600e2
17 URL: http://gstreamer.net/
18 BuildRequires: OpenGL-devel
20 BuildRequires: boost-devel >= 1.39
21 BuildRequires: cmake >= 2.8.9
23 BuildRequires: glib2-devel >= 2.0
24 BuildRequires: gstreamer0.10-devel >= 0.10.33
25 BuildRequires: gstreamer0.10-plugins-base-devel >= 0.10.33
26 BuildRequires: libstdc++-devel >= 6:4.5
27 BuildRequires: pkgconfig
29 BuildRequires: QtCore-devel >= 4.7
30 BuildRequires: QtDeclarative-devel >= 4.7
31 BuildRequires: QtGui-devel >= 4.7
32 BuildRequires: QtOpenGL-devel >= 4.7
33 BuildRequires: QtTest-devel >= 4.7
34 BuildRequires: qt4-qmake >= 4.7
37 BuildRequires: Qt5Core-devel >= 5.0.0
39 #BuildRequires: Qt5Declarative-devel >= 5.0.0
40 #BuildRequires: Qt5Quick1-devel >= 5.0.0
41 BuildRequires: Qt5Gui-devel >= 5.0.0
42 BuildRequires: Qt5OpenGL-devel >= 5.0.0
43 BuildRequires: Qt5Widgets-devel >= 5.0.0
44 BuildRequires: Qt5Test-devel >= 5.0.0
45 BuildRequires: qt5-qmake >= 5.0.0
47 Requires: QtCore >= 4.7
48 Requires: QtGui >= 4.7
49 Requires: QtOpenGL >= 4.7
50 Requires: gstreamer0.10 >= 0.10.33
51 Requires: gstreamer0.10-plugins-base >= 0.10.33
52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55 QtGStreamer is a set of libraries and plugins providing C++ bindings
56 for GStreamer with a Qt-style API plus some helper classes for
57 integrating GStreamer better in Qt 4 applications.
59 Currently, it consists of the following parts:
60 * QtGLib - library providing C++/Qt 4 bindings for parts of the GLib
61 and GObject APIs, a base on which QtGStreamer is built.
62 * QtGStreamer - library providing C++/Qt 4 bindings for GStreamer
63 * QtGStreamerUi - library providing integration with QtGui;
64 currently, it only provides a video widget that embeds GStreamer's
66 * QtGStreamerUtils - library providing some high level utility
69 In addition, it provides a "qwidgetvideosink" GStreamer element, an
70 video sink element that can draw directly on QWidgets using QPainter.
72 %description -l pl.UTF-8
73 QtGStreamer to zestaw bibliotek i wtyczek z wiązaniami C++ do
74 GStreamera o API w stylu Qt oraz klasami pomocniczymi dla lepszej
75 integracji GStreamera w aplikacjach Qt 4.
77 Obecnie zawiera następujące części:
78 - QtGLib - biblioteka z wiązaniami C++/Qt 4 dla części API bibliotek
79 GLib i GObject; w oparciu o nią zbudowany jest QtGStreamer
80 - QtGStreamer - biblioteka z wiązaniami C++/Qt 4 do GStreamera
81 - QtGStreamerUi - biblioteka integrująca z QtGui; obecnie zawiera
82 tylko widget wideo osadzający wyjście obrazu (videosink) GStremera.
83 - QtGStreamerUtils - biblioteka udostępniająca klasy narzędziowe
86 Ponadto pakiet udostępnia element GStreamera "qwidgetvideosink" -
87 element wyjściowy obrazu rysujący bezpośrednio na QWidgetach przy
91 Summary: Header files for QtGStreamer libraries
92 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek QtGStreamer
93 Group: Development/Libraries
94 Requires: %{name} = %{version}-%{release}
95 Requires: QtCore-devel >= 4.7
96 Requires: QtGui-devel >= 4.7
97 Requires: gstreamer0.10-devel >= 0.10.33
98 Requires: gstreamer0.10-plugins-base-devel >= 0.10.33
101 Header files for QtGStreamer libraries.
103 %description devel -l pl.UTF-8
104 Pliki nagłówkowe bibliotek QtGStreamer.
106 %package -n QtDeclarative-plugin-gstreamer
107 Summary: Qt GStreamer plugin for QtDeclarative
108 Summary(pl.UTF-8): Wtyczka Qt GStreamer dla QtDeclarative
110 Requires: %{name} = %{version}-%{release}
111 Requires: QtDeclarative >= 4.7
113 %description -n QtDeclarative-plugin-gstreamer
114 Qt GStreamer plugin for QtDeclarative.
116 %description -n QtDeclarative-plugin-gstreamer -l pl.UTF-8
117 Wtyczka Qt GStreamer dla QtDeclarative.
119 %package -n qt5-gstreamer
120 Summary: Qt5GStreamer - libraries integrating Qt 5 with GStreamer
121 Summary(pl.UTF-8): Qt5GStreamer - biblioteki integrujące Qt 5 z GStreamerem
123 Requires: Qt5Core >= 5.0.0
124 Requires: Qt5Gui >= 5.0.0
125 Requires: Qt5OpenGL >= 5.0.0
126 Requires: gstreamer0.10 >= 0.10.33
127 Requires: gstreamer0.10-plugins-base >= 0.10.33
129 %description -n qt5-gstreamer
130 Qt5GStreamer is a set of libraries and plugins providing C++ bindings
131 for GStreamer with a Qt-style API plus some helper classes for
132 integrating GStreamer better in Qt 5 applications.
134 Currently, it consists of the following parts:
135 * Qt5GLib - library providing C++/Qt 5 bindings for parts of the GLib
136 and GObject APIs, a base on which Qt5GStreamer is built.
137 * Qt5GStreamer - library providing C++/Qt 5 bindings for GStreamer
138 * Qt5GStreamerUi - library providing integration with Qt5Gui;
139 currently, it only provides a video widget that embeds GStreamer's
141 * Qt5GStreamerUtils - library providing some high level utility
144 In addition, it provides a "qwidgetvideosink" GStreamer element, an
145 video sink element that can draw directly on QWidgets using QPainter.
147 %description -n qt5-gstreamer -l pl.UTF-8
148 Qt5GStreamer to zestaw bibliotek i wtyczek z wiązaniami C++ do
149 GStreamera o API w stylu Qt oraz klasami pomocniczymi dla lepszej
150 integracji GStreamera w aplikacjach Qt 5.
152 Obecnie zawiera następujące części:
153 - Qt5GLib - biblioteka z wiązaniami C++/Qt 5 dla części API bibliotek
154 GLib i GObject; w oparciu o nią zbudowany jest QtGStreamer
155 - Qt5GStreamer - biblioteka z wiązaniami C++/Qt 5 do GStreamera
156 - Qt5GStreamerUi - biblioteka integrująca z Qt5Gui; obecnie zawiera
157 tylko widget wideo osadzający wyjście obrazu (videosink) GStremera.
158 - QtGStreamerUtils - biblioteka udostępniająca klasy narzędziowe
161 Ponadto pakiet udostępnia element GStreamera "qwidgetvideosink" -
162 element wyjściowy obrazu rysujący bezpośrednio na QWidgetach przy
165 %package -n qt5-gstreamer-devel
166 Summary: Header files for Qt5GStreamer libraries
167 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek QtGStreamer
168 Group: Development/Libraries
169 Requires: %{name} = %{version}-%{release}
170 Requires: Qt5Core-devel >= 5.0.0
171 Requires: Qt5Gui-devel >= 5.0.0
172 Requires: gstreamer0.10-devel >= 0.10.33
173 Requires: gstreamer0.10-plugins-base-devel >= 0.10.33
175 %description -n qt5-gstreamer-devel
176 Header files for Qt5GStreamer libraries.
178 %description -n qt5-gstreamer-devel -l pl.UTF-8
179 Pliki nagłówkowe bibliotek Qt5GStreamer.
189 -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
190 -DQTGSTREAMER_EXAMPLES=OFF \
191 -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4
200 -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
201 -DQTGSTREAMER_EXAMPLES=OFF \
202 -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt5 \
209 rm -rf $RPM_BUILD_ROOT
212 %{__make} -C build-qt4 install \
213 DESTDIR=$RPM_BUILD_ROOT
217 %{__make} -C build-qt5 install \
218 DESTDIR=$RPM_BUILD_ROOT
222 rm -rf $RPM_BUILD_ROOT
224 %post -p /sbin/ldconfig
225 %postun -p /sbin/ldconfig
227 %post -n qt5-gstreamer -p /sbin/ldconfig
228 %postun -n qt5-gstreamer -p /sbin/ldconfig
232 %defattr(644,root,root,755)
234 %attr(755,root,root) %{_libdir}/libQtGLib-2.0.so.*.*.*
235 %attr(755,root,root) %ghost %{_libdir}/libQtGLib-2.0.so.0
236 %attr(755,root,root) %{_libdir}/libQtGStreamer-0.10.so.*.*.*
237 %attr(755,root,root) %ghost %{_libdir}/libQtGStreamer-0.10.so.0
238 %attr(755,root,root) %{_libdir}/libQtGStreamerUi-0.10.so.*.*.*
239 %attr(755,root,root) %ghost %{_libdir}/libQtGStreamerUi-0.10.so.0
240 %attr(755,root,root) %{_libdir}/libQtGStreamerUtils-0.10.so.*.*.*
241 %attr(755,root,root) %ghost %{_libdir}/libQtGStreamerUtils-0.10.so.0
242 %attr(755,root,root) %{_libdir}/gstreamer-0.10/libgstqtvideosink.so
245 %defattr(644,root,root,755)
246 %attr(755,root,root) %{_libdir}/libQtGLib-2.0.so
247 %attr(755,root,root) %{_libdir}/libQtGStreamer-0.10.so
248 %attr(755,root,root) %{_libdir}/libQtGStreamerUi-0.10.so
249 %attr(755,root,root) %{_libdir}/libQtGStreamerUtils-0.10.so
250 %{_includedir}/QtGStreamer
251 %{_pkgconfigdir}/QtGLib-2.0.pc
252 %{_pkgconfigdir}/QtGStreamer-0.10.pc
253 %{_pkgconfigdir}/QtGStreamerUi-0.10.pc
254 %{_pkgconfigdir}/QtGStreamerUtils-0.10.pc
255 %{_libdir}/cmake/QtGStreamer
257 %files -n QtDeclarative-plugin-gstreamer
258 %defattr(644,root,root,755)
259 %dir %{_libdir}/qt4/imports/QtGStreamer
260 %attr(755,root,root) %{_libdir}/qt4/imports/QtGStreamer/libQtGStreamerQuick1.so
261 %{_libdir}/qt4/imports/QtGStreamer/qmldir
265 %files -n qt5-gstreamer
266 %defattr(644,root,root,755)
268 %attr(755,root,root) %{_libdir}/libQt5GLib-2.0.so.*.*.*
269 %attr(755,root,root) %ghost %{_libdir}/libQt5GLib-2.0.so.0
270 %attr(755,root,root) %{_libdir}/libQt5GStreamer-0.10.so.*.*.*
271 %attr(755,root,root) %ghost %{_libdir}/libQt5GStreamer-0.10.so.0
272 %attr(755,root,root) %{_libdir}/libQt5GStreamerUi-0.10.so.*.*.*
273 %attr(755,root,root) %ghost %{_libdir}/libQt5GStreamerUi-0.10.so.0
274 %attr(755,root,root) %{_libdir}/libQt5GStreamerUtils-0.10.so.*.*.*
275 %attr(755,root,root) %ghost %{_libdir}/libQt5GStreamerUtils-0.10.so.0
276 %attr(755,root,root) %{_libdir}/gstreamer-0.10/libgstqt5videosink.so
278 %files -n qt5-gstreamer-devel
279 %defattr(644,root,root,755)
280 %attr(755,root,root) %{_libdir}/libQt5GLib-2.0.so
281 %attr(755,root,root) %{_libdir}/libQt5GStreamer-0.10.so
282 %attr(755,root,root) %{_libdir}/libQt5GStreamerUi-0.10.so
283 %attr(755,root,root) %{_libdir}/libQt5GStreamerUtils-0.10.so
284 %{_includedir}/Qt5GStreamer
285 %{_pkgconfigdir}/Qt5GLib-2.0.pc
286 %{_pkgconfigdir}/Qt5GStreamer-0.10.pc
287 %{_pkgconfigdir}/Qt5GStreamerUi-0.10.pc
288 %{_pkgconfigdir}/Qt5GStreamerUtils-0.10.pc
289 %{_libdir}/cmake/Qt5GStreamer