Search
j0ke.net Open Build Service
>
Projects
>
KDE
:
Qt
:
STABLE
>
libQtWebKit-devel
> libqt4.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File libqt4.spec of Package libQtWebKit-devel
# # spec file for package libqt4 (Version 4.6.3) # # Copyright (c) 2010 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/ # # norootforbuild Name: libqt4 BuildRequires: Mesa-devel cups-devel freetype2-devel gcc-c++ libjpeg-devel libmng-devel BuildRequires: libpng-devel libtiff-devel pkgconfig sqlite-devel BuildRequires: fdupes glib2-devel update-desktop-files BuildRequires: dbus-1-devel openssl-devel xorg-x11-devel BuildRequires: alsa-devel gtk2-devel %if %suse_version > 1020 BuildRequires: clucene-core-devel %endif %define with_qt3support 1 %define with_phonon 0 %define with_phonon_backend 0 %if %with_phonon %if %with_phonon_backend BuildRequires: gstreamer-0_10-plugins-base-devel libxine-devel %endif %endif Url: http://www.qtsoftware.com License: GPLv3 ; LGPLv2.1+ Group: System/Libraries AutoReqProv: on Summary: C++ Program Library, Core Components # bug437293 %ifarch ppc64 Obsoletes: qt-64bit %endif # plugindir/codecs/* was moved from libqt4-x11, Ensure seamless update from openSUSE <= 11.1 and SLE <= 11: # See also baselibs.conf. Conflicts: %{name}-x11 <= 4.5.1-2.5 # Obsoletes: qt < 4.4.0 Provides: qt = 4.4.0 Provides: libqt4-dbus-1 = 4.4.0 Obsoletes: libqt4-dbus-1 < 4.4.0 # COMMON-VERSION-BEGIN Version: 4.6.3 Release: 1 %define base_name libqt4 %define x11_free -everywhere-opensource-src- %define rversion 4.6.3 # COMMON-VERSION-END # COMMON-BEGIN Source: qt%x11_free%rversion.tar.bz2 # to get mtime of file: Source1: libqt4.changes Source2: baselibs.conf Source10: qt4config.desktop Source11: designer4.desktop Source12: linguist4.desktop Source13: assistant4.desktop Source14: assistant.png Source15: designer.png Source16: linguist.png Patch2: qt-never-strip.diff Patch3: plastik-default.diff Patch6: use-freetype-default.diff Patch1006: use-freetype-default-legacy.diff Patch8: link-tools-shared.diff Patch39: 0191-listview-alternate-row-colors.diff Patch40: 0188-fix-moc-parser-same-name-header.diff Patch41: konsole-nvidia-font-speed.diff Patch43: 0195-compositing-properties.diff Patch55: ignore-global-advance-width-in-fonts.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 Patch102: 0253-qmake_correct_path_separators.diff Patch107: webkit-ia64_s390x.patch Patch108: minimal-toc-for-webkit.diff Patch109: libqt4-libtool-nodate.diff Patch113: ppc64-webkit-link-fix.diff Patch115: qgtkstyle-no-gtk-crash.diff Patch117: bnc610578.diff Patch118: rcc-stable-dirlisting.diff Patch119: SSL-error-endless-loop.diff Patch120: qtwebkit-initialize-gtk.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %define common_options --opensource -fast -no-separate-debug-info -shared -xkb -xrender -xcursor -dbus-linked -xfixes -xrandr -xinerama -sm -no-nas-sound -no-rpath -system-libjpeg -system-libpng -accessibility -cups -stl -nis -system-zlib -qt-gif -prefix /usr -L %_libdir -libdir %_libdir -docdir %_docdir/%{base_name} -examplesdir %_libdir/qt4/examples -demosdir %_libdir/qt4/demos -plugindir %plugindir -translationdir /usr/share/qt4/translations -iconv -sysconfdir /etc/settings -datadir /usr/share/qt4/ -no-pch -reduce-relocations -exceptions -system-libtiff -glib -optimized-qmake -no-webkit -no-xmlpatterns -system-sqlite -qt3support -no-sql-mysql -xsync -xinput -gtkstyle %define check_config \ grep '# define' src/corelib/global/qconfig.h | egrep -v 'QT_(ARCH|USE)'; \ if test -f /usr/share/qt4/mkspecs/qconfig.pri ; then \ cmp /usr/share/qt4/mkspecs/qconfig.pri mkspecs/qconfig.pri || exit 1; \ fi \ %description Qt is a set of libraries for developing applications. This package contains base tools, like string, xml, and network handling. Authors: -------- Qt Software %prep %define plugindir %_libdir/qt4/plugins %setup -q -n qt%x11_free%rversion %patch2 %patch3 %if %suse_version > 1010 %patch6 %else %patch1006 %endif # needs rediffing #%patch8 %patch39 %patch40 %patch41 %patch43 %patch55 %patch60 # bnc#374073 comment #8 # %patch61 %patch70 %patch75 %patch87 %patch101 %patch102 %patch107 %patch108 %patch109 %patch113 %patch115 %patch117 -p1 %patch118 -p1 %patch119 -p1 %patch120 # be sure not to use them rm -rf src/3rdparty/{libjpeg,freetype,libpng,zlib,libtiff} # COMMON-END %package devel License: GPLv2 ; GPLv3 Group: Development/Libraries/X11 Summary: Qt Development Kit Requires: zlib-devel c++_compiler pkgconfig Requires: freetype2-devel libmng-devel libpng-devel libtiff-devel Requires: xorg-x11-devel Mesa-devel dbus-1-devel openssl-devel Requires: glib2-devel sqlite-devel Requires: %name = %version Requires: libqt4-sql-sqlite >= %version # bug437293 %ifarch ppc64 Obsoletes: qt-devel-64bit %endif # Provides: dbus-1-qt-devel = 0.63 Provides: qt-devel = 4.4.0 Provides: dbus-1-qt = 0.63 Provides: qt-dbus-1 = 4.2.0 Obsoletes: dbus-1-qt < 0.63 Obsoletes: qt-dbus-1 < 4.2.0 Obsoletes: dbus-1-qt-devel < 0.63 Obsoletes: qt-devel < 4.4.0 %description devel You need this package, if you want to compile programs with Qt. It contains the "Qt Crossplatform Development Kit". It does contain include files and development applications like GUI designers, translator tools and code generators. Authors: -------- Qt Software %package -n libqt4-sql-sqlite License: GPLv2 ; GPLv3 Group: Development/Libraries/C and C++ Summary: Qt 4 sqlite plugin Requires: libqt4-sql = %version Provides: libqt4_sql_backend = %version Obsoletes: qt-sql-sqlite < 4.4.0 Provides: qt-sql-sqlite = 4.4.0 %description -n libqt4-sql-sqlite Qt 4 sqlite plugin to be able to use database functionality with Qt applications without the need to setup a SQL server. Authors: -------- Qt Software %package x11 License: GPLv2 ; GPLv3 Group: Development/Libraries/C and C++ Summary: Qt 4 GUI related libraries # bug437293 %ifarch ppc64 Obsoletes: qt-x11-64bit %endif # Obsoletes: qt-x11 < 4.4.0 Provides: qt-x11 = 4.4.0 Requires: %name = %version %description x11 Qt 4 libraries which are used for drawing widgets and OpenGL items. Authors: -------- Qt Software %if %with_qt3support %package qt3support License: GPLv2 ; GPLv3 Group: System/Libraries Summary: C++ Program Library, Core Components # bug437293 %ifarch ppc64 Obsoletes: qt-qt3support-64bit %endif # Obsoletes: qt-qt3support Provides: qt-qt3support Requires: %name = %version %description qt3support Qt is a set of libraries for developing applications. This package contains base tools, like string, xml, and network handling. Authors: -------- Qt Software %endif %package sql License: GPLv2 ; GPLv3 Group: Development/Libraries/C and C++ Summary: Qt 4 SQL related libraries # bug437293 %ifarch ppc64 Obsoletes: qt-sql-64bit %endif # Obsoletes: qt-sql < 4.4.0 Provides: qt-sql = 4.4.0 Requires: %name = %version Recommends: libqt4_sql_backend = %version Suggests: libqt4-sql-sqlite %description sql Qt 4 libraries which are used for connection with an SQL server. You will need also a plugin package for a supported SQL server. Authors: -------- Qt Software %package -n libQtWebKit4 License: GPLv2 ; GPLv3 Group: Development/Libraries/C and C++ Summary: Open source Web Browser engine based on Qt4 Requires: libqt4-x11 = %version %description -n libQtWebKit4 WebKit is an open source web browser engine. WebKit's HTML and JavaScript code began as a branch of the KHTML and KJS libraries from KDE. As part of KDE framework KHTML was based on Qt but during their porting efforts Apple's engineers made WebKit toolkit independent. WebKit Qt is a project aiming at porting this fabulous engine back to Qt. Authors: -------- Qt Software %package -n libQtWebKit-devel License: GPLv2 ; GPLv3 Group: Development/Libraries/C and C++ Summary: Open source Web Browser engine based on Qt4 Requires: libQtWebKit4 = %version Requires: libqt4-devel = %version %description -n libQtWebKit-devel WebKit is an open source web browser engine. WebKit's HTML and JavaScript code began as a branch of the KHTML and KJS libraries from KDE. As part of KDE framework KHTML was based on Qt but during their porting efforts Apple's engineers made WebKit toolkit independent. WebKit Qt is a project aiming at porting this fabulous engine back to Qt. Authors: -------- Qt Software %if %with_phonon %package -n phonon License: LGPLv2.0+ Summary: Phonon Multimedia Platform Abstraction Group: Development/Libraries/KDE Requires: phonon-backend = %version Requires: libphonon4 = %version %description -n phonon 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. Authors: -------- Matthias Kretz %package -n phonon-devel License: LGPLv2.0+ Summary: Phonon Multimedia Platform Abstraction Group: Development/Libraries/KDE Requires: %name = %version Requires: libphonon4 = %version Requires: libqt4-devel %description -n phonon-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. Authors: -------- Matthias Kretz %package -n libphonon4 License: LGPLv2.0+ Summary: Phonon Multimedia Platform Abstraction Group: Development/Libraries/KDE %requires_ge libqt4-x11 %description -n libphonon4 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. Authors: -------- Matthias Kretz %if %with_phonon_backend %package -n phonon-backend-gstreamer-0_10 License: LGPLv2.0+ Summary: Phonon Multimedia Platform Abstraction Group: Development/Libraries/KDE Provides: phonon-backend = %version Requires: libphonon4 = %version %description backend-gstreamer-0_10 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. Authors: -------- Matthias Kretz %package -n phonon-backend-xine License: LGPLv2.0+ Summary: Phonon Multimedia Platform Abstraction Group: Development/Libraries/KDE Provides: phonon-backend = %version Requires: libphonon4 = %version Supplements: packageand(libxine1-codecs:phonon) %description backend-xine 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. Authors: -------- Matthias Kretz %endif %endif %build export QTDIR=$PWD export PATH=$PWD/bin:$PATH export LD_LIBRARY_PATH=$PWD/lib/ %ifarch ppc64 RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mminimal-toc" %endif sed -i -e "/^QMAKE_CFLAGS_RELEASE[ \t]*+=/s,\$, $RPM_OPT_FLAGS," mkspecs/common/g++.conf export CXXFLAGS="$CXXFLAGS $RPM_OPT_FLAGS" export CFLAGS="$CFLAGS $RPM_OPT_FLAGS" export MAKEFLAGS="%{?jobs:-j %jobs}" touch translations/qt_de.qm %ifarch sparc64 platform="-platform linux-g++-64" %else platform="" %endif # Record mtime of changes file instead of build time CHANGES=`stat --format="%y" %SOURCE1|cut --characters=1-10` sed -i -e "s/qt_instdate=\$TODAY/qt_instdate=$CHANGES/" configure echo yes | ./configure %common_options $platform \ -plugin-sql-sqlite -nomake examples -nomake demos -webkit -xmlpatterns %check_config test -s translations/qt_de.qm || rm translations/qt_de.qm make %{?jobs:-j %jobs} for i in translations/*.ts; do LD_LIBRARY_PATH=$PWD/lib bin/lrelease $i -qm ${i/.ts/.qm} done %install make INSTALL_ROOT=$RPM_BUILD_ROOT install # argggh, qmake is such a piece of <censored> find $RPM_BUILD_ROOT/%_libdir -type f -name '*prl' -exec perl -pi -e "s, -L$RPM_BUILD_DIR/\S+,,g" {} \; find $RPM_BUILD_ROOT/%_libdir -type f -name '*prl' -exec sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" {} \; #find $RPM_BUILD_ROOT/%_docdir/%name -type f -name 'lib*.a' -exec rm {} \; find $RPM_BUILD_ROOT/%_libdir -type f -name '*la' -print -exec perl -pi -e "s, -L$RPM_BUILD_DIR/?\S+,,g" {} \; # insanity ... find $RPM_BUILD_ROOT/%_libdir -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=/usr/bin/moc," -e "s,uic_location=.*,uic_location=/usr/bin/uic," {} \; find $RPM_BUILD_ROOT/%_libdir/ -name 'lib*.a' -exec chmod -x -- {} \; mkdir -p $RPM_BUILD_ROOT/%plugindir/sqldrivers #install qdoc3 install -m 755 bin/qdoc3 $RPM_BUILD_ROOT/usr/bin/ # packaged in devel-doc rm $RPM_BUILD_ROOT/usr/bin/{qcollectiongenerator,assistant,assistant_adp} # some packages expect these symlinks ln -s /usr/include $RPM_BUILD_ROOT/%_libdir/qt4/include ln -s %_libdir $RPM_BUILD_ROOT/%_libdir/qt4/lib ln -s %_bindir $RPM_BUILD_ROOT/%_libdir/qt4/bin %fdupes %{buildroot}/usr/include # # we do not package qvfb, and assistant in devel-doc # rm $RPM_BUILD_ROOT/usr/share/qt4/translations/qvfb_*.qm rm $RPM_BUILD_ROOT/usr/share/qt4/translations/assistant_*.qm # # install menu entries # %suse_update_desktop_file -i qt4config Qt Utility DesktopSettings %suse_update_desktop_file -i designer4 Qt Development GUIDesigner %suse_update_desktop_file -i linguist4 Qt Development Translation %clean rm -rf $RPM_BUILD_ROOT # no baselibs supplements for older distros %if %suse_version < 1110 sed -i -e 's, supplements .*,,' $RPM_SOURCE_DIR/baselibs.conf %endif %post -p /sbin/ldconfig %post x11 -p /sbin/ldconfig %if %with_qt3support %post qt3support -p /sbin/ldconfig %postun qt3support -p /sbin/ldconfig %endif %post sql -p /sbin/ldconfig %postun -p /sbin/ldconfig %postun x11 -p /sbin/ldconfig %postun sql -p /sbin/ldconfig %post -n libQtWebKit4 -p /sbin/ldconfig %postun -n libQtWebKit4 -p /sbin/ldconfig %if %with_phonon %post -n libphonon4 -p /sbin/ldconfig %postun -n libphonon4 -p /sbin/ldconfig %endif %files %defattr(-,root,root,755) %doc changes-* *.txt LICENSE.GPL3 LICENSE.LGPL %dir %_libdir/qt4 %dir %plugindir %dir %plugindir/script %dir %plugindir/codecs %dir /usr/share/qt4/translations %plugindir/codecs/* %dir /usr/share/qt4 %_libdir/libQtDBus*.so.* %_libdir/libQtCore*.so.* %_libdir/libQtNetwork*.so.* %_libdir/libQtXml.so.* %_libdir/libQtTest.so.* %_libdir/libQtCLucene.so.* /usr/bin/qdbus /usr/share/qt4/translations/qt_*.qm %files x11 %defattr(-,root,root,755) %if %with_qt3support %exclude %plugindir/accessible/libqtaccessiblecompatwidgets.so /usr/bin/qtconfig %endif /usr/bin/qdbusviewer /usr/share/applications/qt4config.desktop # designer.png is referenced by qt4config.desktop /usr/share/pixmaps/designer.png %_libdir/libQtGui*.so.* %_libdir/libQtOpenGL*.so.* %_libdir/libQtSvg.so.* %_libdir/libQtScript.so.* %_libdir/libQtScriptTools.so.* %_libdir/libQtDesigner*.so.* %_libdir/libQtAssistantClient.so.* %_libdir/libQtHelp.so.* %_libdir/libQtMultimedia.so.* %dir %plugindir/iconengines %dir %plugindir/imageformats %dir %plugindir/inputmethods %dir %plugindir/accessible %dir %plugindir/graphicssystems %plugindir/iconengines/* %plugindir/imageformats/* %plugindir/inputmethods/* %plugindir/accessible/* %plugindir/graphicssystems/* /usr/share/qt4/phrasebooks /usr/share/qt4/translations/qtconfig_*.qm %plugindir/script/libqtscriptdbus.so %if %with_qt3support %files qt3support %defattr(-,root,root,755) %_libdir/libQt3Support*.so.* %plugindir/accessible/libqtaccessiblecompatwidgets.so %endif %files -n libQtWebKit4 %defattr(-,root,root,755) /usr/bin/xmlpatterns /usr/bin/xmlpatternsvalidator %_libdir/libQtWebKit.so.* %_libdir/libQtXmlPatterns.so.* %files -n libQtWebKit-devel %defattr(-,root,root,755) /usr/include/QtWebKit /usr/include/QtXmlPatterns %_libdir/libQtXmlPatterns.so %_libdir/libQtXmlPatterns.prl %_libdir/libQtXmlPatterns.la %_libdir/libQtWebKit.so %_libdir/libQtWebKit.prl %_libdir/libQtWebKit.la %_libdir/pkgconfig/QtWebKit.pc %_libdir/pkgconfig/QtXmlPatterns.pc %files devel %defattr(-,root,root,755) %exclude %_libdir/libQtWebKit.prl %exclude %_libdir/libQtXmlPatterns.prl /usr/bin/rcc /usr/bin/uic %if %with_qt3support /usr/bin/uic3 %endif /usr/bin/qttracereplay /usr/bin/qdoc3 /usr/bin/moc /usr/bin/qmake /usr/bin/designer /usr/bin/linguist /usr/bin/lrelease /usr/bin/lupdate /usr/bin/lconvert /usr/bin/pixeltool /usr/bin/qt3to4 /usr/bin/qdbuscpp2xml /usr/bin/qdbusxml2cpp /usr/bin/qhelpgenerator /usr/bin/qhelpconverter %_libdir/lib*.prl %_libdir/lib*a %_libdir/lib*.so %_libdir/pkgconfig/* %_libdir/qt4/lib /usr/include/Qt %if %with_qt3support %plugindir/designer /usr/include/Qt3Support %endif /usr/include/QtAssistant /usr/include/QtCore /usr/include/QtDBus /usr/include/QtDesigner /usr/include/QtGui /usr/include/QtHelp /usr/include/QtMultimedia /usr/include/QtNetwork /usr/include/QtOpenGL /usr/include/QtScript /usr/include/QtScriptTools /usr/include/QtSql /usr/include/QtSvg /usr/include/QtTest /usr/include/QtUiTools /usr/include/QtXml /usr/share/applications/designer4.desktop /usr/share/applications/linguist4.desktop /usr/share/pixmaps/linguist.png %_libdir/qt4/include %_libdir/qt4/bin %dir /usr/share/qt4 /usr/share/qt4/translations/designer_*.qm /usr/share/qt4/translations/linguist_*.qm /usr/share/qt4/mkspecs /usr/share/qt4/q3porting.xml %files sql %defattr(-,root,root,755) %dir %plugindir/sqldrivers %_libdir/libQtSql*.so.* %files -n libqt4-sql-sqlite %defattr(-,root,root,755) %plugindir/sqldrivers/libqsqlite*.so %if %with_phonon %files -n phonon %defattr(-,root,root) %dir %plugindir/phonon_backend #/usr/share/dbus-1/interfaces/org.kde.Phonon.AudioOutput.xml %files -n libphonon4 %defattr(-,root,root) %_libdir/libphonon.so.* %files -n phonon-devel %defattr(-,root,root) %dir /usr/include/phonon /usr/include/phonon %_libdir/libphonon.so %_libdir/pkgconfig/phonon.pc %if %with_phonon_backend %files -n phonon-backend-gstreamer-0_10 %defattr(-,root,root) %plugindir/phonon_backend/phonon_gstreamer.so %_kde_share_dir/services/phononbackends/gstreamer.desktop %files -n phonon-backend-xine %defattr(-,root,root) %_kde4_modules/plugins/phonon_backend/phonon_xine.so %_kde_share_dir/services/phononbackends/xine.desktop /usr/share/icons/*/*/apps/phonon-xine.* %endif %endif %changelog