File mingw32-libqt4-static.spec of Package mingw32-libqt4
#
# spec file for package mingw32-libqt4-static
#
# Copyright (c) 2017 SUSE LINUX 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/
#
# keep in sync with mingw32-cross-libqt4-qmake.spec
%define qmake_only 0
%define system_qmake 1
# define missing dir
%if 0%{?suse_version} <= 1315
%define _rpmmacrodir %{_sysconfdir}/rpm
%endif
%define _mingw32_qt4_platform win32-g++-cross
%define _openssl_soname 10
%define verbose_build 0
%define _with_tools 1
%define _with_translations 1
%define static 1
Name: mingw32-libqt4-static
Version: 4.8.7
Release: 0
Summary: Qt C++ Program Library, Core Components for Windows
License: GPL-3.0-only WITH Qt-GPL-exception-1.1 or LGPL-2.1-only WITH Qt-LGPL-exception-1.1
Group: System/Libraries
URL: https://www.qt.io/
Source0: qt-everywhere-opensource-src-%{version}.tar.gz
Source3: mingw32-qmake.conf
Source4: qplatformdefs.h
Source5: qt4.conf
Source1000: mingw32-libqt4-rpmlintrc
Source1001: macros.mingw32-qt4
Source1: mingw32-libqt4.changes
Source10: qt4config.desktop
Source11: designer4.desktop
Source12: linguist4.desktop
Source13: assistant4.desktop
Source14: assistant.png
Source15: designer.png
Source16: linguist.png
Source17: qt_lt.ts
Patch1: qt-4.8.0-no-webkit-tests.patch
Patch2: qt-dont-perform-ipc-checks-for-win32.patch
Patch3: qt-4.7.3-fix-loading-openssl.patch
Patch4: qt-4.8.0-fix-include-windows-h.patch
Patch5: qt-4.8.0-build-qtuitools-dynamically.patch
Patch6: qt-fix-javascript-jit-on-mingw-x86_64.patch
Patch7: qt-4.8.1-fix-activeqt-compilation.patch
Patch8: qt-everywhere-opensource-src-4.8.1-linguist_qmake-qt4.patch
Patch9: qt-automatically-set-shared-config-flag-for-lib-templates.patch
Patch10: qt-dont-set-qt-dll-define-for-static-builds.patch
#qsql-mysql library patch
Patch15: qt-mysql-client-lib-win32.patch
# gcc6 patch from Fedora
Patch16: qt-everywhere-opensource-src-4.8.7-gcc6.patch
# let qt use qt4.conf first if present
Patch17: 0001-If-present-load-qt4.conf-instead-of-qt.conf-to-avoid-i.patch
Patch18: 0001-Only-show-system-bus-tab-if-system-bus-is-present.txt
Patch19: 0001-hide-console-windows-on-startDetached.patch
# from windows:mingw/libqt4.spec
Patch22: qt-never-strip.diff
Patch23: plastik-default.diff
Patch26: use-freetype-default.diff
Patch28: link-tools-shared.diff
Patch39: 0191-listview-alternate-row-colors.diff
Patch40: 0188-fix-moc-parser-same-name-header.diff
Patch43: 0195-compositing-properties.diff
Patch60: 0180-window-role.diff
Patch61: qt4-fake-bold.patch
Patch70: 0225-invalidate-tabbar-geometry-on-refresh.patch
Patch75: qt-debug-timer.diff
Patch87: qfatal-noreturn.diff
Patch101: no-moc-date.diff
Patch107: webkit-ia64_s390x.patch
Patch109: libqt4-libtool-nodate.diff
Patch113: ppc64-webkit-link-fix.diff
Patch118: rcc-stable-dirlisting.diff
Patch119: hppa_ldcw_fix.diff
Patch120: hppa_unaligned_access_fix_458133.diff
Patch128: build-qvfb-tool.diff
Patch131: disable-im-for-password.diff
Patch136: handle-tga-files-properly.diff
Patch137: qdbusconnection-no-warning-output.patch
# PATCH-FIX-UPSTREAM fix_assistant_segfault_QTBUG-25324.patch [bnc#780763] [QTBUG#25324]
Patch140: fix_assistant_segfault_QTBUG-25324.patch
# PATCH-FIX-OPENSUSE fix build on s390x failing to link in qnetworkconfigmanager.o
Patch141: qt4-fix-s390x-build.diff
Patch149: qatomic-generic.patch
# PATCH-FEATURE-OPENSUSE QSystemTrayicon.diff -- adds support for sni-qt plugin, which allows Qt applications to communicate via KStatusNotifier spec -- needed for
# Plasma Next
Patch150: QSystemTrayicon.diff
Patch152: fix-moc-from-choking-on-boost-headers.patch
# PATCH-FIX-OPENSUSE qlocale_icu-no-warning-output.patch -- qWarnings about icu libraries and symbols are now only emmited in debug builds
Patch153: qlocale_icu-no-warning-output.patch
# PATCH-FIX-OPENSUSE kde4_qt_plugin_path.patch
Patch154: kde4_qt_plugin_path.patch
Patch160: ppc64le.diff
# LO filepicker integration (3 patches)
# PATCH-FIX-OPENSUSE exclude socket notifiers from the glib event loop - needed for LO KDE4 filepicker integration (1/3)
Patch162: glib-honor-ExcludeSocketNotifiers-flag.diff
# PATCH-FIX-OPENSUSE fix recursive repaint errors which lead to crashes - needed for LO KDE4 filepicker integration (2/3)
Patch163: qtcore-4.8.5-qeventdispatcher-recursive.patch
# PATCH-FIX-OPENSUSE fix clipboard delay when pasting with LO and KFileDialog open - needed for LO KDE4 filepicker integration (3/3)
Patch164: l-qclipboard_delay.patch
# PATCH-FIX-OPENSUSE fix_qrasterpixmapdata_bnc847880.diff -- fix image rect copy optimization that copied "garbage" when used in qemu/cirrus (bnc#847880)
Patch165: fix_qrasterpixmapdata_bnc847880.diff
# PATCH-FIX-UPSTREAM 0001-Fix-exclusion-of-anonymous-ciphers.patch -- Exclude more ciphers from being used by default
Patch166: 0001-Fix-exclusion-of-anonymous-ciphers.patch
# PATCH-FIX-OPENSUSE disable-insecure-ciphers-bnc865241.diff -- Disable insecure ciphers (rc4, aecdh, adh, exp-adh, <128 bits)
Patch167: disable-rc4-ciphers-bnc865241.diff
# PATCH-FIX-OPENSUSE fix-gcc6-detection.diff -- Fix GCC6 detection
Patch168: fix-gcc6-detection.diff
# PATCH-FIX-UPSTREAM fix-moc-parsing-with-glibc-2.25.patch -- Fixes moc parsing correctly glibc 2.25 system headers
Patch169: fix-moc-parsing-with-glibc-2.25.patch
# PATCH-FIX-OPENSUSE fix-build-icu59.patch -- Workaround C++11 requirement
Patch170: fix-build-icu59.patch
# PATCH-FIX-UPSTREAM fix bolder fonts in qt4 apps [boo#956357] [QTBUG#27301]
Patch171: fix-medium-font.diff
# PATCH-FIX-UPSTREAM
Patch172: 0001-Redo-the-Q_FOREACH-loop-control-without-GCC-statemen.patch
# PATCH-FIX-OPENSUSE no-ssl3.patch
Patch200: no-ssl3.patch
# PATCH-FIX-OPENSUSE qt4-openssl-1.1.0pre-3.patch
Patch201: qt4-openssl-1.1.0pre-3.patch
# PATCH-FIX-OPENSUSE qt-everywhere-opensource-src-4.8.7-openssl.patch
Patch202: qt-everywhere-opensource-src-4.8.7-openssl.patch
# PATCH-FIX-OPENSUSE libqt4-toplevel-asm.patch
Patch203: libqt4-toplevel-asm.patch
# From https://codereview.qt-project.org/c/qt/qtbase/+/236691
Patch204: CVE-2018-15518.patch
# from https://codereview.qt-project.org/c/qt/qtbase/+/238749
Patch205: CVE-2018-19873.patch
# From https://codereview.qt-project.org/#/c/234142/
Patch206: CVE-2018-19869.patch
# From https://codereview.qt-project.org/c/qt/qtbase/+/308436
Patch207: CVE-2020-17507.patch
# https://bugreports.qt.io/browse/QTBUG-91507
Patch208: CVE-2021-3481.patch
# mingw
Patch300: 0001-Do-not-create-qmake-if-already-present.patch
Patch301: 0001-Add-qmake-only-and-system-qmake-configure-option.patch
Patch302: 0001-Add-apply-button-to-unix-variant-of-QPrintDialog.patch
Patch303: 0001-designer-Add-command-line-option-refresh-to-update-u.patch
Patch304: qt-4.8.7-fix-gcc11-build.patch
# PATCH-FIX-UPSTREAM
Patch1000: GLib-dispatcher-use-default-priority-for-timers.patch
# PATCH-FIX-UPSTREAM -- https://github.com/qt/qttools/commit/7138c963f9d1258bc1b49cb4d63c3e2b7d0ccfda
Patch1001: fix-pointer-abuse.patch
BuildRequires: dos2unix
BuildRequires: gcc-c++
BuildRequires: mingw32-cross-filesystem
BuildRequires: mingw32-cross-gcc-c++
%if %system_qmake
BuildRequires: mingw32-cross-libqt4-qmake
%endif
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem >= 35
BuildRequires: mingw32-libjpeg-devel
BuildRequires: mingw32-libopenssl-1_1-devel
BuildRequires: mingw32-libpng-devel
BuildRequires: mingw32-libtiff-devel
BuildRequires: mingw32-libxml2-devel
BuildRequires: mingw32-mysql-connector-c-devel
BuildRequires: mingw32-sqlite-devel
BuildRequires: mingw32-win_iconv-devel
BuildRequires: mingw32-zlib-devel
BuildRequires: xz
%_mingw32_package_header_debug
#!BuildIgnore: post-build-checks
#!BuildIgnore: mingw32-libjpeg8-devel
%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 Windows cross-compiler.
%package -n mingw32-cross-libqt4-qmake-static
Summary: Qt for Windows tools (devel)
Group: Development/Libraries
%description -n mingw32-cross-libqt4-qmake-static
This package contains the tools for developing with Qt.
%package -n mingw32-cross-libqt4-tools-static
Summary: Qt for Windows tools (devel)
Group: Development/Libraries
%description -n mingw32-cross-libqt4-tools-static
This package contains tools for developing with Qt.
%package devel
Summary: Qt for Windows (devel)
Group: Development/Libraries
Requires: mingw32-cross-cmake
Requires: mingw32-cross-gcc-c++
Requires: mingw32-cross-libqt4-qmake-static = %{version}
Requires: mingw32-cross-libqt4-tools-static = %{version}
BuildArch: noarch
%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 Windows cross-compiler.
%package devel-doc
Summary: Qt documentation
Group: Development/Libraries
BuildArch: noarch
%description devel-doc
The package contains documentation and examples to develop Qt
applications. The package includes also a tutorial and examples.
%package tools
Summary: Tools components of Qt4
Group: Development/Libraries
BuildArch: noarch
Requires: mingw32-libqt4-static-tools-dbus = %{version}
%description tools
-make tools
%package tools-devel
Summary: Tools components of Qt4 (devel)
Group: Development/Libraries
BuildArch: noarch
Requires: mingw32-libqt4-static-tools-dbus-devel = %{version}
%description tools-devel
-make tools (devel)
%package filesystem
Summary: RPM macros for building Qt4 libraries and applications
Group: Development/Libraries
Requires: mingw32-cross-libqt4-qmake-static = %{version}
Requires: mingw32-cross-libqt4-tools-static = %{version}
BuildArch: noarch
%description filesystem
Provides rpm macros for building Qt4 libraries and applications
%_mingw32_debug_package
%prep
%setup -q -n qt-everywhere-opensource-src-%{version}
%patch -P 1 -p1
%patch -P 2
%patch -P 3 -p1
%patch -P 4 -p1
%patch -P 5 -p1
%patch -P 6 -p1
%patch -P 7 -p1
%patch -P 8 -p1
%patch -P 9
%patch -P 10 -p1
%patch -P 15 -p1
%patch -P 16 -p1
%patch -P 17 -p1
%patch -P 18 -p1
%patch -P 19 -p1
%patch -P 22
%patch -P 23
%patch -P 26
# needs rediffing
#%%patch28
%patch -P 39
%patch -P 40
%patch -P 43
%patch -P 60
# bnc#374073 comment #8
#%%patch61
%patch -P 70
%patch -P 75
%patch -P 87
%patch -P 101
# ### 48 rediff
#%%patch107
%patch -P 109
# ### 48 rediff
#%%patch113
%patch -P 118 -p1
%ifarch hppa
%patch -P 119
%patch -P 120
%endif
cp %{SOURCE17} translations/
#%%patch128
%patch -P 131 -p1
%patch -P 136
%patch -P 137
%patch -P 140 -p1
%patch -P 141 -p0
%patch -P 149 -p1
%patch -P 150 -p1
%patch -P 152 -p1
%patch -P 153 -p1
%patch -P 154 -p1
%patch -P 160
%patch -P 162 -p1
%patch -P 163 -p0
%patch -P 164
%patch -P 165 -p1
%patch -P 166 -p1
%patch -P 167 -p1
%patch -P 168 -p1
%patch -P 169 -p1
%patch -P 170 -p1
%patch -P 171 -p1
%patch -P 172 -p1
%if 0%{?suse_version} >= 1330
%patch -P 200 -p1
%patch -P 201 -p1
%patch -P 202 -p1
%endif
%patch -P 203 -p1
%patch -P 204 -p1
%patch -P 205 -p1
%patch -P 206 -p1
%patch -P 207 -p1
%patch -P 208 -p1
%patch -P 300 -p1
%patch -P 301 -p1
%patch -P 302 -p1
%patch -P 303 -p1
%patch -P 304 -p1
%patch -P 1000 -p1
%patch -P 1001 -p1
for f in changes-%{version} LICENSE.LGPL LICENSE.GPL3 LGPL_EXCEPTION.txt README; do
dos2unix --keepdate $f
done
%if %system_qmake
echo qmake must use mkspecs from mingw32-cross-libqt4-qmake package
%endif
# Cross-compilation qmake target.
mkdir mkspecs/%{_mingw32_qt4_platform}
cp %{SOURCE3} mkspecs/%{_mingw32_qt4_platform}/qmake.conf
dos2unix mkspecs/%{_mingw32_qt4_platform}/qmake.conf
cp %{SOURCE4} mkspecs/%{_mingw32_qt4_platform}
# openssl
# qt loads openssl libraries (ssleay32, libeay32) at runtime, but they are called libssl-OPENSSL_SONAME
# and libcrypto-OPENSSL_SONAME in our cross build, so qt is patched to look for them additionally
sed -i "s/OPENSSL_SONAME/%{_openssl_soname}/" src/network/ssl/qsslsocket_openssl_symbols.cpp
%build
%define _lto_cflags %{nil}
# Generic configure arguments
# Phonon is disabled for now because we lack the directx headers
# The 'javascript-jit' argument causes a compile failure on the mingw32 toolchain
qt_configure_args_static="\
-confirm-license \
-fast \
%if 0%{?_with_tools}
-make tools \
%else
-nomake tools \
%endif
%if 0%{?_with_translations}
-make translations \
%else
-nomake translations \
%endif
-no-3dnow \
-no-accessibility \
-no-audio-backend \
-no-avx \
-no-declarative \
-no-exceptions \
-no-gif \
-no-iconv
-no-javascript-jit \
-no-libjpeg \
-no-libmng \
-no-libtiff \
-no-mmx \
-no-multimedia \
-no-neon \
-no-opengl \
-no-phonon \
-no-qdbus \
-no-qt3support \
-no-script \
-no-scripttools \
-no-scripttools \
-no-sql-mysql \
-no-sql-odbc \
-no-sql-sqlite \
-no-sse \
-no-sse2 \
-no-sse3 \
-no-sse4.1 \
-no-sse4.2 \
-no-ssse3 \
-no-stl \
-no-svg \
-no-webkit \
-no-xmlpatterns \
-nomake demos \
-nomake docs \
-nomake examples\
-opensource \
-openssl \
-openssl-linked \
-optimized-qmake \
%if %qmake_only
-qmake-only -nomake" \
%endif
-qt-libpng \
-static \
%if %system_qmake
-system-qmake \
%endif
-qt-zlib \
%if %{verbose_build}
-verbose \
%else
-silent \
%endif
"
qt_configure_args_win="\
-little-endian \
-prefix %{_mingw32_prefix} \
-bindir %{_mingw32_bindir} \
-datadir %{_mingw32_datadir}/qt4 \
-demosdir %{_mingw32_libdir}/qt4/demos \
-docdir %{_mingw32_docdir}/qt4 \
-examplesdir %{_mingw32_datadir}/qt4/examples \
-headerdir %{_mingw32_includedir} \
-libdir %{_mingw32_libdir} \
-plugindir %{_mingw32_libdir}/qt4/plugins \
-sysconfdir %{_mingw32_sysconfdir} \
-translationdir %{_mingw32_datadir}/qt4/translations \
-platform linux-g++ \
-xplatform %{_mingw32_qt4_platform}"
rm -rf ../build_release
mkdir ../build_release
pushd ../build_release
export PKG_CONFIG_PATH=%{_mingw32_libdir}/pkgconfig
export CXXFLAGS="-std=gnu++98 -Wno-deprecated -Wno-expansion-to-defined -D_WIN32_WINNT=0x601 -DWINVER=0x601 -DOPENSSL_NO_SSL2"
%if %system_qmake
export QMAKE=/usr/%_mingw32_target/bin/qmake
%endif
../qt-everywhere-opensource-src-%{version}/configure \
-release \
$qt_configure_args_static $qt_configure_args_win
%if !%qmake_only
make %{?_smp_mflags}
%endif
%install
%if !%qmake_only
# install macros file
mkdir -p %{buildroot}%{_rpmmacrodir}
install -m 644 %{SOURCE1001} %{buildroot}%{_rpmmacrodir}/macros.mingw32-qt4
# make install -C ../build_debug INSTALL_ROOT=$RPM_BUILD_ROOT
make install -C ../build_release INSTALL_ROOT=%{buildroot}
# Also install the lrelease tool
make -C ../build_release/tools/linguist/lrelease install INSTALL_ROOT=%{buildroot}
# install qt4.conf required for using plugins in setup installers and portable installation
install -m 644 %{SOURCE5} %{buildroot}%{_mingw32_bindir}
# move QtUiTools4 from lib/ to bin/
#mv %%{buildroot}%%{_mingw32_libdir}/QtUiTools4 %%{buildroot}%%{_mingw32_bindir}/
# add links with version suffix for convenience
# fedora does this, do we want it too?
# RH no to match library references in pkgconfig files
# ln -s libqtmain.a %{buildroot}%{_mingw32_libdir}/libqtmain4.a
# Drop all the prl files, the examples and the mkspecs files which we don't need
find %{buildroot}%{_mingw32_libdir} -name '*.prl' -exec rm {} \;
# rm -rf $RPM_BUILD_ROOT%%{_mingw32_datadir}/qt4/demos
# rm -rf $RPM_BUILD_ROOT%%{_mingw32_datadir}/qt4/examples
# The Qt build system creates a folder called 'imports' but it isn't entirely sure
# what it's purpose is. Drop it for now
rm -rf %{buildroot}%{_mingw32_prefix}/imports
%endif
%if !%system_qmake || %qmake_only || %static
# Install the Qt mkspecs
mkdir -p %{buildroot}/%{_mingw32_datadir}/qt4
cp -a mkspecs/ %{buildroot}/%{_mingw32_datadir}/qt4/
ln -fs %{_mingw32_qt4_platform} %{buildroot}/%{_mingw32_datadir}/qt4/mkspecs/default
cp ../build_release/mkspecs/qconfig.pri %{buildroot}/%{_mingw32_datadir}/qt4/mkspecs
%endif
%if %system_qmake && !%static
# Drop the installed Qt mkspecs
rm -rf %{buildroot}/%{_mingw32_datadir}/qt4/mkspecs
%endif
mkdir -p %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_prefix}/%{_mingw32_target}/bin/
######################## REENABLE ##################################################################
# Manually install qmake and other native tools so we don't depend anymore on
# the version of the native Qt and also fix issues as illustrated at
# http://stackoverflow.com/questions/6592931/building-for-windows-under-linux-using-qt-creator
%if !%system_qmake || %static
install -m0755 ../build_release/bin/qmake %{buildroot}%{_prefix}/%{_mingw32_target}/bin/qmake
ln -s ../%{_mingw32_target}/bin/qmake %{buildroot}%{_bindir}/%{_mingw32_target}-qmake
# An argument in the mkspecs profile needs to be un-commented in order to be
# useful for developers who wish to use the Qt libraries
sed -i s@'#QT_LIBINFIX'@'QT_LIBINFIX'@ %{buildroot}%{_mingw32_datadir}/qt4/mkspecs/%{_mingw32_qt4_platform}/qmake.conf
# Remove some duplicate mkspecs data
rm -rvf %{buildroot}%{_mingw32_datadir}/qt4/mkspecs/%{_mingw32_qt4_platform}/default
rm -rvf %{buildroot}%{_mingw32_datadir}/qt4/mkspecs/%{_mingw32_qt4_platform}/%{_mingw32_qt4_platform}
# Workaround a bug where building against the debug binaries will always fail:
# https://bugreports.qt.nokia.com/browse/QTBUG-14467
sed -i s@'$${QT_LIBINFIX}d'@'d$${QT_LIBINFIX}'@ %{buildroot}%{_mingw32_datadir}/qt4/mkspecs/features/win32/windows.prf
sed -i s@'$${QT_LIBINFIX}d'@'d$${QT_LIBINFIX}'@ %{buildroot}%{_mingw32_datadir}/qt4/mkspecs/features/qt_functions.prf
%endif
%if !%qmake_only
for tool in lrelease moc rcc uic ; do
mv %{buildroot}%{_mingw32_bindir}/$tool %{buildroot}%{_prefix}/%{_mingw32_target}/bin/$tool
ln -s ../%{_mingw32_target}/bin/$tool %{buildroot}%{_bindir}/%{_mingw32_target}-$tool
done
# we do not add '4' suffix to the archive files to match generated pkgconfig files
%endif
%if !%qmake_only
%files filesystem
%defattr(-,root,root)
%{_rpmmacrodir}/macros.mingw32-qt4
%files
%defattr(-,root,root)
#%%{_mingw32_bindir}/qt4.conf
%dir %{_mingw32_datadir}/qt4/translations/
%{_mingw32_datadir}/qt4/translations/qt_*.qm
%endif
%if %qmake_only || 1
%files -n mingw32-cross-libqt4-qmake-static
%defattr(-,root,root)
%{_bindir}/%{_mingw32_target}-qmake
%{_prefix}/%{_mingw32_target}/bin/qmake
%dir %{_mingw32_datadir}/qt4/
%{_mingw32_datadir}/qt4/mkspecs/
%endif
%if !%qmake_only
%files -n mingw32-cross-libqt4-tools-static
%defattr(-,root,root)
%{_bindir}/%{_mingw32_target}-lrelease
%{_prefix}/%{_mingw32_target}/bin/lrelease
%{_bindir}/%{_mingw32_target}-moc
%{_prefix}/%{_mingw32_target}/bin/moc
%{_bindir}/%{_mingw32_target}-rcc
%{_prefix}/%{_mingw32_target}/bin/rcc
%{_bindir}/%{_mingw32_target}-uic
%{_prefix}/%{_mingw32_target}/bin/uic
%endif
%if !%qmake_only
%files devel
%defattr(-,root,root)
%{_mingw32_libdir}/libQAxContainer.a
%{_mingw32_libdir}/libQAxServer.a
#%%{_mingw32_libdir}/libQt3Support4.a
%{_mingw32_libdir}/libQtCore.a
#%%{_mingw32_libdir}/libQtDBus4.a
#%%{_mingw32_libdir}/libQtDeclarative4.a
%{_mingw32_libdir}/libQtGui.a
%{_mingw32_libdir}/libQtHelp.a
%{_mingw32_libdir}/libqtmain.a
#%%{_mingw32_libdir}/libQtMultimedia4.a
%{_mingw32_libdir}/libQtNetwork.a
#%%{_mingw32_libdir}/libQtOpenGL4.a
#%%{_mingw32_libdir}/libQtScript4.a
#%%{_mingw32_libdir}/libQtScriptTools4.a
%{_mingw32_libdir}/libQtSql.a
#%%{_mingw32_libdir}/libQtSvg4.a
%{_mingw32_libdir}/libQtTest.a
#%%{_mingw32_libdir}/libQtWebKit4.a
#%%{_mingw32_libdir}/libQtXmlPatterns4.a
%{_mingw32_libdir}/libQtXml.a
%dir %{_mingw32_libdir}/qt4
%dir %{_mingw32_libdir}/qt4/plugins
%dir %{_mingw32_libdir}/qt4/plugins/bearer
%{_mingw32_libdir}/qt4/plugins/bearer/libqgenericbearer.a
%{_mingw32_libdir}/qt4/plugins/bearer/libqnativewifibearer.a
%dir %{_mingw32_libdir}/qt4/plugins/codecs
%{_mingw32_libdir}/qt4/plugins/codecs/libqcncodecs.a
%{_mingw32_libdir}/qt4/plugins/codecs/libqjpcodecs.a
%{_mingw32_libdir}/qt4/plugins/codecs/libqkrcodecs.a
%{_mingw32_libdir}/qt4/plugins/codecs/libqtwcodecs.a
%dir %{_mingw32_libdir}/qt4/plugins/graphicssystems
%{_mingw32_libdir}/qt4/plugins/graphicssystems/libqtracegraphicssystem.a
%dir %{_mingw32_libdir}/qt4/plugins/imageformats
%{_mingw32_libdir}/qt4/plugins/imageformats/libqico.a
%{_mingw32_libdir}/qt4/plugins/imageformats/libqtga.a
%{_mingw32_includedir}/Qt
%{_mingw32_includedir}/ActiveQt
#%%{_mingw32_includedir}/Qt3Support
%{_mingw32_includedir}/QtCore
#%%{_mingw32_includedir}/QtDBus
#%%{_mingw32_includedir}/QtDeclarative
%{_mingw32_includedir}/QtGui
#%%{_mingw32_includedir}/QtMultimedia
%{_mingw32_includedir}/QtNetwork
#%%{_mingw32_includedir}/QtOpenGL
#%%{_mingw32_includedir}/QtScript
#%%{_mingw32_includedir}/QtScriptTools
%{_mingw32_includedir}/QtSql
#%%{_mingw32_includedir}/QtSvg
%{_mingw32_includedir}/QtTest
%{_mingw32_includedir}/QtXml
#%%{_mingw32_includedir}/QtXmlPatterns
#%%{_mingw32_includedir}/QtWebKit
#%%{_mingw32_libdir}/pkgconfig/Qt3Support.pc
%{_mingw32_libdir}/pkgconfig/QtCore.pc
#%%{_mingw32_libdir}/pkgconfig/QtDBus.pc
#%%{_mingw32_libdir}/pkgconfig/QtDeclarative.pc
%{_mingw32_libdir}/pkgconfig/QtGui.pc
%{_mingw32_libdir}/pkgconfig/QtHelp.pc
#%%{_mingw32_libdir}/pkgconfig/QtMultimedia.pc
%{_mingw32_libdir}/pkgconfig/QtNetwork.pc
#%%{_mingw32_libdir}/pkgconfig/QtOpenGL.pc
#%%{_mingw32_libdir}/pkgconfig/QtScript.pc
#%%{_mingw32_libdir}/pkgconfig/QtScriptTools.pc
%{_mingw32_libdir}/pkgconfig/QtSql.pc
#%%{_mingw32_libdir}/pkgconfig/QtSvg.pc
%{_mingw32_libdir}/pkgconfig/QtTest.pc
#%%{_mingw32_libdir}/pkgconfig/QtWebKit.pc
#%%{_mingw32_libdir}/pkgconfig/QtXmlPatterns.pc
%{_mingw32_libdir}/pkgconfig/QtXml.pc
%{_mingw32_libdir}/pkgconfig/qtmain.pc
%files devel-doc
%defattr(-,root,root)
%doc changes-%{version}
%doc LICENSE.LGPL LICENSE.GPL3 LGPL_EXCEPTION.txt
%doc README
%files tools
%defattr(-,root,root)
%{_mingw32_bindir}/assistant.exe
%{_mingw32_bindir}/designer.exe
%{_mingw32_bindir}/lconvert.exe
%{_mingw32_bindir}/linguist.exe
%{_mingw32_bindir}/lupdate.exe
%{_mingw32_bindir}/pixeltool.exe
%{_mingw32_bindir}/qcollectiongenerator.exe
%{_mingw32_bindir}/qhelpconverter.exe
%{_mingw32_bindir}/qhelpgenerator.exe
#%%{_mingw32_bindir}/qmlplugindump.exe
#%%{_mingw32_bindir}/qmlviewer.exe
%{_mingw32_bindir}/qt3to4.exe
%{_mingw32_bindir}/qttracereplay.exe
#%%{_mingw32_bindir}/xmlpatterns.exe
#%%{_mingw32_bindir}/xmlpatternsvalidator.exe
%{_mingw32_bindir}/qt4.conf
#%%dir %%{_mingw32_libdir}/qt4/plugins/designer/
%{_mingw32_datadir}/qt4/q3porting.xml
%{_mingw32_datadir}/qt4/phrasebooks/
%dir %{_mingw32_datadir}/qt4/translations/
%{_mingw32_datadir}/qt4/translations/assistant_*.qm
%{_mingw32_datadir}/qt4/translations/designer_*.qm
%{_mingw32_datadir}/qt4/translations/linguist_*.qm
%{_mingw32_datadir}/qt4/translations/qt_help_*.qm
%{_mingw32_datadir}/qt4/translations/qtconfig_*.qm
%{_mingw32_datadir}/qt4/translations/qtscript_*.qm
%{_mingw32_datadir}/qt4/translations/qvfb_*.qm
%files tools-devel
%defattr(-,root,root)
%{_mingw32_includedir}/QtUiTools
%{_mingw32_includedir}/QtHelp
%{_mingw32_includedir}/QtDesigner
%{_mingw32_includedir}/ActiveQt
%{_mingw32_libdir}/libQtUiTools.a
%{_mingw32_libdir}/libQtCLucene.a
%{_mingw32_libdir}/libQtDesigner.a
%{_mingw32_libdir}/libQtDesignerComponents.a
%{_mingw32_libdir}/pkgconfig/QtUiTools.pc
%{_mingw32_libdir}/pkgconfig/QtCLucene.pc
%endif
%changelog