]> git.pld-linux.org Git - packages/qt-gstreamer.git/blame - qt-gstreamer.spec
- updated to 1.1.90 (rc1 for gstreamer 1.x)
[packages/qt-gstreamer.git] / qt-gstreamer.spec
CommitLineData
2ed4d46e 1# TODO: -devel and Qt*Declarative-* packages conflict with gstreamer0.10 equivalents
ba518b99
JB
2#
3# Conditional build:
4%bcond_without qt4 # Qt 4 libraries
5%bcond_without qt5 # Qt 5 libraries
6#
7Summary: QtGStreamer - libraries integrating Qt 4 with GStreamer
8Summary(pl.UTF-8): QtGStreamer - biblioteki integrujące Qt 4 z GStreamerem
3b311080 9Name: qt-gstreamer
2ed4d46e 10Version: 1.1.90
3b311080
JB
11Release: 1
12License: LGPL v2+
13Group: Libraries
2ed4d46e
JB
14Source0: http://gstreamer.freedesktop.org/src/qt-gstreamer/%{name}-%{version}.tar.xz
15# Source0-md5: b6b7f9f905d83d4fc0da2f5cafd284d5
3b311080 16URL: http://gstreamer.net/
a8f475c6 17BuildRequires: OpenGL-devel
3b311080 18BuildRequires: bison
f6eae54a 19BuildRequires: boost-devel >= 1.39
40f731f5 20BuildRequires: cmake >= 2.8.9
2ed4d46e 21BuildRequires: doxygen
3b311080 22BuildRequires: flex
a8f475c6 23BuildRequires: glib2-devel >= 2.0
2ed4d46e
JB
24BuildRequires: gstreamer-devel >= 1.0.0
25BuildRequires: gstreamer-plugins-base-devel >= 1.0.0
3b311080
JB
26BuildRequires: libstdc++-devel >= 6:4.5
27BuildRequires: pkgconfig
2ed4d46e
JB
28BuildRequires: tar >= 1:1.22
29BuildRequires: xz
ba518b99
JB
30%if %{with qt4}
31BuildRequires: QtCore-devel >= 4.7
32BuildRequires: QtDeclarative-devel >= 4.7
33BuildRequires: QtGui-devel >= 4.7
34BuildRequires: QtOpenGL-devel >= 4.7
35BuildRequires: QtTest-devel >= 4.7
a8f475c6 36BuildRequires: qt4-qmake >= 4.7
ba518b99
JB
37%endif
38%if %{with qt5}
39BuildRequires: Qt5Core-devel >= 5.0.0
d431bec6 40BuildRequires: Qt5Declarative-devel >= 5.0.0
ba518b99
JB
41BuildRequires: Qt5Gui-devel >= 5.0.0
42BuildRequires: Qt5OpenGL-devel >= 5.0.0
2ed4d46e
JB
43BuildRequires: Qt5Qml-devel >= 5.0.0
44BuildRequires: Qt5Quick-devel >= 5.0.0
ba518b99
JB
45BuildRequires: Qt5Widgets-devel >= 5.0.0
46BuildRequires: Qt5Test-devel >= 5.0.0
47BuildRequires: qt5-qmake >= 5.0.0
48%endif
a8f475c6
JB
49Requires: QtCore >= 4.7
50Requires: QtGui >= 4.7
51Requires: QtOpenGL >= 4.7
2ed4d46e
JB
52Requires: gstreamer >= 1.0.0
53Requires: gstreamer-plugins-base >= 1.0.0
3b311080
JB
54BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55
56%description
57QtGStreamer is a set of libraries and plugins providing C++ bindings
58for GStreamer with a Qt-style API plus some helper classes for
ba518b99 59integrating GStreamer better in Qt 4 applications.
3b311080
JB
60
61Currently, it consists of the following parts:
ba518b99 62 * QtGLib - library providing C++/Qt 4 bindings for parts of the GLib
3b311080 63 and GObject APIs, a base on which QtGStreamer is built.
ba518b99 64 * QtGStreamer - library providing C++/Qt 4 bindings for GStreamer
3b311080
JB
65 * QtGStreamerUi - library providing integration with QtGui;
66 currently, it only provides a video widget that embeds GStreamer's
67 video sinks.
f6eae54a
JB
68 * QtGStreamerUtils - library providing some high level utility
69 classes.
3b311080
JB
70
71In addition, it provides a "qwidgetvideosink" GStreamer element, an
72video sink element that can draw directly on QWidgets using QPainter.
73
74%description -l pl.UTF-8
75QtGStreamer to zestaw bibliotek i wtyczek z wiązaniami C++ do
76GStreamera o API w stylu Qt oraz klasami pomocniczymi dla lepszej
ba518b99 77integracji GStreamera w aplikacjach Qt 4.
3b311080
JB
78
79Obecnie zawiera następujące części:
ba518b99 80 - QtGLib - biblioteka z wiązaniami C++/Qt 4 dla części API bibliotek
3b311080 81 GLib i GObject; w oparciu o nią zbudowany jest QtGStreamer
ba518b99 82 - QtGStreamer - biblioteka z wiązaniami C++/Qt 4 do GStreamera
3b311080
JB
83 - QtGStreamerUi - biblioteka integrująca z QtGui; obecnie zawiera
84 tylko widget wideo osadzający wyjście obrazu (videosink) GStremera.
f6eae54a
JB
85 - QtGStreamerUtils - biblioteka udostępniająca klasy narzędziowe
86 wysokiego poziomu.
3b311080
JB
87
88Ponadto pakiet udostępnia element GStreamera "qwidgetvideosink" -
89element wyjściowy obrazu rysujący bezpośrednio na QWidgetach przy
90użyciu QPaintera.
91
3b311080
JB
92%package devel
93Summary: Header files for QtGStreamer libraries
94Summary(pl.UTF-8): Pliki nagłówkowe bibliotek QtGStreamer
95Group: Development/Libraries
96Requires: %{name} = %{version}-%{release}
a8f475c6
JB
97Requires: QtCore-devel >= 4.7
98Requires: QtGui-devel >= 4.7
2ed4d46e
JB
99Requires: gstreamer-devel >= 1.0.0
100Requires: gstreamer-plugins-base-devel >= 1.0.0
3b311080
JB
101
102%description devel
103Header files for QtGStreamer libraries.
104
105%description devel -l pl.UTF-8
106Pliki nagłówkowe bibliotek QtGStreamer.
107
a8f475c6
JB
108%package -n QtDeclarative-plugin-gstreamer
109Summary: Qt GStreamer plugin for QtDeclarative
110Summary(pl.UTF-8): Wtyczka Qt GStreamer dla QtDeclarative
111Group: Libraries
112Requires: %{name} = %{version}-%{release}
113Requires: QtDeclarative >= 4.7
114
115%description -n QtDeclarative-plugin-gstreamer
116Qt GStreamer plugin for QtDeclarative.
117
118%description -n QtDeclarative-plugin-gstreamer -l pl.UTF-8
119Wtyczka Qt GStreamer dla QtDeclarative.
120
ba518b99
JB
121%package -n qt5-gstreamer
122Summary: Qt5GStreamer - libraries integrating Qt 5 with GStreamer
123Summary(pl.UTF-8): Qt5GStreamer - biblioteki integrujące Qt 5 z GStreamerem
124Group: Libraries
125Requires: Qt5Core >= 5.0.0
126Requires: Qt5Gui >= 5.0.0
127Requires: Qt5OpenGL >= 5.0.0
2ed4d46e
JB
128Requires: Qt5Quick >= 5.0.0
129Requires: Qt5Widgets >= 5.0.0
130Requires: gstreamer >= 1.0.0
131Requires: gstreamer-plugins-base >= 1.0.0
ba518b99
JB
132
133%description -n qt5-gstreamer
134Qt5GStreamer is a set of libraries and plugins providing C++ bindings
135for GStreamer with a Qt-style API plus some helper classes for
136integrating GStreamer better in Qt 5 applications.
137
138Currently, 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
144 video sinks.
145 * Qt5GStreamerUtils - library providing some high level utility
146 classes.
147
148In addition, it provides a "qwidgetvideosink" GStreamer element, an
149video sink element that can draw directly on QWidgets using QPainter.
150
151%description -n qt5-gstreamer -l pl.UTF-8
152Qt5GStreamer to zestaw bibliotek i wtyczek z wiązaniami C++ do
153GStreamera o API w stylu Qt oraz klasami pomocniczymi dla lepszej
154integracji GStreamera w aplikacjach Qt 5.
155
156Obecnie 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
163 wysokiego poziomu.
164
165Ponadto pakiet udostępnia element GStreamera "qwidgetvideosink" -
166element wyjściowy obrazu rysujący bezpośrednio na QWidgetach przy
167użyciu QPaintera.
168
169%package -n qt5-gstreamer-devel
170Summary: Header files for Qt5GStreamer libraries
171Summary(pl.UTF-8): Pliki nagłówkowe bibliotek QtGStreamer
172Group: Development/Libraries
173Requires: %{name} = %{version}-%{release}
174Requires: Qt5Core-devel >= 5.0.0
175Requires: Qt5Gui-devel >= 5.0.0
2ed4d46e
JB
176Requires: Qt5Quick-devel >= 5.0.0
177Requires: Qt5Widgets-devel >= 5.0.0
178Requires: gstreamer-devel >= 1.0.0
179Requires: gstreamer-plugins-base-devel >= 1.0.0
ba518b99
JB
180
181%description -n qt5-gstreamer-devel
182Header files for Qt5GStreamer libraries.
183
184%description -n qt5-gstreamer-devel -l pl.UTF-8
185Pliki nagłówkowe bibliotek Qt5GStreamer.
186
d431bec6 187%package -n Qt5Declarative-plugin-gstreamer
2ed4d46e
JB
188Summary: Qt GStreamer plugin for Qt5Declarative (Quick1)
189Summary(pl.UTF-8): Wtyczka Qt GStreamer dla Qt5Declarative (Quick1)
d431bec6
JB
190Group: Libraries
191Requires: %{name} = %{version}-%{release}
192Requires: Qt5Declarative >= 5.0.0
193
194%description -n Qt5Declarative-plugin-gstreamer
2ed4d46e 195Qt GStreamer plugin for Qt5Declarative (Quick1).
d431bec6
JB
196
197%description -n Qt5Declarative-plugin-gstreamer -l pl.UTF-8
2ed4d46e
JB
198Wtyczka Qt GStreamer dla Qt5Declarative (Quick1).
199
200%package -n Qt5Qml-plugin-gstreamer
201Summary: Qt GStreamer plugin for Qt5Qml (Quick2)
202Summary(pl.UTF-8): Wtyczka Qt GStreamer dla Qt5Qml (Quick2)
203Group: Libraries
204Requires: %{name} = %{version}-%{release}
205Requires: Qt5Qml >= 5.0.0
206Requires: Qt5Quick >= 5.0.0
207
208%description -n Qt5Qml-plugin-gstreamer
209Qt GStreamer plugin for Qt5Qml (Quick2).
210
211%description -n Qt5Qml-plugin-gstreamer -l pl.UTF-8
212Wtyczka Qt GStreamer dla Qt5Qml (Quick2).
d431bec6 213
3b311080
JB
214%prep
215%setup -q
216
217%build
ba518b99
JB
218%if %{with qt4}
219install -d build-qt4
220cd build-qt4
3b311080
JB
221%cmake .. \
222 -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
223 -DQTGSTREAMER_EXAMPLES=OFF \
224 -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4
ba518b99
JB
225%{__make}
226cd ..
227%endif
3b311080 228
ba518b99
JB
229%if %{with qt5}
230install -d build-qt5
231cd build-qt5
232%cmake .. \
233 -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
234 -DQTGSTREAMER_EXAMPLES=OFF \
235 -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt5 \
236 -DQT_VERSION=5
3b311080 237%{__make}
ba518b99
JB
238cd ..
239%endif
3b311080
JB
240
241%install
242rm -rf $RPM_BUILD_ROOT
243
ba518b99
JB
244%if %{with qt4}
245%{__make} -C build-qt4 install \
246 DESTDIR=$RPM_BUILD_ROOT
247%endif
248
249%if %{with qt5}
250%{__make} -C build-qt5 install \
3b311080 251 DESTDIR=$RPM_BUILD_ROOT
ba518b99 252%endif
3b311080
JB
253
254%clean
255rm -rf $RPM_BUILD_ROOT
256
257%post -p /sbin/ldconfig
258%postun -p /sbin/ldconfig
259
ba518b99
JB
260%post -n qt5-gstreamer -p /sbin/ldconfig
261%postun -n qt5-gstreamer -p /sbin/ldconfig
262
263%if %{with qt4}
3b311080
JB
264%files
265%defattr(644,root,root,755)
a8f475c6 266%doc NEWS README
3b311080
JB
267%attr(755,root,root) %{_libdir}/libQtGLib-2.0.so.*.*.*
268%attr(755,root,root) %ghost %{_libdir}/libQtGLib-2.0.so.0
2ed4d46e
JB
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
3b311080
JB
276
277%files devel
278%defattr(644,root,root,755)
279%attr(755,root,root) %{_libdir}/libQtGLib-2.0.so
2ed4d46e
JB
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
3b311080
JB
283%{_includedir}/QtGStreamer
284%{_pkgconfigdir}/QtGLib-2.0.pc
2ed4d46e
JB
285%{_pkgconfigdir}/QtGStreamer-1.0.pc
286%{_pkgconfigdir}/QtGStreamerUi-1.0.pc
287%{_pkgconfigdir}/QtGStreamerUtils-1.0.pc
40f731f5 288%{_libdir}/cmake/QtGStreamer
a8f475c6
JB
289
290%files -n QtDeclarative-plugin-gstreamer
291%defattr(644,root,root,755)
292%dir %{_libdir}/qt4/imports/QtGStreamer
40f731f5 293%attr(755,root,root) %{_libdir}/qt4/imports/QtGStreamer/libQtGStreamerQuick1.so
a8f475c6 294%{_libdir}/qt4/imports/QtGStreamer/qmldir
ba518b99
JB
295%endif
296
297%if %{with qt5}
298%files -n qt5-gstreamer
299%defattr(644,root,root,755)
300%doc NEWS README
301%attr(755,root,root) %{_libdir}/libQt5GLib-2.0.so.*.*.*
302%attr(755,root,root) %ghost %{_libdir}/libQt5GLib-2.0.so.0
2ed4d46e
JB
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
ba518b99
JB
312
313%files -n qt5-gstreamer-devel
314%defattr(644,root,root,755)
315%attr(755,root,root) %{_libdir}/libQt5GLib-2.0.so
2ed4d46e
JB
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
ba518b99
JB
320%{_includedir}/Qt5GStreamer
321%{_pkgconfigdir}/Qt5GLib-2.0.pc
2ed4d46e
JB
322%{_pkgconfigdir}/Qt5GStreamer-1.0.pc
323%{_pkgconfigdir}/Qt5GStreamerQuick-1.0.pc
324%{_pkgconfigdir}/Qt5GStreamerUi-1.0.pc
325%{_pkgconfigdir}/Qt5GStreamerUtils-1.0.pc
ba518b99 326%{_libdir}/cmake/Qt5GStreamer
d431bec6
JB
327
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
2ed4d46e
JB
333
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
ba518b99 339%endif
This page took 0.143448 seconds and 4 git commands to generate.