File mingw64-libqt5-qtmultimedia.spec of Package mingw64-libqt5-qtmultimedia

#
# spec file for package mingw64-libqt5-qtmultimedia
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

%define qt5_snapshot 1
%global qt_module qtmultimedia
%global source_folder qtmultimedia-everywhere-src-%{version}%{?pre:-%pre}
Name:           mingw64-libqt5-%{qt_module}
Version:        5.15.14+kde0
Release:        0
Summary:        Qt5 for Windows - QtMultimedia component
License:        GPL-3.0-only or SUSE-LGPL-2.1-with-digia-exception-1.1
Group:          Development/Libraries
Url:            http://www.qt-project.org/
Source0:        %{source_folder}.tar.xz
BuildRequires:  mingw64-libqt5-qtbase-devel >= %{version}
BuildRequires:  mingw64-libqt5-qtdeclarative-devel >= %{version}
%_mingw64_package_header_debug
BuildArch:      noarch

%description
This package contains the Qt software toolkit for developing
cross-platform applications.

This is the Windows version of Qt, for use in conjunction with the
MinGW cross-compiler.

%package devel
Summary:        Qt5 for Windows - QtMultimedia component (development)
Group:          Development/Libraries
Provides:       %{name}-private-headers-devel
Requires:       %{name} = %{version}-%{release}

%description devel
This package contains the Qt software toolkit for developing
cross-platform applications.

This is the Windows version of Qt, for use in conjunction with the
MinGW cross-compiler.

%_mingw64_debug_package

%prep
%setup -q -n %{source_folder}
%autopatch -p1

%build
%if %{qt5_snapshot}
#force the configure script to generate the forwarding headers (it checks whether .git directory exists)
mkdir .git
%endif
mingw64-qmake-qt5 %{qt_module}.pro
%{_mingw64_make} %{?_smp_mflags}

%install
%{_mingw64_make} install INSTALL_ROOT=%{buildroot}

# .prl files aren't interesting for us
find %{buildroot} -name "*.prl" -delete

# The .dll's are installed in both %%{mingw64_bindir} and %%{mingw64_libdir}
# One copy of the .dll's is sufficient
rm -f %{buildroot}%{_mingw64_libdir}/*.dll

%files
%defattr(-,root,root)
%doc LICENSE.*
%{_mingw64_bindir}/libQt5Multimedia.dll
%{_mingw64_bindir}/libQt5MultimediaQuick.dll
%{_mingw64_bindir}/libQt5MultimediaWidgets.dll
%dir %{_mingw64_libdir}/qt5/plugins/audio
%{_mingw64_libdir}/qt5/plugins/audio/libqtaudio_windows.dll
%dir %{_mingw64_libdir}/qt5/plugins/mediaservice
%{_mingw64_libdir}/qt5/plugins/mediaservice/libqtmedia_audioengine.dll
%{_mingw64_libdir}/qt5/plugins/mediaservice/libdsengine.dll
%dir %{_mingw64_libdir}/qt5/plugins/playlistformats
%{_mingw64_libdir}/qt5/plugins/playlistformats/libqtmultimedia_m3u.dll
%dir %{_mingw64_libdir}/qt5/plugins/video
%dir %{_mingw64_libdir}/qt5/plugins/video/videonode
%{_mingw64_libdir}/qt5/plugins/video/videonode/libeglvideonode.dll
%dir %{_mingw64_libqt5_qmldir}/QtMultimedia
%{_mingw64_libqt5_qmldir}/QtMultimedia/libdeclarative_multimedia.dll
%{_mingw64_libqt5_qmldir}/QtMultimedia/Video.qml
%{_mingw64_libqt5_qmldir}/QtMultimedia/plugins.qmltypes
%{_mingw64_libqt5_qmldir}/QtMultimedia/qmldir

%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/qt5/QtMultimedia/
%{_mingw64_includedir}/qt5/QtMultimediaWidgets/
%{_mingw64_includedir}/qt5/QtMultimediaQuick/
%{_mingw64_libdir}/libQt5Multimedia.dll.a
%{_mingw64_libdir}/libQt5MultimediaQuick.dll.a
%{_mingw64_libdir}/libQt5MultimediaWidgets.dll.a
%{_mingw64_libdir}/cmake/Qt5Multimedia/
%{_mingw64_libdir}/cmake/Qt5MultimediaQuick/
%{_mingw64_libdir}/cmake/Qt5MultimediaWidgets/
%{_mingw64_libdir}/pkgconfig/Qt5Multimedia.pc
%{_mingw64_libdir}/pkgconfig/Qt5MultimediaWidgets.pc
%{_mingw64_datadir}/qt5/mkspecs/modules/qt_lib_multimedia.pri
%{_mingw64_datadir}/qt5/mkspecs/modules/qt_lib_multimedia_private.pri
%{_mingw64_datadir}/qt5/mkspecs/modules/qt_lib_multimediawidgets.pri
%{_mingw64_datadir}/qt5/mkspecs/modules/qt_lib_multimediawidgets_private.pri
%{_mingw64_datadir}/qt5/mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri

%changelog
openSUSE Build Service is sponsored by