File mingw64-phonon4qt5.spec of Package mingw64-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:           mingw64-%{_name}
Version:        4.11.1
Release:        0
Summary:        Multimedia Platform Abstraction
License:        LGPL-2.0-or-later
Group:          System/GUI/KDE
Url:            http://phonon.kde.org/
Source:         http://download.kde.org/stable/%{rname}/%{version}/src/%{rname}-%{version}.tar.xz
BuildRequires:  mingw64-cross-cmake
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-libqt5-qttools >= 5.6.0
BuildRequires:  mingw64-extra-cmake-modules >= 1.6.0 
BuildRequires:  mingw64-kf5-filesystem
#BuildRequires:  mingw64-libqt5-qtbase-devel >= 5.6.0
#BuildRequires:  mingw64-libqt5-qttools >= 5.6.0
#BuildRequires:  mingw64-libpulse-devel
BuildRequires:  mingw64(pkg:Qt5Core)
BuildRequires:  mingw64(pkg:Qt5Gui)
BuildRequires:  mingw64(pkg:Qt5Widgets)
#BuildRequires:  mingw64(pkg:gl)
BuildRequires:  mingw64(pkg:Qt5DBus)
BuildRequires:  mingw64(pkg:Qt5Designer)
BuildRequires:  mingw64(pkg:Qt5OpenGL)
#BuildRequires:  mingw64(pkg:Qt5Declarative)
BuildRequires:  mingw64(pkg:Qt5Quick)
#BuildRequires:  mingw64(pkg:glib-2.0)
BuildRequires:  mingw64-xz
%_mingw64_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:       mingw64-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 mingw64-libphonon4qt5
Summary:        Phonon Multimedia Platform Abstraction
Group:          System/Libraries
Recommends:     phonon4qt5-backend

%description -n mingw64-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.


%_mingw64_debug_package

%define _mingw64_libqt5_archdatadir  %{_mingw64_kf5_sharedir}/qt5/mkspecs
%define _mingw64_libqt5_plugindir    %{_mingw64_kf5_libdir}/qt5/plugins

%prep
%setup -q -n %{_name}-%{version} -n %{rname}-%{version}
%autopatch -p1

%build
  %_mingw64_cmake_kf5 -d build -- -DPHONON_BUILD_PHONON4QT5=ON -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=true -DDBUS_INTERFACES_INSTALL_DIR=%{_mingw64_kf5_sharedir}/dbus-1/interfaces/
  %_mingw64_cmake_build

%install
  %_mingw64_kf5_makeinstall -C build

 

%files -n mingw64-libphonon4qt5
%defattr(-,root,root)
%{_mingw64_kf5_bindir}/phononsettings.exe
%{_mingw64_kf5_bindir}/lib%{_name}.dll
%{_mingw64_kf5_bindir}/lib%{_name}experimental.dll

%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/%{_name}
%{_mingw64_kf5_libdir}/cmake/%{_name}
%{_mingw64_kf5_sharedir}/%{_name}
%{_mingw64_kf5_libdir}/pkgconfig/%{_name}.pc
%{_mingw64_kf5_libdir}/lib%{_name}experimental.dll.a
%{_mingw64_kf5_libdir}/lib%{_name}.dll.a
%{_mingw64_libqt5_archdatadir}/modules/qt_phonon4qt5.pri
%{_mingw64_libqt5_plugindir}/designer/phononwidgets.dll
%changelog
openSUSE Build Service is sponsored by