Blame SPECS/qt5-qtmultimedia.spec

5d37f2
5d37f2
%global qt_module qtmultimedia
5d37f2
5d37f2
# define to build docs, need to undef this for bootstrapping
5d37f2
# where qt5-qttools builds are not yet available
5d37f2
# only primary archs (for now), allow secondary to bootstrap
5d37f2
# global bootstrap 1
5d37f2
5d37f2
%if ! 0%{?bootstrap}
5d37f2
%ifarch %{arm} %{ix86} x86_64
5d37f2
%define docs 1
5d37f2
%endif
5d37f2
%endif
5d37f2
5d37f2
%if 0%{?fedora}
5d37f2
%global openal 1
5d37f2
%endif
5d37f2
5d37f2
%global gst 0.10
5d37f2
%if 0%{?fedora} > 20
5d37f2
%global gst 1.0
5d37f2
%endif
5d37f2
5d37f2
Summary: Qt5 - Multimedia support
5d37f2
Name:    qt5-%{qt_module}
5d37f2
Version: 5.9.2
5d37f2
Release: 1%{?dist}
5d37f2
5d37f2
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
5d37f2
License: LGPLv2 with exceptions or GPLv3 with exceptions
5d37f2
Url:     http://www.qt.io
5d37f2
Source0: http://download.qt.io/official_releases/qt/5.9/%{version}/submodules/%{qt_module}-opensource-src-%{version}.tar.xz
5d37f2
5d37f2
BuildRequires: cmake
5d37f2
BuildRequires: qt5-qtbase-devel >= %{version}
5d37f2
BuildRequires: qt5-qtdeclarative-devel >= %{version}
5d37f2
BuildRequires: pkgconfig(alsa)
5d37f2
%if "%{?gst}" == "0.10"
5d37f2
BuildRequires: pkgconfig(gstreamer-interfaces-0.10)
5d37f2
%endif
5d37f2
BuildRequires: pkgconfig(gstreamer-%{gst})
5d37f2
BuildRequires: pkgconfig(gstreamer-app-%{gst})
5d37f2
BuildRequires: pkgconfig(gstreamer-audio-%{gst})
5d37f2
BuildRequires: pkgconfig(gstreamer-base-%{gst})
5d37f2
BuildRequires: pkgconfig(gstreamer-pbutils-%{gst})
5d37f2
BuildRequires: pkgconfig(gstreamer-plugins-bad-%{gst})
5d37f2
BuildRequires: pkgconfig(gstreamer-video-%{gst})
5d37f2
BuildRequires: pkgconfig(libpulse) pkgconfig(libpulse-mainloop-glib)
5d37f2
%if 0%{?openal}
5d37f2
BuildRequires: pkgconfig(openal)
5d37f2
%endif
5d37f2
BuildRequires: pkgconfig(xv)
5d37f2
5d37f2
5d37f2
%description
5d37f2
The Qt Multimedia module provides a rich feature set that enables you to
5d37f2
easily take advantage of a platforms multimedia capabilites and hardware.
5d37f2
This ranges from the playback and recording of audio and video content to
5d37f2
the use of available devices like cameras and radios.
5d37f2
5d37f2
%package devel
5d37f2
Summary: Development files for %{name}
5d37f2
Requires: %{name}%{?_isa} = %{version}-%{release}
5d37f2
Requires: qt5-qtbase-devel%{?_isa}
5d37f2
Requires: qt5-qtdeclarative-devel%{?_isa}
5d37f2
# Qt5Multimedia.pc containts:
5d37f2
# Libs.private: ... -lpulse-mainloop-glib -lpulse -lglib-2.0
5d37f2
Requires: pkgconfig(libpulse-mainloop-glib)
5d37f2
%description devel
5d37f2
%{summary}.
5d37f2
5d37f2
%if 0%{?docs}
5d37f2
%package doc
5d37f2
Summary: API documentation for %{name}
5d37f2
License: GFDL
5d37f2
Requires: %{name} = %{version}-%{release}
5d37f2
BuildRequires: qt5-qdoc
5d37f2
BuildRequires: qt5-qhelpgenerator
5d37f2
BuildArch: noarch
5d37f2
%description doc
5d37f2
%{summary}.
5d37f2
%endif
5d37f2
5d37f2
%package examples
5d37f2
Summary: Programming examples for %{name}
5d37f2
Requires: %{name}%{?_isa} = %{version}-%{release}
5d37f2
%description examples
5d37f2
%{summary}.
5d37f2
5d37f2
5d37f2
%prep
5d37f2
%setup -q -n %{qt_module}-opensource-src-%{version}
5d37f2
5d37f2
5d37f2
%build
5d37f2
%{qmake_qt5} \
5d37f2
  CONFIG+=git_build \
5d37f2
  GST_VERSION=%{gst}
5d37f2
5d37f2
make %{?_smp_mflags}
5d37f2
5d37f2
%if 0%{?docs}
5d37f2
make %{?_smp_mflags} docs
5d37f2
%endif
5d37f2
5d37f2
5d37f2
%install
5d37f2
make install INSTALL_ROOT=%{buildroot}
5d37f2
%if 0%{?docs}
5d37f2
make install_docs INSTALL_ROOT=%{buildroot}
5d37f2
%endif
5d37f2
5d37f2
## .prl/.la file love
5d37f2
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
5d37f2
pushd %{buildroot}%{_qt5_libdir}
5d37f2
for prl_file in *.prl ; do
5d37f2
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
5d37f2
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
5d37f2
    rm -fv "$(basename ${prl_file} .prl).la"
5d37f2
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
5d37f2
  fi
5d37f2
done
5d37f2
popd
5d37f2
5d37f2
5d37f2
%post -p /sbin/ldconfig
5d37f2
%postun -p /sbin/ldconfig
5d37f2
5d37f2
%files
5d37f2
%license LICENSE.*
5d37f2
%{_qt5_libdir}/libQt5Multimedia.so.5*
5d37f2
%{_qt5_libdir}/libQt5MultimediaQuick_p.so.5*
5d37f2
%{_qt5_libdir}/libQt5MultimediaWidgets.so.5*
5d37f2
%{_qt5_libdir}/libqgsttools_p.so.1*
5d37f2
%if 0%{?openal}
5d37f2
%{_qt5_archdatadir}/qml/QtAudioEngine/
5d37f2
%endif
5d37f2
%{_qt5_archdatadir}/qml/QtMultimedia/
5d37f2
%{_qt5_plugindir}/audio/
5d37f2
%{_qt5_plugindir}/mediaservice/
5d37f2
%{_qt5_plugindir}/playlistformats/
5d37f2
%dir %{_qt5_libdir}/cmake/Qt5Multimedia/
5d37f2
%{_qt5_libdir}/cmake/Qt5Multimedia/Qt5Multimedia_*Plugin.cmake
5d37f2
%dir %{_qt5_libdir}/cmake/Qt5MultimediaWidgets/
5d37f2
5d37f2
%files devel
5d37f2
%{_qt5_headerdir}/QtMultimedia/
5d37f2
%{_qt5_headerdir}/QtMultimediaQuick_p/
5d37f2
%{_qt5_headerdir}/QtMultimediaWidgets/
5d37f2
%{_qt5_libdir}/libQt5Multimedia.so
5d37f2
%{_qt5_libdir}/libQt5Multimedia.prl
5d37f2
%{_qt5_libdir}/libQt5MultimediaQuick_p.so
5d37f2
%{_qt5_libdir}/libQt5MultimediaQuick_p.prl
5d37f2
%{_qt5_libdir}/libQt5MultimediaWidgets.so
5d37f2
%{_qt5_libdir}/libQt5MultimediaWidgets.prl
5d37f2
%{_qt5_libdir}/libqgsttools_p.so
5d37f2
%{_qt5_libdir}/libqgsttools_p.prl
5d37f2
%{_qt5_libdir}/cmake/Qt5Multimedia/Qt5MultimediaConfig*.cmake
5d37f2
%{_qt5_libdir}/cmake/Qt5MultimediaWidgets/Qt5MultimediaWidgetsConfig*.cmake
5d37f2
%{_qt5_libdir}/pkgconfig/Qt5Multimedia.pc
5d37f2
%{_qt5_libdir}/pkgconfig/Qt5MultimediaWidgets.pc
5d37f2
%{_qt5_archdatadir}/mkspecs/modules/*.pri
5d37f2
5d37f2
%if 0%{?docs}
5d37f2
%files doc
5d37f2
%license LICENSE.FDL
5d37f2
%{_qt5_docdir}/qtmultimedia.qch
5d37f2
%{_qt5_docdir}/qtmultimedia/
5d37f2
%endif
5d37f2
5d37f2
%if 0%{?_qt5_examplesdir:1}
5d37f2
%files examples
5d37f2
%license LICENSE.FDL
5d37f2
%{_qt5_examplesdir}/
5d37f2
%endif
5d37f2
5d37f2
5d37f2
%changelog
5d37f2
* Fri Oct 06 2017 Jan Grulich <jgrulich@redhat.com> - 5.9.2-1
5d37f2
- Update 5.9.2
5d37f2
  Resolves: bz#1482784
5d37f2
5d37f2
* Mon Aug 28 2017 Jan Grulich <jgrulich@redhat.com> - 5.9.1-1
5d37f2
- Update 5.9.1
5d37f2
  Resolves: bz#1482784
5d37f2
5d37f2
* Wed Jan 11 2017 Jan Grulich <jgrulich@redhat.com> - 5.6.2-1
5d37f2
- Update to 5.6.2
5d37f2
  Resolves: bz#1384823
5d37f2
5d37f2
* Tue Aug 30 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-10
5d37f2
- Increase build version to have newer version than in EPEL
5d37f2
  Resolves: bz#1317406
5d37f2
5d37f2
* Wed Jun 08 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-1
5d37f2
- Update to 5.6.1
5d37f2
  Resolves: bz#1317406
5d37f2
5d37f2
* Wed Apr 13 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.0-5
5d37f2
- Enable documentation
5d37f2
  Resolves: bz#1317406
5d37f2
5d37f2
* Thu Apr 07 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.0-4
5d37f2
- Initial version for RHEL
5d37f2
  Resolves: bz#1317406
5d37f2
5d37f2
* Sun Mar 20 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-3
5d37f2
- rebuild
5d37f2
5d37f2
* Fri Mar 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-2
5d37f2
- rebuild
5d37f2
5d37f2
* Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-1
5d37f2
- 5.6.0 final release
5d37f2
5d37f2
* Tue Feb 23 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.8.rc
5d37f2
- Update to final RC
5d37f2
5d37f2
* Mon Feb 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.7
5d37f2
- Update RC release
5d37f2
5d37f2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-0.6.beta
5d37f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5d37f2
5d37f2
* Mon Dec 28 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.5.beta
5d37f2
- update source URL, use %%license, BR: cmake
5d37f2
5d37f2
* Mon Dec 21 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.4
5d37f2
- Update to final beta release
5d37f2
5d37f2
* Fri Dec 11 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-0.3
5d37f2
- include BR: qt5-qdoc only in -doc subpkg
5d37f2
- restore bootstrap macro support
5d37f2
- make openal support unconditional (#1069231)
5d37f2
5d37f2
* Thu Dec 10 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.2
5d37f2
- Official beta release
5d37f2
5d37f2
* Tue Nov 03 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.1
5d37f2
- Start to implement 5.6.0 beta
5d37f2
5d37f2
* Mon Oct 26 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.1-4
5d37f2
- pull in upstream fixes, QTBUG-48939 in particular
5d37f2
5d37f2
* Thu Oct 22 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.1-3
5d37f2
- drop gst support on el6 (QTBUG-48939)
5d37f2
5d37f2
* Thu Oct 15 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-2
5d37f2
- Update to final release 5.5.1
5d37f2
5d37f2
* Tue Sep 29 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-1
5d37f2
- Update to Qt 5.5.1 RC1
5d37f2
5d37f2
* Wed Jul 29 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-3
5d37f2
- -docs: BuildRequires: qt5-qhelpgenerator, standardize bootstrapping
5d37f2
5d37f2
* Thu Jul 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-2
5d37f2
- tighten qtbase dep (#1233829)
5d37f2
5d37f2
* Wed Jul 1 2015 Helio Chissini de Castro <helio@kde.org> 5.5.0-1
5d37f2
- New final upstream release Qt 5.5.0
5d37f2
5d37f2
* Wed Jun 24 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.0-0.2.rc
5d37f2
- Update for official RC1 released packages
5d37f2
5d37f2
* Wed Jun 17 2015 Daniel Vrátil <dvratil@redhat.com> - 5.5.0-0.1.rc
5d37f2
- Qt 5.5.0 RC1
5d37f2
5d37f2
* Wed Jun 03 2015 Jan Grulich <jgrulich@redhat.com> - 5.4.2-1
5d37f2
- 5.4.2
5d37f2
5d37f2
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 5.4.1-3
5d37f2
- Rebuilt for GCC 5 C++11 ABI change
5d37f2
5d37f2
* Fri Feb 27 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.4.1-2
5d37f2
- rebuild (gcc5)
5d37f2
5d37f2
* Tue Feb 24 2015 Jan Grulich <jgrulich@redhat.com> 5.4.1-1
5d37f2
- 5.4.1
5d37f2
5d37f2
* Thu Dec 11 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-1
5d37f2
- 5.4.0 (final) + backported gst1 support from dev/ branch
5d37f2
5d37f2
* Tue Nov 18 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.3.20141118.gst1
5d37f2
- wip/gstreamer1 snapshot (#1149885)
5d37f2
5d37f2
* Mon Nov 03 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.2.beta
5d37f2
- out-of-tree build, use %%qmake_qt5
5d37f2
5d37f2
* Sun Oct 19 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.1.beta
5d37f2
- 5.4.0-beta
5d37f2
5d37f2
* Wed Sep 17 2014 Rex Dieter <rdieter@fedoraproject.org> - 5.3.2-1
5d37f2
- 5.3.2
5d37f2
5d37f2
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.1-2.1
5d37f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
5d37f2
5d37f2
* Thu Jul 17 2014 Rex Dieter <rdieter@fedoraproject.org> 5.3.1-1.1
5d37f2
- rebuild (for pulseaudio, bug #1117683)
5d37f2
5d37f2
* Tue Jun 17 2014 Jan Grulich <jgrulich@redhat.com> - 5.3.1-1
5d37f2
- 5.3.1
5d37f2
5d37f2
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-2
5d37f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5d37f2
5d37f2
* Wed May 21 2014 Jan Grulich <jgrulich@redhat.com> 5.3.0-1
5d37f2
- 5.3.0
5d37f2
5d37f2
* Mon May 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-2
5d37f2
- use standard (same as qtbase) .prl sanitation
5d37f2
5d37f2
* Wed Feb 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-1
5d37f2
- 5.2.1
5d37f2
5d37f2
* Mon Jan 27 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-3
5d37f2
- build -examples only if supported
5d37f2
5d37f2
* Sun Jan 26 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-2
5d37f2
- -examples subpkg
5d37f2
5d37f2
* Thu Dec 12 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-1
5d37f2
- 5.2.0
5d37f2
5d37f2
* Mon Dec 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.10.rc1
5d37f2
- 5.2.0-rc1
5d37f2
5d37f2
* Sun Nov 10 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.4.beta1
5d37f2
- rebuild (arm/qreal)
5d37f2
5d37f2
* Thu Oct 24 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.3.beta1
5d37f2
- 5.2.0-beta1
5d37f2
5d37f2
* Wed Oct 16 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.2.alpha
5d37f2
- bootstrap ppc
5d37f2
5d37f2
* Wed Oct 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.1.alpha
5d37f2
- 5.2.0-alpha
5d37f2
- -doc subpkg
5d37f2
5d37f2
* Sat Sep 07 2013 Rex Dieter <rdieter@fedoraproject.org> 5.1.1-2
5d37f2
- ExclusiveArch: %%{ix86} x86_64 %%{arm} (to match qt5-qtdeclarative)
5d37f2
5d37f2
* Thu Aug 29 2013 Rex Dieter <rdieter@fedoraproject.org> 5.1.1-1
5d37f2
- 5.1.1
5d37f2
5d37f2
* Wed Aug 28 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-3
5d37f2
- update Source URL (and refetch tarball)
5d37f2
- improved summary/description
5d37f2
5d37f2
* Thu May 09 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-2
5d37f2
- BR: qt5-qtdeclarative-devel
5d37f2
5d37f2
* Thu Apr 11 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-1
5d37f2
- 5.0.2
5d37f2
5d37f2
* Sat Feb 23 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.1-1
5d37f2
- first try
5d37f2