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

#
# spec file for package mingw64-qt5-qtgraphicaleffects
#
# 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 qtgraphicaleffects
#%%global pre beta1
%global source_folder %{qt_module}-everywhere-src-%{version}%{?pre:-%pre}
Name:           mingw64-libqt5-%{qt_module}
Version:        5.15.14+kde0
Release:        0
Summary:        Qt5 for Windows - Qt graphical effects component
License:        GPL-3.0-only or SUSE-LGPL-2.1-with-digia-exception-1.1
Group:          Development/Libraries
Url:            http://qt-project.org/
Source0:        %{source_folder}.tar.xz
# qmlcachegen
BuildRequires:  mingw64-libqt5-qmldevtools >= %{version}
BuildRequires:  mingw64-libqt5-qtbase-devel >= %{version}
BuildRequires:  mingw64-libqt5-qtdeclarative-private-headers-devel >= %{version}
%if %{qt5_snapshot}
#to create the forwarding headers
BuildRequires:  perl
%endif
%_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
Fedora Windows cross-compiler.

%_mingw64_debug_package

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

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

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

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

# Win32

%files
%defattr(-, root, root)
%dir %{_mingw64_libqt5_qmldir}/
%{_mingw64_libqt5_qmldir}/QtGraphicalEffects
%exclude %{_mingw64_libqt5_qmldir}/QtGraphicalEffects/*.debug
%exclude %{_mingw64_libqt5_qmldir}/QtGraphicalEffects/*/*.debug

%changelog
openSUSE Build Service is sponsored by