Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ximi1970:Toolchains:Qt:MinGW:latest:win32
mingw32-libqt4-opensource-4.8.7-static
mingw32-libqt4-opensource-4.8.7-static.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mingw32-libqt4-opensource-4.8.7-static.spec of Package mingw32-libqt4-opensource-4.8.7-static
# # spec file for package libqt4 # %define license_type opensource %define package_name opensource %define package_version %{nil} #define package_version -1 %define __strip %{_mingw32_strip} %define __objdump %{_mingw32_objdump} %define _use_internal_dependency_generator 0 %define __find_requires %{_mingw32_findrequires} %define __find_provides %{_mingw32_findprovides} %define __os_install_post %{_mingw32_install_post} %define _mingw32_qt_platform win32-g++ Version: 4.8.7 Name: mingw32-libqt4-%{license_type}-%{version}-static BuildRequires: gcc-c++ BuildRequires: mingw32-filesystem >= 35 BuildRequires: mingw32-cross-gcc BuildRequires: mingw32-cross-gcc-c++ BuildRequires: mingw32-cross-binutils BuildRequires: mingw32-cross-pkg-config # #BuildRequires: mingw32-zlib-devel #BuildRequires: mingw32-libpng-devel #BuildRequires: mingw32-libjpeg-devel BuildRequires: mingw32-dbus-1-devel BuildRequires: mingw32-win_iconv-devel BuildRequires: mingw32-glib2-devel BuildRequires: mingw32-libxml2-devel # BuildRequires: dos2unix # Requires: mingw32-libopenssl BuildRequires: mingw32-libopenssl-devel # %define _openssl_soname 8 # BuildRequires: python # Url: http://qt.digia.com Summary: C++ Program Library, Core Components License: GPL-3.0 or SUSE-LGPL-2.1-with-digia-exception-1.1 Group: System/Libraries Release: 0 Source: qt-everywhere-%{package_name}-src-%{version}%{package_version}.tar.gz # to get mtime of file: Source1: %{name}.changes # Special cross-compilation qmake target. Source3: mingw32-qmake.conf Source4: qplatformdefs.h # Openssl is loaded at runtime Patch0: libqt4-4.8.4-fix_loading_openssl.diff # Disable WebKit tests that are failing (as of Qt 4.8.0) with # out of source builds. #Patch1: libqt4-4.8.4-no_webkit_tests.diff # The configure script thinks that there is no IPC/shared memory support # for this platform, while there is support. Fix the configure script #Patch2: libqt4-4.8.4-dont-perform-ipc-checks-for-win32.diff # Make sure the QtUiTools are built as a shared library # https://bugreports.qt.nokia.com/browse/QTBUG-20498 Patch3: libqt4-4.8.4-build-qtuitools-dynamically.diff # Upstream this! Patch4: libqt4-4.8.4-fix-include-windows-h.diff Patch5: libqt4-4.8.4-fix-compilation.diff #Patch6: libqt4-4.8.4-do-not-use-mac-defines.diff # # Set the right flags for the compiler Patch7: libqt4-4.8.4-fix_mkspec.diff # BuildRoot: %{_tmppath}/%{name}-%{version}-build Prefix: %{_mingw32_prefix} %define cross_options -xplatform %{_mingw32_qt_platform} -device-option CROSS_COMPILE=%{_mingw32_target}- %define common_options -%{license_type} -confirm-license -verbose -release -prefix %{prefix}/Qt-%{license_type}-%{version}-static %define compiler_options -force-pkg-config -no-rpath %define lib_options -static -iconv -glib -dbus-linked -openssl -qt-zlib -qt-libmng -qt-libtiff -qt-libpng -qt-libjpeg %define make_options -nomake examples -nomake demos -nomake docs %description Qt is a set of libraries for developing applications. This package contains base tools, like string, xml, and network handling. %prep %setup -q -n qt-everywhere-%{package_name}-src-%{version} # %patch0 #%patch1 #%patch2 %patch3 %patch4 %patch5 #%patch6 %patch7 # Cross-compilation qmake target. rm -rf mkspecs/%{_mingw32_qt_platform} mkdir mkspecs/%{_mingw32_qt_platform} cp %{SOURCE3} mkspecs/%{_mingw32_qt_platform}/qmake.conf dos2unix mkspecs/%{_mingw32_qt_platform}/qmake.conf cp %{SOURCE4} mkspecs/%{_mingw32_qt_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 rm -rf ../build mkdir ../build pushd ../build export PKG_CONFIG_PATH=%{_mingw32_libdir}/pkgconfig export CXXFLAGS="-std=gnu++98 -Wno-deprecated" ../qt-everywhere-%{package_name}-src-%{version}/configure %cross_options %common_options %compiler_options %lib_options %make_options make %{?jobs:-j %jobs} popd %install pushd ../build make INSTALL_ROOT=$RPM_BUILD_ROOT install popd find $RPM_BUILD_ROOT/%{prefix}/Qt-%{license_type}-%{version}-static -type f -name '*la' -print \ -exec perl -pi -e 's,-L%{_builddir}/\S+,,g' {} \; find $RPM_BUILD_ROOT/%{prefix}/Qt-%{license_type}-%{version}-static -type f -name '*pc' -print \ -exec perl -pi -e "s, -L$RPM_BUILD_DIR/?\S+,,g" {} \; \ -exec sed -i -e "s,^moc_location=.*,moc_location=%_bindir/moc," {} \; \ -exec sed -i -e "s,^uic_location=.*,uic_location=%_bindir/uic," {} \; \ -exec sed -i -e "s,^rcc_location=.*,rcc_location=%_bindir/rcc," {} \; \ -exec sed -i -e "s,^lupdate_location=.*,lupdate_location=%_bindir/lupdate," {} \; \ -exec sed -i -e "s,^lrelease_location=.*,lrelease_location=%_bindir/lrelease," {} \; ln -sf %{prefix}/Qt-%{license_type}-%{version}-static/bin/lrelease $RPM_BUILD_ROOT/%{prefix}/Qt-%{license_type}-%{version}-static/bin/%{_mingw32_target}-lrelease ln -sf %{prefix}/Qt-%{license_type}-%{version}-static/bin/moc $RPM_BUILD_ROOT/%{prefix}/Qt-%{license_type}-%{version}-static/bin/%{_mingw32_target}-moc ln -sf %{prefix}/Qt-%{license_type}-%{version}-static/bin/qmake $RPM_BUILD_ROOT/%{prefix}/Qt-%{license_type}-%{version}-static/bin/%{_mingw32_target}-qmake ln -sf %{prefix}/Qt-%{license_type}-%{version}-static/bin/rcc $RPM_BUILD_ROOT/%{prefix}/Qt-%{license_type}-%{version}-static/bin/%{_mingw32_target}-rcc ln -sf %{prefix}/Qt-%{license_type}-%{version}-static/bin/uic $RPM_BUILD_ROOT/%{prefix}/Qt-%{license_type}-%{version}-static/bin/%{_mingw32_target}-uic %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,755) %doc README *.txt LICENSE.* %{prefix}/Qt-%{license_type}-%{version}-static %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor