File mingw32-libqt5-qtsensors.spec of Package mingw32-libqt5-qtsensors

#
# spec file for package mingw32-libqt5-qtsensors
#
# 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/
#


%global qt_module qtsensors
#%%global pre beta1
%global source_folder %{qt_module}-opensource-src-%{version}%{?pre:-%pre}
Name:           mingw32-libqt5-%{qt_module}
Version:        5.4.0
Release:        0
Summary:        Qt5 for Windows - QtSensors component
License:        GPL-3.0 or SUSE-LGPL-2.1-with-digia-exception-1.1
Group:          Development/Libraries
Url:            http://qt-project.org/
Source0:        %{qt_module}-opensource-src-%{version}%{?pre:-%pre}.tar.xz
Patch1000:      mingw32-libqt5-qtsensors-rpmlintrc
BuildRequires:  mingw32-angleproject-devel
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-libqt5-qmake
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-filesystem
BuildRequires:  mingw32-libjpeg-devel
BuildRequires:  mingw32-libpng-devel
BuildRequires:  mingw32-libqt5-qmldevtools
BuildRequires:  mingw32-libqt5-qtbase
BuildRequires:  mingw32-libqt5-qtbase-devel
BuildRequires:  mingw32-libqt5-qtdeclarative-devel
BuildRequires:  mingw32-pcre-devel
BuildRequires:  mingw32-pkg-config
BuildRequires:  mingw32-zlib-devel
BuildRequires:  xz
%_mingw32_package_header_debug
BuildArch:      noarch
# Disabled for now because of compilation issues
# BuildRequires:  mingw32-qt5-qtactiveqt

%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 - QtLocation (Development)
Group:          Development/Libraries

%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.

%_mingw32_debug_package

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

%build
mingw32-qmake-qt5 %{qt_module}.pro
%{_mingw32_make} %{?_smp_mflags}

%install
%{_mingw32_make} install INSTALL_ROOT=%{buildroot}

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

%files
%defattr(-, root, root)
%{_mingw32_bindir}/Qt5Sensors.dll
%dir %{_mingw32_libdir}/qt5/plugins/sensorgestures
%{_mingw32_libdir}/qt5/plugins/sensorgestures/*.dll
%dir %{_mingw32_libdir}/qt5/plugins/sensors
%{_mingw32_libdir}/qt5/plugins/sensors/*.dll
%dir %{_mingw32_datadir}/qt5/qml/QtSensors
%{_mingw32_datadir}/qt5/qml/QtSensors/*.dll
%{_mingw32_datadir}/qt5/qml/QtSensors/*.qmltypes
%{_mingw32_datadir}/qt5/qml/QtSensors/qmldir

%files devel
%defattr(-, root, root)
%{_mingw32_includedir}/qt5/QtSensors/
%{_mingw32_libdir}/cmake/Qt5Sensors/
%{_mingw32_libdir}/libQt5Sensors.dll.a
%{_mingw32_libdir}/pkgconfig/Qt5Sensors.pc
%{_mingw32_datadir}/qt5/mkspecs/modules/qt_lib_sensors.pri
%{_mingw32_datadir}/qt5/mkspecs/modules/qt_lib_sensors_private.pri

%changelog
openSUSE Build Service is sponsored by