File mingw32-phonon4qt5.spec of Package mingw32-phonon4qt5
#
# spec file for package phonon4qt5
#
# 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 rname phonon
%define _name phonon4qt5
Name: mingw32-%{_name}
Version: 4.11.1
Release: 0
Summary: Multimedia Platform Abstraction
License: LGPL-2.0+
Group: System/GUI/KDE
Url: http://phonon.kde.org/
Source: http://download.kde.org/stable/%{rname}/%{version}/src/%{rname}-%{version}.tar.xz
BuildRequires: mingw32-cross-cmake
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-cross-libqt5-qttools >= 5.6.0
BuildRequires: mingw32-extra-cmake-modules >= 1.6.0
BuildRequires: mingw32-kf5-filesystem
#BuildRequires: mingw32-libqt5-qtbase-devel >= 5.6.0
#BuildRequires: mingw32-libqt5-qttools >= 5.6.0
#BuildRequires: mingw32-libpulse-devel
BuildRequires: mingw32(pkg:Qt5Core)
BuildRequires: mingw32(pkg:Qt5Gui)
BuildRequires: mingw32(pkg:Qt5Widgets)
#BuildRequires: mingw32(pkg:gl)
BuildRequires: mingw32(pkg:Qt5DBus)
BuildRequires: mingw32(pkg:Qt5Designer)
BuildRequires: mingw32(pkg:Qt5OpenGL)
#BuildRequires: mingw32(pkg:Qt5Declarative)
BuildRequires: mingw32(pkg:Qt5Quick)
#BuildRequires: mingw32(pkg:glib-2.0)
BuildRequires: mingw32-xz
%_mingw32_package_header_debug
BuildArch: noarch
%description
Phonon is a cross-platform portable multimedia support abstraction,
which allows you to play multiple audio or video formats with the same
quality on all platforms, no matter which underlying architecture is
used.
%package devel
Summary: Phonon Multimedia Platform Abstraction
Group: Development/Libraries/KDE
Requires: mingw32-libphonon4qt5 = %{version}
%description devel
Phonon is a cross-platform portable Multimedia Support Abstraction,
which allows you to play multiple audio or video formats with the same
quality on all platforms, no matter which underlying architecture is
used.
%package -n mingw32-libphonon4qt5
Summary: Phonon Multimedia Platform Abstraction
Group: System/Libraries
Recommends: phonon4qt5-backend
%description -n mingw32-libphonon4qt5
Phonon is a cross-platform portable Multimedia Support Abstraction,
which allows you to play multiple audio or video formats with the same
quality on all platforms, no matter which underlying architecture is
used.
%_mingw32_debug_package
%define _mingw32_libqt5_archdatadir %{_mingw32_kf5_sharedir}/qt5/mkspecs
%define _mingw32_libqt5_plugindir %{_mingw32_kf5_libdir}/qt5/plugins
%prep
%setup -q -n %{_name}-%{version} -n %{rname}-%{version}
%autopatch -p1
%build
%_mingw32_cmake_kf5 -d build -- -DPHONON_BUILD_PHONON4QT5=ON -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=true -DDBUS_INTERFACES_INSTALL_DIR=%{_mingw32_kf5_sharedir}/dbus-1/interfaces/
%_mingw32_cmake_build
%install
%_mingw32_kf5_makeinstall -C build
%files -n mingw32-libphonon4qt5
%defattr(-,root,root)
%{_mingw32_kf5_bindir}/phononsettings.exe
%{_mingw32_kf5_bindir}/lib%{_name}.dll
%{_mingw32_kf5_bindir}/lib%{_name}experimental.dll
%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/%{_name}
%{_mingw32_kf5_libdir}/cmake/%{_name}
%{_mingw32_kf5_sharedir}/%{_name}
%{_mingw32_kf5_libdir}/pkgconfig/%{_name}.pc
%{_mingw32_kf5_libdir}/lib%{_name}experimental.dll.a
%{_mingw32_kf5_libdir}/lib%{_name}.dll.a
%{_mingw32_libqt5_archdatadir}/modules/qt_phonon4qt5.pri
%{_mingw32_libqt5_plugindir}/designer/phononwidgets.dll
%changelog