libqt-gstreamer/libqt-gstreamer.spec

176 lines
5.4 KiB
RPMSpec

%define apiver 1.0
Name: libqt-gstreamer
Version: 1.2.0
Release: 4mamba
Summary: C++ bindings for GStreamer with a Qt-style API
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://gstreamer.freedesktop.org/wiki/QtGStreamer
Source: http://gstreamer.freedesktop.org/src/qt-gstreamer/qt-gstreamer-%{version}.tar.xz
Patch0: libqt-gstreamer-1.2.0-gstreamer-1.6.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libGL-devel
BuildRequires: libQtDeclarative
BuildRequires: libgcc
BuildRequires: libglib-devel
BuildRequires: libgst-plugins-base-devel
BuildRequires: libgstreamer-devel
BuildRequires: libqt4-devel
BuildRequires: libqt5-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: libqt5-devel >= 5.6.0
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%debug_package
%description
QtGStreamer provides C++ bindings for GStreamer with a Qt-style API, plus some helper classes for integrating GStreamer better in Qt applications.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkgconfig
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%package -n libQt5GStreamer
Group: System/Libraries
Summary: C++ bindings for GStreamer with a Qt5-style API
%description -n libQt5GStreamer
QtGStreamer provides C++ bindings for GStreamer with a Qt-style API, plus some helper classes for integrating GStreamer better in Qt applications.
%package -n libQt5GStreamer-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: libQt5GStreamer = %{?epoch:%epoch:}%{version}-%{release}
%description -n libQt5GStreamer-devel
This package contains libraries and header files for developing applications that use %{name}.
%prep
%setup -q -n qt-gstreamer-%{version}
#-D -T
#:<< _EOF
%patch0 -p1
%build
#:<< _EOF
%cmake -d build \
-DQTGSTREAMER_EXAMPLES=OFF \
-DQT_VERSION=4
%make
cd ..
%cmake -d build-qt5 \
-DQTGSTREAMER_EXAMPLES=OFF \
-DQT_VERSION=5
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%makeinstall -C build-qt5
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libQtGLib-2.0.so.*
%{_libdir}/libQtGStreamer-%{apiver}.so.*
%{_libdir}/libQtGStreamerUi-%{apiver}.so.*
%{_libdir}/libQtGStreamerUtils-%{apiver}.so.*
%{_libdir}/gstreamer-%{apiver}/libgstqtvideosink.so
%{_libdir}/qt4/imports/QtGStreamer/libQtGStreamerQuick1.so
%{_libdir}/qt4/imports/QtGStreamer/qmldir
%doc COPYING
%files devel
%defattr(-,root,root)
%dir %{_includedir}/QtGStreamer
%dir %{_includedir}/QtGStreamer/QGlib
%{_includedir}/QtGStreamer/QGlib/*
%dir %{_includedir}/QtGStreamer/QGst
%{_includedir}/QtGStreamer/QGst/*
%{_libdir}/cmake/QtGStreamer/QtGStreamerConfig*.cmake
%{_libdir}/cmake/QtGStreamer/QtGStreamerTargets*.cmake
%{_libdir}/libQtGLib-2.0.so
%{_libdir}/libQtGStreamer-%{apiver}.so
%{_libdir}/libQtGStreamerUi-%{apiver}.so
%{_libdir}/libQtGStreamerUtils-%{apiver}.so
%{_libdir}/pkgconfig/QtGLib-2.0.pc
%{_libdir}/pkgconfig/QtGStreamer-%{apiver}.pc
%{_libdir}/pkgconfig/QtGStreamerUi-%{apiver}.pc
%{_libdir}/pkgconfig/QtGStreamerUtils-%{apiver}.pc
#%doc README
%files -n libQt5GStreamer
%defattr(-,root,root)
%{_libdir}/libQt5GLib-2.0.so.*
%{_libdir}/libQt5GStreamer-1.0.so.*
%{_libdir}/libQt5GStreamerQuick-1.0.so.*
%{_libdir}/libQt5GStreamerUi-1.0.so.*
%{_libdir}/libQt5GStreamerUtils-1.0.so.*
#%{_libdir}/qt5/imports/QtGStreamer/libQtGStreamerQuick1.so
#%{_libdir}/qt5/imports/QtGStreamer/qmldir
%{_libdir}/qt5/qml/QtGStreamer/libQtGStreamerQuick2.so
%{_libdir}/qt5/qml/QtGStreamer/qmldir
%{_libdir}/gstreamer-1.0/libgstqt5videosink.so
%doc COPYING
%files -n libQt5GStreamer-devel
%defattr(-,root,root)
%dir %{_includedir}/Qt5GStreamer
%dir %{_includedir}/Qt5GStreamer/QGlib
%{_includedir}/Qt5GStreamer/QGlib/*
%dir %{_includedir}/Qt5GStreamer/QGst
%{_includedir}/Qt5GStreamer/QGst/*
%dir %{_libdir}/cmake/Qt5GStreamer
%{_libdir}/libQt5GLib-2.0.so
%{_libdir}/libQt5GStreamer-1.0.so
%{_libdir}/libQt5GStreamerQuick-1.0.so
%{_libdir}/libQt5GStreamerUi-1.0.so
%{_libdir}/libQt5GStreamerUtils-1.0.so
%{_libdir}/cmake/Qt5GStreamer/*.cmake
%{_libdir}/pkgconfig/Qt5GLib-2.0.pc
%{_libdir}/pkgconfig/Qt5GStreamer-1.0.pc
%{_libdir}/pkgconfig/Qt5GStreamerQuick-1.0.pc
%{_libdir}/pkgconfig/Qt5GStreamerUi-1.0.pc
%{_libdir}/pkgconfig/Qt5GStreamerUtils-1.0.pc
%changelog
* Sun Jul 24 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.0-4mamba
- move libQtGstreamerQuick2.so from -devel to lib package
* Sun May 08 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.0-3mamba
- rebuilt with qt5 5.6.0
* Sat Jan 16 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.0-2mamba
- build qt5 bindings
* Thu Sep 18 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.0-1mamba
- update to 1.2.0
* Fri Oct 18 2013 Automatic Build System <autodist@mambasoft.it> 0.10.3-1mamba
- automatic update by autodist
* Thu Aug 09 2012 Automatic Build System <autodist@mambasoft.it> 0.10.2-1mamba
- automatic version update by autodist
* Fri Mar 02 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.10.1-1mamba
- package created by autospec