|
@@ -25,13 +25,16 @@
|
|
|
|
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
|
|
|
|
|
+# enable kde-qt integration/patches
|
|
|
|
+%define kde_qt 1
|
|
|
|
+
|
|
# See http://bugzilla.redhat.com/223663
|
|
# See http://bugzilla.redhat.com/223663
|
|
%define multilib_archs x86_64 %{ix86} ppc64 ppc s390x s390 sparc64 sparcv9
|
|
%define multilib_archs x86_64 %{ix86} ppc64 ppc s390x s390 sparc64 sparcv9
|
|
|
|
|
|
Summary: Qt toolkit
|
|
Summary: Qt toolkit
|
|
Summary(ja): Qt ツールキット
|
|
Summary(ja): Qt ツールキット
|
|
Name: qt4
|
|
Name: qt4
|
|
-Version: 4.7.1
|
|
|
|
|
|
+Version: 4.7.2
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
|
|
|
|
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
|
|
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
|
|
@@ -45,18 +48,12 @@ Source4: Trolltech.conf
|
|
# header file to workaround multilib issue
|
|
# header file to workaround multilib issue
|
|
Source5: qconfig-multilib.h
|
|
Source5: qconfig-multilib.h
|
|
|
|
|
|
-# gstreamer logos
|
|
|
|
-Source10: http://gstreamer.freedesktop.org/data/images/artwork/gstreamer-logo.svg
|
|
|
|
-Source11: hi16-phonon-gstreamer.png
|
|
|
|
-Source12: hi22-phonon-gstreamer.png
|
|
|
|
-Source13: hi32-phonon-gstreamer.png
|
|
|
|
-Source14: hi48-phonon-gstreamer.png
|
|
|
|
-Source15: hi64-phonon-gstreamer.png
|
|
|
|
-Source16: hi128-phonon-gstreamer.png
|
|
|
|
-
|
|
|
|
# desktop files
|
|
# desktop files
|
|
-Source21: designer.desktop
|
|
|
|
-Source22: linguist.desktop
|
|
|
|
|
|
+Source20: assistant.desktop.vine
|
|
|
|
+Source21: designer.desktop.vine
|
|
|
|
+Source22: linguist.desktop.vine
|
|
|
|
+Source23: qtdemo.desktop.vine
|
|
|
|
+Source24: qtconfig.desktop.vine
|
|
|
|
|
|
# upstream qt4-logo, http://trolltech.com/images/products/qt/qt4-logo
|
|
# upstream qt4-logo, http://trolltech.com/images/products/qt/qt4-logo
|
|
Source30: hi128-app-qt4-logo.png
|
|
Source30: hi128-app-qt4-logo.png
|
|
@@ -83,7 +80,7 @@ Patch19: qt-everywhere-opensource-src-4.7.0-beta2-phonon_servicesfile.patch
|
|
Patch23: qt-everywhere-opensource-src-4.6.3-glib_eventloop_nullcheck.patch
|
|
Patch23: qt-everywhere-opensource-src-4.6.3-glib_eventloop_nullcheck.patch
|
|
|
|
|
|
# remove dependency of webkit in assistant
|
|
# remove dependency of webkit in assistant
|
|
-Patch24: qt-everywhere-opensource-src-4.7.1-webkit.patch
|
|
|
|
|
|
+Patch24: qt-everywhere-opensource-src-4.7.1-assistant_no_webkit.patch
|
|
|
|
|
|
## upstreamable bits
|
|
## upstreamable bits
|
|
# fix invalid inline assembly in qatomic_{i386,x86_64}.h (de)ref implementations
|
|
# fix invalid inline assembly in qatomic_{i386,x86_64}.h (de)ref implementations
|
|
@@ -118,22 +115,12 @@ Patch64: qt-everywhere-opensource-src-4.7.1-QTBUG-14467.patch
|
|
Patch65: qt-everywhere-opensource-src-4.7.1-qtreeview-kpackagekit-crash.patch
|
|
Patch65: qt-everywhere-opensource-src-4.7.1-qtreeview-kpackagekit-crash.patch
|
|
|
|
|
|
# upstream patches
|
|
# upstream patches
|
|
-# Reordering of Malayalam Rakar not working properly
|
|
|
|
-Patch100: qt-everywhere-opensource-src-4.7.1-ml_IN-bz528303.patch
|
|
|
|
-
|
|
|
|
-# fix QTextCursor crash in Lokalize and Psi (QTBUG-15857, kde#249373, #660028)
|
|
|
|
-# http://qt.gitorious.org/qt/qt/commit/6ae84f1183e91c910ca92a55e37f8254ace805c0
|
|
|
|
-Patch101: qt-everywhere-opensource-src-4.7.1-qtextcursor-crash.patch
|
|
|
|
-# followup for regressions
|
|
|
|
-# http://qt.gitorious.org/qt/qt/commit/34c297faca93e1286573b2a01127e4e7af00aff2.patch
|
|
|
|
-Patch102: qt-everywhere-opensource-4.7.1-QTBUG-15857-2.patch
|
|
|
|
-
|
|
|
|
-# qsortfilterproxymodel merge, http://qt.gitorious.org/qt/qt/merge_requests/934
|
|
|
|
-Patch103: qt-everywhere-opensource-src-4.7.1-qsortfilterproxymodel_merge934.patch
|
|
|
|
|
|
+# adds debug support to webkit/JavaScriptCore
|
|
|
|
+# UPSTREAM ME
|
|
|
|
+Patch105: qt-everywhere-opensource-src-4.7.1-webkit_debug_javascriptcore.patch
|
|
|
|
|
|
# kde-qt git patches
|
|
# kde-qt git patches
|
|
Patch202: 0002-This-patch-makes-override-redirect-windows-popup-men.patch
|
|
Patch202: 0002-This-patch-makes-override-redirect-windows-popup-men.patch
|
|
-Patch204: 0004-This-patch-adds-support-for-using-isystem-to-allow-p.patch
|
|
|
|
Patch205: 0005-When-tabs-are-inserted-or-removed-in-a-QTabBar.patch
|
|
Patch205: 0005-When-tabs-are-inserted-or-removed-in-a-QTabBar.patch
|
|
Patch212: 0012-Add-context-to-tr-calls-in-QShortcut.patch
|
|
Patch212: 0012-Add-context-to-tr-calls-in-QShortcut.patch
|
|
|
|
|
|
@@ -142,33 +129,33 @@ Patch300: qt-everywhere-opensource-src-4.7.0-CVE-2010-1822-crash-svg-image.patch
|
|
|
|
|
|
# Vine Patches
|
|
# Vine Patches
|
|
# use system ca-bundle certs, http://bugzilla.redhat.com/521911
|
|
# use system ca-bundle certs, http://bugzilla.redhat.com/521911
|
|
-Patch1022: qt-x11-opensource-src-4.7.1-system_ca_certificates_vine.patch
|
|
|
|
|
|
+Patch1022: qt-everywhere-opensource-src-4.7.2-system_ca_certificates_vine.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
-%if %{?_dist_release} == "vl4"
|
|
|
|
-BuildRequires: gcc4 gcc4-c++ XOrg-devel XOrg-gl-devel
|
|
|
|
-%else
|
|
|
|
-# Vine Linux 5+
|
|
|
|
-BuildRequires: fontconfig-devel
|
|
|
|
-BuildRequires: libICE-devel libSM-devel libXcursor-devel
|
|
|
|
-BuildRequires: libXext-devel libXfixes-devel libXft-devel
|
|
|
|
-BuildRequires: libXi-devel libXinerama-devel libXrandr-devel
|
|
|
|
-BuildRequires: libXrender-devel libXt-devel libX11-devel
|
|
|
|
-BuildRequires: libxkbfile-devel xorg-x11-proto-devel
|
|
|
|
-BuildRequires: mesa-libGL-devel mesa-libGLU-devel
|
|
|
|
-BuildRequires: WebKit-gtk-devel
|
|
|
|
-%endif
|
|
|
|
-BuildRequires: glib2-devel gtk2-devel
|
|
|
|
-BuildRequires: libpng-devel >= 1.2.5
|
|
|
|
-BuildRequires: libmng-devel libtiff-devel libjpeg-devel freetype2-devel
|
|
|
|
-BuildRequires: zlib-devel libungif-devel openssl-devel
|
|
|
|
BuildRequires: alsa-lib-devel
|
|
BuildRequires: alsa-lib-devel
|
|
BuildRequires: cups-devel >= 1.1.9
|
|
BuildRequires: cups-devel >= 1.1.9
|
|
BuildRequires: dbus-devel >= 0.62
|
|
BuildRequires: dbus-devel >= 0.62
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: desktop-file-utils
|
|
-%if %{phonon}
|
|
|
|
-BuildRequires: gstreamer-devel gstreamer-plugins-base-devel
|
|
|
|
-%endif
|
|
|
|
|
|
+BuildRequires: findutils
|
|
|
|
+BuildRequires: fontconfig-devel
|
|
|
|
+BuildRequires: glib2-devel
|
|
|
|
+# -gtk-style
|
|
|
|
+BuildRequires: gtk2-devel
|
|
|
|
+BuildRequires: libjpeg-devel
|
|
|
|
+BuildRequires: libmng-devel
|
|
|
|
+BuildRequires: libpng-devel >= 1.2.5
|
|
|
|
+BuildRequires: libtiff-devel
|
|
|
|
+BuildRequires: NetworkManager-devel
|
|
|
|
+BuildRequires: openssl-devel
|
|
|
|
+BuildRequires: pkgconfig
|
|
|
|
+BuildRequires: pulseaudio-libs-devel
|
|
|
|
+BuildRequires: WebKit-gtk-devel
|
|
|
|
+BuildRequires: zlib-devel
|
|
|
|
+
|
|
|
|
+# X11 dependencies
|
|
|
|
+%define x_deps libICE-devel libSM-devel libXcursor-devel libXext-devel libXfixes-devel libXft-devel libXi-devel libXinerama-devel libXrandr-devel libXrender-devel libXt-devel libXv-devel libX11-devel xorg-x11-proto-devel libGL-devel libGLU-devel
|
|
|
|
+BuildRequires: %{x_deps}
|
|
|
|
+
|
|
%if %{MySQL}
|
|
%if %{MySQL}
|
|
BuildRequires: MySQL-devel
|
|
BuildRequires: MySQL-devel
|
|
%endif
|
|
%endif
|
|
@@ -186,9 +173,10 @@ BuildRequires: sqlite3-devel
|
|
Requires: libexpat
|
|
Requires: libexpat
|
|
Requires: libpng >= 1.2.5
|
|
Requires: libpng >= 1.2.5
|
|
|
|
|
|
-%if %{?_dist_release} != "vl4"
|
|
|
|
Provides: WebKit-qt
|
|
Provides: WebKit-qt
|
|
-%endif
|
|
|
|
|
|
+
|
|
|
|
+Obsoletes: qgtkstyle < 0.1
|
|
|
|
+Provides: qgtkstyle = 0.1-1
|
|
|
|
|
|
%description
|
|
%description
|
|
Qt is a GUI software toolkit which simplifies the task of writing and
|
|
Qt is a GUI software toolkit which simplifies the task of writing and
|
|
@@ -200,38 +188,48 @@ Qt is written in C++ and is fully object-oriented.
|
|
This package contains the shared library needed to run qt
|
|
This package contains the shared library needed to run qt
|
|
applications, as well as the README files for qt.
|
|
applications, as well as the README files for qt.
|
|
|
|
|
|
|
|
+
|
|
|
|
+%package config
|
|
|
|
+Summary: Graphical configuration tool for programs using Qt 4
|
|
|
|
+Group: User Interface/Desktops
|
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
|
+Requires(post): alternatives
|
|
|
|
+Requires(postun): alternatives
|
|
|
|
+
|
|
|
|
+%description config
|
|
|
|
+%{summary}.
|
|
|
|
+
|
|
|
|
+
|
|
%package designer
|
|
%package designer
|
|
Summary: Interface designer (IDE) for the Qt toolkit
|
|
Summary: Interface designer (IDE) for the Qt toolkit
|
|
|
|
+Summary(ja): Qt ツールキットのインターフェースデザイナ
|
|
Group: Applications/Development
|
|
Group: Applications/Development
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
-Requires(post): alternatives
|
|
|
|
|
|
+Requires(post): alternatives
|
|
Requires(postun): alternatives
|
|
Requires(postun): alternatives
|
|
|
|
|
|
%description designer
|
|
%description designer
|
|
The qt-designer package contains an User Interface designer tool
|
|
The qt-designer package contains an User Interface designer tool
|
|
for the Qt toolkit.
|
|
for the Qt toolkit.
|
|
|
|
|
|
|
|
+
|
|
%package devel
|
|
%package devel
|
|
Summary: Development files for the Qt GUI toolkit.
|
|
Summary: Development files for the Qt GUI toolkit.
|
|
Summary(ja): Qt ツールキットの開発用ファイル
|
|
Summary(ja): Qt ツールキットの開発用ファイル
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
-Requires: libICE-devel libSM-devel libXcursor-devel
|
|
|
|
-Requires: libXext-devel libXfixes-devel libXft-devel
|
|
|
|
-Requires: libXi-devel libXinerama-devel libXrandr-devel
|
|
|
|
-Requires: libXrender-devel libXt-devel libX11-devel
|
|
|
|
-Requires: libxkbfile-devel xorg-x11-proto-devel
|
|
|
|
-Requires: mesa-libGL-devel mesa-libGLU-devel
|
|
|
|
|
|
+Requires: %{x_deps}
|
|
Requires: libpng-devel
|
|
Requires: libpng-devel
|
|
Requires: libjpeg-devel
|
|
Requires: libjpeg-devel
|
|
-Requires(post): alternatives
|
|
|
|
|
|
+Requires: pkgconfig
|
|
|
|
+Requires(post): alternatives
|
|
Requires(postun): alternatives
|
|
Requires(postun): alternatives
|
|
-Provides: WebKit-qt-devel
|
|
|
|
|
|
+Provides: WebKit-qt-devel
|
|
|
|
|
|
%description devel
|
|
%description devel
|
|
This package contains the files necessary to develop
|
|
This package contains the files necessary to develop
|
|
-applications using the Qt toolkit. Includes:
|
|
|
|
-Qt Linguist
|
|
|
|
|
|
+applications using the Qt toolkit.
|
|
|
|
+
|
|
|
|
|
|
%package doc
|
|
%package doc
|
|
Summary: API documentation for Qt4
|
|
Summary: API documentation for Qt4
|
|
@@ -243,17 +241,21 @@ Requires: %{name} = %{version}-%{release}
|
|
%{summary}.
|
|
%{summary}.
|
|
|
|
|
|
%description doc -l ja
|
|
%description doc -l ja
|
|
-%{summary}.
|
|
|
|
|
|
+Qt4 の API ドキュメントです.
|
|
|
|
|
|
|
|
|
|
-%package -n phonon-backend-gstreamer
|
|
|
|
-Summary: Gstreamer phonon backend
|
|
|
|
-Group: Applications/Multimedia
|
|
|
|
-Requires: phonon >= 4.3.1
|
|
|
|
-#Provides: phonon-backend = 4.3.1-100%{?_dist_release}
|
|
|
|
|
|
+%package tools
|
|
|
|
+Summary: Qt 4 development tools
|
|
|
|
+Summary(ja): Qt 4 開発ツール集
|
|
|
|
+Group: Development/Tools
|
|
|
|
+Requires: %{name}-devel = %{version}-%{release}
|
|
|
|
+Requires: %{name}-sqlite = %{version}-%{release}
|
|
|
|
+Requires(post): alternatives
|
|
|
|
+Requires(postun): alternatives
|
|
|
|
+
|
|
|
|
+%description tools
|
|
|
|
+This package contains tools used to assist in Qt 4 development.
|
|
|
|
|
|
-%description -n phonon-backend-gstreamer
|
|
|
|
-%{summary}.
|
|
|
|
|
|
|
|
%package MySQL
|
|
%package MySQL
|
|
Summary: MySQL drivers for Qt's SQL classes.
|
|
Summary: MySQL drivers for Qt's SQL classes.
|
|
@@ -289,7 +291,8 @@ SQLite driver for Qt's SQL classes (QSQL)
|
|
|
|
|
|
# compat32
|
|
# compat32
|
|
%package -n compat32-%{name}
|
|
%package -n compat32-%{name}
|
|
-Summary: The shared library for the Qt GUI toolkit.
|
|
|
|
|
|
+Summary: Qt toolkit
|
|
|
|
+Summary(ja): Qt ツールキット
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
@@ -305,21 +308,15 @@ applications, as well as the README files for qt.
|
|
|
|
|
|
%package -n compat32-%{name}-devel
|
|
%package -n compat32-%{name}-devel
|
|
Summary: Development files and documentation for the Qt GUI toolkit.
|
|
Summary: Development files and documentation for the Qt GUI toolkit.
|
|
|
|
+Summary(ja): Qt ツールキットの開発用ファイル
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
Requires: compat32-%{name} = %{version}-%{release}
|
|
Requires: compat32-%{name} = %{version}-%{release}
|
|
|
|
|
|
%description -n compat32-%{name}-devel
|
|
%description -n compat32-%{name}-devel
|
|
-The qt-devel package contains the files necessary to develop
|
|
|
|
-applications using the Qt GUI toolkit: the header files, the Qt meta
|
|
|
|
-object compiler, the man pages, the HTML documentation and example
|
|
|
|
-programs. See http://www.trolltech.com/products/qt.html for more
|
|
|
|
-information about Qt, or look at
|
|
|
|
-/usr/share/doc/qt-devel-%{version}/html/index.html, which provides Qt
|
|
|
|
-documentation in HTML format.
|
|
|
|
|
|
+This package contains the files necessary to develop
|
|
|
|
+applications using the Qt toolkit.
|
|
|
|
|
|
-Install qt-devel if you want to develop GUI applications using the Qt
|
|
|
|
-toolkit.
|
|
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q -n qt-everywhere-opensource-src-%{version}
|
|
%setup -q -n qt-everywhere-opensource-src-%{version}
|
|
@@ -328,7 +325,8 @@ toolkit.
|
|
#patch16 -p1 -b .kde4_plugins
|
|
#patch16 -p1 -b .kde4_plugins
|
|
%patch19 -p1 -b .phonon_servicesfile
|
|
%patch19 -p1 -b .phonon_servicesfile
|
|
%patch23 -p1 -b .glib_eventloop_nullcheck
|
|
%patch23 -p1 -b .glib_eventloop_nullcheck
|
|
-%patch24 -p1 -b .webkit
|
|
|
|
|
|
+## make -assistant subpkg instead (#660287#9)
|
|
|
|
+#patch24 -p1 -b .assistant_no_webkit
|
|
## TODO: still worth carrying? if so, upstream it.
|
|
## TODO: still worth carrying? if so, upstream it.
|
|
%patch53 -p1 -b .qatomic-inline-asm
|
|
%patch53 -p1 -b .qatomic-inline-asm
|
|
## TODO: upstream me
|
|
## TODO: upstream me
|
|
@@ -345,15 +343,11 @@ toolkit.
|
|
%patch65 -p1 -b .qtreeview-kpackagekit-crash
|
|
%patch65 -p1 -b .qtreeview-kpackagekit-crash
|
|
|
|
|
|
# upstream patches
|
|
# upstream patches
|
|
-%patch100 -p1 -b .ml_IN-rendering
|
|
|
|
-%patch101 -p1 -b .qtextcursor-crash
|
|
|
|
-%patch102 -p1 -b .QTBUG-15857-2
|
|
|
|
-%patch103 -p1 -b .qsortfilterproxymodel_merge934
|
|
|
|
|
|
+%patch105 -p1 -b .webkit_debug_javascriptcore
|
|
|
|
|
|
# kde-qt branch
|
|
# kde-qt branch
|
|
%if 0%{?kde_qt}
|
|
%if 0%{?kde_qt}
|
|
%patch202 -p1 -b .kde-qt-0002
|
|
%patch202 -p1 -b .kde-qt-0002
|
|
-%patch204 -p1 -b .kde-qt-0004
|
|
|
|
%patch205 -p1 -b .kde-qt-0005
|
|
%patch205 -p1 -b .kde-qt-0005
|
|
%patch212 -p1 -b .kde-qt-0012
|
|
%patch212 -p1 -b .kde-qt-0012
|
|
%endif
|
|
%endif
|
|
@@ -362,7 +356,7 @@ toolkit.
|
|
%patch300 -p1 -b .CVE-2010-1822-crash-svg-image
|
|
%patch300 -p1 -b .CVE-2010-1822-crash-svg-image
|
|
|
|
|
|
# Patches for Vine
|
|
# Patches for Vine
|
|
-%patch1022 -p1 -b .system_ca_certificates
|
|
|
|
|
|
+%patch1022 -p0 -b .system_ca_certificates
|
|
|
|
|
|
# drop -fexceptions from $RPM_OPT_FLAGS
|
|
# drop -fexceptions from $RPM_OPT_FLAGS
|
|
RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's|-fexceptions||g'`
|
|
RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's|-fexceptions||g'`
|
|
@@ -408,6 +402,13 @@ for f in translations/*.ts ; do
|
|
touch ${f%.ts}.qm
|
|
touch ${f%.ts}.qm
|
|
done
|
|
done
|
|
|
|
|
|
|
|
+# desktop menu
|
|
|
|
+sed -e 's:$(QTBIN):%{_qt4_bindir}:g' %{SOURCE20} > assistant.desktop
|
|
|
|
+sed -e 's:$(QTBIN):%{_qt4_bindir}:g' %{SOURCE21} > designer.desktop
|
|
|
|
+sed -e 's:$(QTBIN):%{_qt4_bindir}:g' %{SOURCE22} > linguist.desktop
|
|
|
|
+sed -e 's:$(QTBIN):%{_qt4_bindir}:g' %{SOURCE23} > qtdemo.desktop
|
|
|
|
+sed -e 's:$(QTBIN):%{_qt4_bindir}:g' %{SOURCE24} > qtconfig.desktop
|
|
|
|
+
|
|
%build
|
|
%build
|
|
# build shared, threaded (default) libraries
|
|
# build shared, threaded (default) libraries
|
|
./configure -v \
|
|
./configure -v \
|
|
@@ -436,12 +437,7 @@ done
|
|
-no-rpath \
|
|
-no-rpath \
|
|
-reduce-relocations \
|
|
-reduce-relocations \
|
|
-no-separate-debug-info \
|
|
-no-separate-debug-info \
|
|
-%if %{phonon}
|
|
|
|
- -phonon \
|
|
|
|
- -phonon-backend \
|
|
|
|
-%else
|
|
|
|
-no-phonon \
|
|
-no-phonon \
|
|
-%endif
|
|
|
|
-pch \
|
|
-pch \
|
|
-no-javascript-jit \
|
|
-no-javascript-jit \
|
|
-sm \
|
|
-sm \
|
|
@@ -500,17 +496,43 @@ mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
|
|
desktop-file-install \
|
|
desktop-file-install \
|
|
--dir=$RPM_BUILD_ROOT%{_datadir}/applications \
|
|
--dir=$RPM_BUILD_ROOT%{_datadir}/applications \
|
|
--vendor="" \
|
|
--vendor="" \
|
|
- %{SOURCE21} %{SOURCE22}
|
|
|
|
|
|
+ assistant.desktop designer.desktop linguist.desktop qtconfig.desktop
|
|
|
|
+
|
|
|
|
+## pkg-config
|
|
|
|
+# strip extraneous dirs/libraries
|
|
|
|
+# safe ones
|
|
|
|
+glib2_libs=$(pkg-config --libs glib-2.0 gobject-2.0 gthread-2.0)
|
|
|
|
+ssl_libs=$(pkg-config --libs openssl)
|
|
|
|
+for dep in \
|
|
|
|
+ -laudio -ldbus-1 -lfreetype -lfontconfig ${glib2_libs} \
|
|
|
|
+ -ljpeg -lm -lmng -lpng -lpulse -lpulse-mainloop-glib ${ssl_libs} -lsqlite3 -lz \
|
|
|
|
+ -L/usr/X11R6/lib -L/usr/X11R6/%{_lib} -L%{_libdir} ; do
|
|
|
|
+ sed -i -e "s|$dep ||g" %{buildroot}%{_qt4_libdir}/lib*.la
|
|
|
|
+# sed -i -e "s|$dep ||g" %{buildroot}%{_qt4_libdir}/pkgconfig/*.pc
|
|
|
|
+ sed -i -e "s|$dep ||g" %{buildroot}%{_qt4_libdir}/*.prl
|
|
|
|
+done
|
|
|
|
+# riskier
|
|
|
|
+for dep in -ldl -lphonon -lpthread -lICE -lSM -lX11 -lXcursor -lXext -lXfixes -lXft -lXinerama -lXi -lXrandr -lXrender -lXt ; do
|
|
|
|
+ sed -i -e "s|$dep ||g" %{buildroot}%{_qt4_libdir}/lib*.la
|
|
|
|
+# sed -i -e "s|$dep ||g" %{buildroot}%{_qt4_libdir}/pkgconfig/*.pc
|
|
|
|
+ sed -i -e "s|$dep ||g" %{buildroot}%{_qt4_libdir}/*.prl
|
|
|
|
+done
|
|
|
|
|
|
# nuke dangling reference(s) to %buildroot
|
|
# nuke dangling reference(s) to %buildroot
|
|
sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" $RPM_BUILD_ROOT%{_qt4_libdir}/*.prl
|
|
sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" $RPM_BUILD_ROOT%{_qt4_libdir}/*.prl
|
|
-
|
|
|
|
-# nuke QMAKE_PRL_LIBS, seems similar to static linking and .la files (#520323)
|
|
|
|
-sed -i -e "s|^QMAKE_PRL_LIBS|#QMAKE_PRL_LIBS|" $RPM_BUILD_ROOT%{_qt4_libdir}/*.prl
|
|
|
|
|
|
+sed -i -e "s|-L%{_builddir}/qt-everywhere-opensource-src-%{version}/lib||g" \
|
|
|
|
+ $RPM_BUILD_ROOT%{_qt4_libdir}/pkgconfig/*.pc \
|
|
|
|
+ $RPM_BUILD_ROOT%{_qt4_libdir}/*.prl
|
|
|
|
|
|
# .la files, die, die, die.
|
|
# .la files, die, die, die.
|
|
rm -f $RPM_BUILD_ROOT%{_qt4_libdir}/lib*.la
|
|
rm -f $RPM_BUILD_ROOT%{_qt4_libdir}/lib*.la
|
|
|
|
|
|
|
|
+# let rpm handle binaries conflicts
|
|
|
|
+mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
+for i in $RPM_BUILD_ROOT%{_qt4_bindir}/*; do
|
|
|
|
+ ln -s ../%{_lib}/qt-%{version}/bin/`basename $i` $RPM_BUILD_ROOT/%{_bindir}
|
|
|
|
+done
|
|
|
|
+
|
|
%ifarch %{multilib_archs}
|
|
%ifarch %{multilib_archs}
|
|
# multilib: qconfig.h
|
|
# multilib: qconfig.h
|
|
mv $RPM_BUILD_ROOT%{_qt4_headerdir}/Qt/qconfig.h $RPM_BUILD_ROOT%{_qt4_headerdir}/QtCore/qconfig-%{_arch}.h
|
|
mv $RPM_BUILD_ROOT%{_qt4_headerdir}/Qt/qconfig.h $RPM_BUILD_ROOT%{_qt4_headerdir}/QtCore/qconfig-%{_arch}.h
|
|
@@ -543,50 +565,24 @@ mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/{16x16,32x32,48x48,64x64,128x1
|
|
install -p -m644 -D %{SOURCE30} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/qt4-logo.png
|
|
install -p -m644 -D %{SOURCE30} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/qt4-logo.png
|
|
install -p -m644 -D %{SOURCE31} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/qt4-logo.png
|
|
install -p -m644 -D %{SOURCE31} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/qt4-logo.png
|
|
|
|
|
|
|
|
+# assistant icons
|
|
|
|
+install -p -m644 -D tools/assistant/tools/assistant/images/assistant.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/assistant.png
|
|
|
|
+install -p -m644 -D tools/assistant/tools/assistant/images/assistant-128.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/assistant.png
|
|
# designer icons
|
|
# designer icons
|
|
-install -p -m644 -D tools/designer/src/designer/images/designer.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/designer.png
|
|
|
|
|
|
+install -p -m644 -D tools/designer/src/designer/images/designer.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/designer.png
|
|
# linguist icons
|
|
# linguist icons
|
|
for icon in tools/linguist/linguist/images/icons/linguist-*-32.png ; do
|
|
for icon in tools/linguist/linguist/images/icons/linguist-*-32.png ; do
|
|
size=$(echo $(basename ${icon}) | cut -d- -f2)
|
|
size=$(echo $(basename ${icon}) | cut -d- -f2)
|
|
install -p -m644 -D ${icon} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${size}x${size}/apps/linguist4.png
|
|
install -p -m644 -D ${icon} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${size}x${size}/apps/linguist4.png
|
|
done
|
|
done
|
|
|
|
|
|
-
|
|
|
|
-mkdir -p $RPM_BUILD_ROOT/etc/profile.d
|
|
|
|
-cat > $RPM_BUILD_ROOT/etc/profile.d/qt4.sh <<EOF
|
|
|
|
-# Qt initialization script (sh)
|
|
|
|
-if [ -z "\$QTDIR" ] ; then
|
|
|
|
- QTDIR="%{_qt4_libdir}"
|
|
|
|
-fi
|
|
|
|
-export QTDIR
|
|
|
|
-EOF
|
|
|
|
-
|
|
|
|
-chmod 755 $RPM_BUILD_ROOT/etc/profile.d/qt4.sh
|
|
|
|
-
|
|
|
|
-cat > $RPM_BUILD_ROOT/etc/profile.d/qt4.csh <<EOF
|
|
|
|
-# Qt initialization script (csh)
|
|
|
|
-if ( \$?QTDIR ) then
|
|
|
|
- exit
|
|
|
|
-endif
|
|
|
|
-setenv QTDIR %{_qt4_libdir}
|
|
|
|
-EOF
|
|
|
|
-
|
|
|
|
-chmod 755 $RPM_BUILD_ROOT/etc/profile.d/qt4.csh
|
|
|
|
-
|
|
|
|
-mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
-for i in $RPM_BUILD_ROOT%{_qt4_bindir}/*; do
|
|
|
|
- #ln -s ../lib/qt-%{version}/bin/`basename $i` $RPM_BUILD_ROOT/%{_bindir}
|
|
|
|
- ln -s ../%{_lib}/qt-%{version}/bin/`basename $i` $RPM_BUILD_ROOT/%{_bindir}
|
|
|
|
-done
|
|
|
|
-
|
|
|
|
-
|
|
|
|
# pkg-config files
|
|
# pkg-config files
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig
|
|
cp $RPM_BUILD_ROOT%{_qt4_libdir}/pkgconfig/*.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
|
|
cp $RPM_BUILD_ROOT%{_qt4_libdir}/pkgconfig/*.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
|
|
rm -rf $RPM_BUILD_ROOT%{_qt4_libdir}/pkgconfig
|
|
rm -rf $RPM_BUILD_ROOT%{_qt4_libdir}/pkgconfig
|
|
|
|
|
|
# Qt.pc
|
|
# Qt.pc
|
|
-cat >%{buildroot}%{_libdir}/pkgconfig/Qt.pc<<EOF
|
|
|
|
|
|
+cat > $RPM_BUILD_ROOT%{_libdir}/pkgconfig/Qt.pc << EOF
|
|
prefix=%{_qt4_prefix}
|
|
prefix=%{_qt4_prefix}
|
|
bindir=%{_qt4_bindir}
|
|
bindir=%{_qt4_bindir}
|
|
datadir=%{_qt4_datadir}
|
|
datadir=%{_qt4_datadir}
|
|
@@ -596,6 +592,7 @@ examplesdir=%{_qt4_examplesdir}
|
|
headerdir=%{_qt4_headerdir}
|
|
headerdir=%{_qt4_headerdir}
|
|
importdir=%{_qt4_importdir}
|
|
importdir=%{_qt4_importdir}
|
|
libdir=%{_qt4_libdir}
|
|
libdir=%{_qt4_libdir}
|
|
|
|
+moc=%{_qt4_bindir}/moc
|
|
plugindir=%{_qt4_plugindir}
|
|
plugindir=%{_qt4_plugindir}
|
|
qmake=%{_qt4_bindir}/qmake
|
|
qmake=%{_qt4_bindir}/qmake
|
|
sysconfdir=%{_qt4_sysconfdir}
|
|
sysconfdir=%{_qt4_sysconfdir}
|
|
@@ -606,58 +603,66 @@ Description: Qt Configuration
|
|
Version: %{version}
|
|
Version: %{version}
|
|
EOF
|
|
EOF
|
|
|
|
|
|
-# create/own stuff under %%_qt4_plugindir
|
|
|
|
-mkdir %{buildroot}%{_qt4_plugindir}/crypto
|
|
|
|
-mkdir %{buildroot}%{_qt4_plugindir}/gui_platform
|
|
|
|
-mkdir %{buildroot}%{_qt4_plugindir}/styles
|
|
|
|
-
|
|
|
|
-%if %{phonon}
|
|
|
|
-# remove for phonon 4.3.1
|
|
|
|
-rm -fv $RPM_BUILD_ROOT%{qtdir}/lib/libphonon.so*
|
|
|
|
-rm -rfv $RPM_BUILD_ROOT%{_libdir}/pkgconfig/phonon.pc
|
|
|
|
-# contents slightly different between phonon-4.3.1 and qt-4.5.0
|
|
|
|
-rm -fv $RPM_BUILD_ROOT%{_includedir}/phonon/phononnamespace.h
|
|
|
|
-# contents dup'd but should remove just in case
|
|
|
|
-rm -fv $RPM_BUILD_ROOT%{_includedir}/phonon/*.h
|
|
|
|
-rm -rfv $RPM_BUILD_ROOT%{qtdir}/include/phonon*
|
|
|
|
-#rm -rfv %{buildroot}%{_qt4_headerdir}/Qt/phonon*
|
|
|
|
-rm -fv $RPM_BUILD_ROOT%{_datadir}/dbus-1/interfaces/org.kde.Phonon.AudioOutput.xml
|
|
|
|
-rm -fv $RPM_BUILD_ROOT%{qtdir}/lib/libphonon.prl
|
|
|
|
-
|
|
|
|
-install -D -m 0644 %{SOURCE10} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/phonon-gstreamer.svg
|
|
|
|
-install -D -m 0644 %{SOURCE11} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/phonon-gstreamer.png
|
|
|
|
-install -D -m 0644 %{SOURCE12} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/22x22/apps/phonon-gstreamer.png
|
|
|
|
-install -D -m 0644 %{SOURCE13} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/phonon-gstreamer.png
|
|
|
|
-install -D -m 0644 %{SOURCE14} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/phonon-gstreamer.png
|
|
|
|
-install -D -m 0644 %{SOURCE15} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/phonon-gstreamer.png
|
|
|
|
-install -D -m 0644 %{SOURCE16} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/phonon-gstreamer.png
|
|
|
|
-%endif
|
|
|
|
|
|
+# rpm macros
|
|
|
|
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm
|
|
|
|
+cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.qt4 << EOF
|
|
|
|
+%%_qt4 %{name}
|
|
|
|
+%%_qt47 %{version}
|
|
|
|
+%%_qt4_version %{version}
|
|
|
|
+%%_qt4_prefix %%{_libdir}/qt-%{version}
|
|
|
|
+%%_qt4_bindir %%{_qt4_prefix}/bin
|
|
|
|
+%%_qt4_datadir %%{_qt4_prefix}
|
|
|
|
+%%_qt4_demosdir %%{_qt4_prefix}/demos
|
|
|
|
+%%_qt4_docdir %%{_docdir}/qt4
|
|
|
|
+%%_qt4_examples %%{_qt4_prefix}/examples
|
|
|
|
+%%_qt4_headerdir %%{_includedir}
|
|
|
|
+%%_qt4_importdir %%{_qt4_prefix}/imports
|
|
|
|
+%%_qt4_libdir %%{_libdir}
|
|
|
|
+%%_qt4_plugindir %%{_qt4_prefix}/plugins
|
|
|
|
+%%_qt4_qmake %%{_qt4_bindir}/qmake
|
|
|
|
+%%_qt4_sysconfdir %%{_sysconfdir}
|
|
|
|
+%%_qt4_translationdir %%{_datadir}/qt4/translations
|
|
|
|
+EOF
|
|
|
|
|
|
-# make symbolic link to qt docdir
|
|
|
|
-#if echo %{_docdir} | grep share >& /dev/null ; then
|
|
|
|
-# ln -s ../../share/doc/%{name}-devel-%{version} $RPM_BUILD_ROOT%{_qt4_docdir}
|
|
|
|
-#else
|
|
|
|
-# ln -s ../../doc/%{name}-devel-%{version} $RPM_BUILD_ROOT%{_qt4_docdir}
|
|
|
|
-#fi
|
|
|
|
|
|
+# /etc/prodile.d
|
|
|
|
+mkdir -p $RPM_BUILD_ROOT/etc/profile.d
|
|
|
|
+cat > $RPM_BUILD_ROOT/etc/profile.d/qt4.sh <<EOF
|
|
|
|
+# Qt initialization script (sh)
|
|
|
|
+if [ -z "\$QTDIR" ] ; then
|
|
|
|
+ QTDIR="%{_qt4_libdir}"
|
|
|
|
+fi
|
|
|
|
+export QTDIR
|
|
|
|
+EOF
|
|
|
|
|
|
-# clean up
|
|
|
|
-cd $RPM_BUILD_ROOT%{qtdir}
|
|
|
|
-#rm -f lib/*.la
|
|
|
|
-#rm -f lib/*.prl
|
|
|
|
-rm -f `find ../../ -name *.debug`
|
|
|
|
|
|
+cat > $RPM_BUILD_ROOT/etc/profile.d/qt4.csh <<EOF
|
|
|
|
+# Qt initialization script (csh)
|
|
|
|
+if ( \$?QTDIR ) then
|
|
|
|
+ exit
|
|
|
|
+endif
|
|
|
|
+setenv QTDIR %{_qt4_libdir}
|
|
|
|
+EOF
|
|
|
|
+
|
|
|
|
+chmod 755 $RPM_BUILD_ROOT/etc/profile.d/qt4.sh
|
|
|
|
+chmod 755 $RPM_BUILD_ROOT/etc/profile.d/qt4.csh
|
|
|
|
+
|
|
|
|
+# create/own stuff under %%_qt4_plugindir
|
|
|
|
+mkdir $RPM_BUILD_ROOT%{_qt4_plugindir}/crypto
|
|
|
|
+mkdir $RPM_BUILD_ROOT%{_qt4_plugindir}/gui_platform
|
|
|
|
+mkdir $RPM_BUILD_ROOT%{_qt4_plugindir}/styles
|
|
|
|
|
|
|
|
+# remove qvfb translations, we don't ship qvfb
|
|
|
|
+rm -fv $RPM_BUILD_ROOT%{_qt4_translationdir}/qvfb_*.qm
|
|
|
|
|
|
# delete files to use alternatives
|
|
# delete files to use alternatives
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/assistant
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/assistant
|
|
-rm -f $RPM_BUILD_ROOT%{_bindir}/moc
|
|
|
|
-rm -f $RPM_BUILD_ROOT%{_bindir}/qmake
|
|
|
|
-rm -f $RPM_BUILD_ROOT%{_bindir}/qtconfig
|
|
|
|
-rm -f $RPM_BUILD_ROOT%{_bindir}/uic
|
|
|
|
-rm -f $RPM_BUILD_ROOT%{_bindir}/uic3
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/designer
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/designer
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/linguist
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/linguist
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/lrelease
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/lrelease
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/lupdate
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/lupdate
|
|
|
|
+rm -f $RPM_BUILD_ROOT%{_bindir}/moc
|
|
|
|
+rm -f $RPM_BUILD_ROOT%{_bindir}/qmake
|
|
|
|
+rm -f $RPM_BUILD_ROOT%{_bindir}/qtconfig
|
|
|
|
+rm -f $RPM_BUILD_ROOT%{_bindir}/uic
|
|
|
|
|
|
%clean
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
@@ -672,92 +677,110 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
|
|
%postun
|
|
%postun
|
|
/sbin/ldconfig
|
|
/sbin/ldconfig
|
|
if [ $1 -eq 0 ] ; then
|
|
if [ $1 -eq 0 ] ; then
|
|
- touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
|
|
|
|
- gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
|
|
|
|
|
|
+ touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
|
|
|
|
+ gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
|
|
fi
|
|
fi
|
|
|
|
|
|
-# devel
|
|
|
|
-%post devel
|
|
|
|
-%{_syssbindir}/update-alternatives --install \
|
|
|
|
- %{_bindir}/qtconfig qtconfig %{_qt4_bindir}/qtconfig 20 \
|
|
|
|
- --slave %{_bindir}/assistant \
|
|
|
|
- assistant \
|
|
|
|
- %{_qt4_bindir}/assistant \
|
|
|
|
- --slave %{_bindir}/moc \
|
|
|
|
- moc \
|
|
|
|
- %{_qt4_bindir}/moc \
|
|
|
|
- --slave %{_bindir}/qmake \
|
|
|
|
- qmake \
|
|
|
|
- %{_qt4_bindir}/qmake \
|
|
|
|
- --slave %{_bindir}/uic \
|
|
|
|
- uic \
|
|
|
|
- %{_qt4_bindir}/uic \
|
|
|
|
- --slave %{_bindir}/uic3 \
|
|
|
|
- uic3 \
|
|
|
|
- %{_qt4_bindir}/uic3 \
|
|
|
|
|
|
+# config
|
|
|
|
+%post config
|
|
|
|
+/sbin/update-alternatives --install \
|
|
|
|
+ %{_bindir}/qtconfig qtconfig %{_qt4_bindir}/qtconfig 20
|
|
|
|
|
|
|
|
+%posttrans config
|
|
|
|
+# fix broken symlink if it's there
|
|
if [ ! -f %{_bindir}/qtconfig ] ; then
|
|
if [ ! -f %{_bindir}/qtconfig ] ; then
|
|
/sbin/update-alternatives --auto qtconfig
|
|
/sbin/update-alternatives --auto qtconfig
|
|
fi
|
|
fi
|
|
|
|
|
|
-
|
|
|
|
-%postun devel
|
|
|
|
|
|
+%postun config
|
|
if [ $1 -eq 0 ] ; then
|
|
if [ $1 -eq 0 ] ; then
|
|
/sbin/update-alternatives --remove qtconfig %{_qt4_bindir}/qtconfig
|
|
/sbin/update-alternatives --remove qtconfig %{_qt4_bindir}/qtconfig
|
|
/sbin/update-alternatives --auto qtconfig
|
|
/sbin/update-alternatives --auto qtconfig
|
|
fi
|
|
fi
|
|
|
|
|
|
-# phonon-backend-gstreamer
|
|
|
|
-%if %{phonon}
|
|
|
|
-%post -n phonon-backend-gstreamer
|
|
|
|
|
|
+# designer
|
|
|
|
+%post designer
|
|
touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
|
|
touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
|
|
|
|
+/sbin/update-alternatives --install \
|
|
|
|
+ %{_bindir}/designer designer %{_qt4_bindir}/designer 20
|
|
|
|
|
|
-%posttrans -n phonon-backend-gstreamer
|
|
|
|
|
|
+%posttrans designer
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
|
|
|
|
+# fix broken symlink if it's there
|
|
|
|
+if [ ! -f %{_bindir}/designer ] ; then
|
|
|
|
+ /sbin/update-alternatives --auto designer
|
|
|
|
+fi
|
|
|
|
|
|
-%postun -n phonon-backend-gstreamer
|
|
|
|
|
|
+%postun designer
|
|
if [ $1 -eq 0 ] ; then
|
|
if [ $1 -eq 0 ] ; then
|
|
- touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
|
|
|
|
- gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
|
|
|
|
|
|
+ touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
|
|
|
|
+ gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
|
|
|
|
+ /sbin/update-alternatives --remove designer %{_qt4_bindir}/desiner
|
|
|
|
+ /sbin/update-alternatives --auto designer
|
|
fi
|
|
fi
|
|
-%endif
|
|
|
|
|
|
|
|
-# qt4-designer
|
|
|
|
-%post designer
|
|
|
|
-touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
|
|
|
|
-%{_syssbindir}/update-alternatives --install \
|
|
|
|
- %{_bindir}/designer designer %{_qt4_bindir}/designer 20 \
|
|
|
|
- --slave %{_bindir}/linguist \
|
|
|
|
- linguist \
|
|
|
|
- %{_qt4_bindir}/linguist \
|
|
|
|
- --slave %{_bindir}/lrelease \
|
|
|
|
- lrelease \
|
|
|
|
- %{_qt4_bindir}/lrelease \
|
|
|
|
- --slave %{_bindir}/lupdate \
|
|
|
|
- lupdate \
|
|
|
|
- %{_qt4_bindir}/lupdate
|
|
|
|
-
|
|
|
|
-[ -f "%{_bindir}/designer" ] || %{_syssbindir}/update-alternatives --auto designer
|
|
|
|
|
|
|
|
-%posttrans designer
|
|
|
|
-gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
|
|
|
|
|
|
+# devel
|
|
|
|
+%post devel
|
|
|
|
+/sbin/update-alternatives --install \
|
|
|
|
+ %{_bindir}/qmake qmake %{_qt4_bindir}/qmake 20 \
|
|
|
|
+ --slave %{_bindir}/moc \
|
|
|
|
+ moc \
|
|
|
|
+ %{_qt4_bindir}/moc \
|
|
|
|
+ --slave %{_bindir}/uic \
|
|
|
|
+ uic \
|
|
|
|
+ %{_qt4_bindir}/uic \
|
|
|
|
+ --slave %{_bindir}/lrelease \
|
|
|
|
+ lrelease \
|
|
|
|
+ %{_qt4_bindir}/lrelease \
|
|
|
|
+ --slave %{_bindir}/lupdate \
|
|
|
|
+ lupdate \
|
|
|
|
+ %{_qt4_bindir}/lupdate
|
|
|
|
+
|
|
|
|
+%posttrans devel
|
|
|
|
+# fix broken symlink if it's there
|
|
|
|
+if [ ! -f %{_bindir}/qmake ] ; then
|
|
|
|
+ /sbin/update-alternatives --auto qmake
|
|
|
|
+fi
|
|
|
|
|
|
-%postun designer
|
|
|
|
|
|
+%postun devel
|
|
if [ $1 -eq 0 ] ; then
|
|
if [ $1 -eq 0 ] ; then
|
|
- touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
|
|
|
|
- gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
|
|
|
|
- %{_syssbindir}/update-alternatives --remove designer %{_qt4_bindir}/desiner
|
|
|
|
- [ -f "%{_bindir}/designer" ] || %{_syssbindir}/update-alternatives --auto designer
|
|
|
|
|
|
+ /sbin/update-alternatives --remove qmake %{_qt4_bindir}/qmake
|
|
|
|
+ /sbin/update-alternatives --auto qmake
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
+%post tools
|
|
|
|
+/sbin/update-alternatives --install \
|
|
|
|
+ %{_bindir}/assistant assistant %{_qt4_bindir}/assistant 20
|
|
|
|
+/sbin/update-alternatives --install \
|
|
|
|
+ %{_bindir}/linguist linguist %{_qt4_bindir}/linguist 20
|
|
|
|
+
|
|
|
|
+%posttrans tools
|
|
|
|
+# fix broken symlink if it's there
|
|
|
|
+if [ ! -f %{_bindir}/assistant ] ; then
|
|
|
|
+ /sbin/update-alternatives --auto assistant
|
|
|
|
+fi
|
|
|
|
+if [ ! -f %{_bindir}/linguist ] ; then
|
|
|
|
+ /sbin/update-alternatives --auto linguist
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+%postun tools
|
|
|
|
+if [ $1 -eq 0 ] ; then
|
|
|
|
+ /sbin/update-alternatives --remove assistant %{_qt4_bindir}/assistant
|
|
|
|
+ /sbin/update-alternatives --remove linguist %{_qt4_bindir}/linguist
|
|
|
|
+ /sbin/update-alternatives --auto assistant
|
|
|
|
+ /sbin/update-alternatives --auto linguist
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+
|
|
%post -n compat32-%{name} -p /sbin/ldconfig
|
|
%post -n compat32-%{name} -p /sbin/ldconfig
|
|
|
|
|
|
%postun -n compat32-%{name} -p /sbin/ldconfig
|
|
%postun -n compat32-%{name} -p /sbin/ldconfig
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-#doc README README.kde-qt LGPL_EXCEPTION.txt LICENSE.LGPL LICENSE.GPL3
|
|
|
|
%doc README LGPL_EXCEPTION.txt LICENSE.LGPL LICENSE.GPL3
|
|
%doc README LGPL_EXCEPTION.txt LICENSE.LGPL LICENSE.GPL3
|
|
|
|
+%{_sysconfdir}/rpm/macros.*
|
|
%config(noreplace) %{_sysconfdir}/Trolltech.conf
|
|
%config(noreplace) %{_sysconfdir}/Trolltech.conf
|
|
%if "%{_qt4_libdir}" != "%{_libdir}"
|
|
%if "%{_qt4_libdir}" != "%{_libdir}"
|
|
%config %{_sysconfdir}/ld.so.conf.d/qt4.conf
|
|
%config %{_sysconfdir}/ld.so.conf.d/qt4.conf
|
|
@@ -789,37 +812,46 @@ fi
|
|
%{_qt4_plugindir}/imageformats/*
|
|
%{_qt4_plugindir}/imageformats/*
|
|
%dir %{_qt4_plugindir}/inputmethods
|
|
%dir %{_qt4_plugindir}/inputmethods
|
|
%{_qt4_plugindir}/inputmethods/*
|
|
%{_qt4_plugindir}/inputmethods/*
|
|
|
|
+%dir %{_qt4_plugindir}/qmltooling
|
|
|
|
+%{_qt4_plugindir}/qmltooling/*
|
|
%dir %{_qt4_plugindir}/script
|
|
%dir %{_qt4_plugindir}/script
|
|
%{_qt4_plugindir}/script/*
|
|
%{_qt4_plugindir}/script/*
|
|
%dir %{_qt4_translationdir}
|
|
%dir %{_qt4_translationdir}
|
|
%{_qt4_translationdir}/*
|
|
%{_qt4_translationdir}/*
|
|
%{_datadir}/icons/hicolor/*/apps/qt4-logo.*
|
|
%{_datadir}/icons/hicolor/*/apps/qt4-logo.*
|
|
|
|
|
|
|
|
+%files config
|
|
|
|
+%defattr(-,root,root,-)
|
|
|
|
+%{_qt4_bindir}/qtconfig
|
|
|
|
+%{_datadir}/applications/qtconfig.desktop
|
|
|
|
+
|
|
%files designer
|
|
%files designer
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%{_qt4_bindir}/designer
|
|
%{_qt4_bindir}/designer
|
|
-%{_qt4_bindir}/linguist
|
|
|
|
-%{_qt4_bindir}/lrelease
|
|
|
|
-%{_qt4_bindir}/lupdate
|
|
|
|
%dir %{_qt4_plugindir}/designer
|
|
%dir %{_qt4_plugindir}/designer
|
|
%{_qt4_plugindir}/designer/*
|
|
%{_qt4_plugindir}/designer/*
|
|
-%{_datadir}/applications/*.desktop
|
|
|
|
-%{_datadir}/icons/hicolor/*/apps/linguist*
|
|
|
|
|
|
+%{_datadir}/applications/designer.desktop
|
|
%{_datadir}/icons/hicolor/*/apps/designer*
|
|
%{_datadir}/icons/hicolor/*/apps/designer*
|
|
%{_qt4_docdir}/qch/designer.qch
|
|
%{_qt4_docdir}/qch/designer.qch
|
|
-%{_qt4_docdir}/qch/linguist.qch
|
|
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%attr(0755,root,root) %config /etc/profile.d/*
|
|
%attr(0755,root,root) %config /etc/profile.d/*
|
|
-%{_bindir}/*
|
|
|
|
-%{_qt4_bindir}/*
|
|
|
|
-%exclude %{_bindir}/qdbus
|
|
|
|
-%exclude %{_qt4_bindir}/qdbus
|
|
|
|
-%exclude %{_qt4_bindir}/designer
|
|
|
|
-%exclude %{_qt4_bindir}/linguist
|
|
|
|
-%exclude %{_qt4_bindir}/lrelease
|
|
|
|
-%exclude %{_qt4_bindir}/lupdate
|
|
|
|
|
|
+%{_bindir}/qdbuscpp2xml
|
|
|
|
+%{_bindir}/qdbusxml2cpp
|
|
|
|
+%{_bindir}/qt3to4
|
|
|
|
+%{_bindir}/rcc
|
|
|
|
+%{_bindir}/uic3
|
|
|
|
+%{_qt4_bindir}/lrelease
|
|
|
|
+%{_qt4_bindir}/lupdate
|
|
|
|
+%{_qt4_bindir}/moc
|
|
|
|
+%{_qt4_bindir}/qdbuscpp2xml
|
|
|
|
+%{_qt4_bindir}/qdbusxml2cpp
|
|
|
|
+%{_qt4_bindir}/qmake
|
|
|
|
+%{_qt4_bindir}/qt3to4
|
|
|
|
+%{_qt4_bindir}/rcc
|
|
|
|
+%{_qt4_bindir}/uic
|
|
|
|
+%{_qt4_bindir}/uic3
|
|
%{_qt4_headerdir}
|
|
%{_qt4_headerdir}
|
|
%{_qt4_libdir}/libQt*.so
|
|
%{_qt4_libdir}/libQt*.so
|
|
%{_qt4_libdir}/libQtUiTools*.a
|
|
%{_qt4_libdir}/libQtUiTools*.a
|
|
@@ -841,13 +873,37 @@ fi
|
|
#{_datadir}/applications/*assistant.desktop
|
|
#{_datadir}/applications/*assistant.desktop
|
|
#{_datadir}/icons/hicolor/*/apps/assistant*
|
|
#{_datadir}/icons/hicolor/*/apps/assistant*
|
|
|
|
|
|
-%if %{phonon}
|
|
|
|
-%files -n phonon-backend-gstreamer
|
|
|
|
|
|
+%files tools
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%{_qt4_plugindir}/phonon_backend/*_gstreamer.so
|
|
|
|
-%{_datadir}/kde4/services/phononbackends/gstreamer.desktop
|
|
|
|
-%{_datadir}/icons/hicolor/*/apps/phonon-gstreamer.*
|
|
|
|
-%endif
|
|
|
|
|
|
+%{_bindir}/lconvert
|
|
|
|
+%{_bindir}/pixeltool
|
|
|
|
+%{_bindir}/qcollectiongenerator
|
|
|
|
+%{_bindir}/qdbusviewer
|
|
|
|
+%{_bindir}/qdoc3
|
|
|
|
+%{_bindir}/qhelpconverter
|
|
|
|
+%{_bindir}/qhelpgenerator
|
|
|
|
+%{_bindir}/qmlviewer
|
|
|
|
+%{_bindir}/qttracereplay
|
|
|
|
+%{_bindir}/xmlpatterns
|
|
|
|
+%{_bindir}/xmlpatternsvalidator
|
|
|
|
+%{_qt4_bindir}/assistant
|
|
|
|
+%{_qt4_bindir}/lconvert
|
|
|
|
+%{_qt4_bindir}/linguist
|
|
|
|
+%{_qt4_bindir}/pixeltool
|
|
|
|
+%{_qt4_bindir}/qcollectiongenerator
|
|
|
|
+%{_qt4_bindir}/qdbusviewer
|
|
|
|
+%{_qt4_bindir}/qdoc3
|
|
|
|
+%{_qt4_bindir}/qhelpconverter
|
|
|
|
+%{_qt4_bindir}/qhelpgenerator
|
|
|
|
+%{_qt4_bindir}/qmlviewer
|
|
|
|
+%{_qt4_bindir}/qttracereplay
|
|
|
|
+%{_qt4_bindir}/xmlpatterns
|
|
|
|
+%{_qt4_bindir}/xmlpatternsvalidator
|
|
|
|
+%{_datadir}/applications/assistant.desktop
|
|
|
|
+%{_datadir}/applications/linguist.desktop
|
|
|
|
+%{_datadir}/icons/hicolor/*/apps/assistant*
|
|
|
|
+%{_datadir}/icons/hicolor/*/apps/linguist*
|
|
|
|
+%{_qt4_docdir}/qch/linguist.qch
|
|
|
|
|
|
%if %{MySQL}
|
|
%if %{MySQL}
|
|
%files MySQL
|
|
%files MySQL
|
|
@@ -924,6 +980,13 @@ fi
|
|
%endif
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sun Mar 6 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.2-1
|
|
|
|
+- new upstream release
|
|
|
|
+- updated Patch1022
|
|
|
|
+- added config, tools subpackage
|
|
|
|
+- added /etc/rpm/macros.qt4
|
|
|
|
+- updated %%post, %%posttrans and %%postun section
|
|
|
|
+
|
|
* Sat Jan 29 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.1-1
|
|
* Sat Jan 29 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.1-1
|
|
- new upstream release
|
|
- new upstream release
|
|
|
|
|