Blame SPECS/qt5-qtmultimedia.spec

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