48 BuildRoot: %{l_buildroot} |
48 BuildRoot: %{l_buildroot} |
49 BuildPreReq: OpenPKG, openpkg >= 20050726, gcc, pkgconfig |
49 BuildPreReq: OpenPKG, openpkg >= 20050726, gcc, pkgconfig |
50 PreReq: OpenPKG, openpkg >= 20050726 |
50 PreReq: OpenPKG, openpkg >= 20050726 |
51 BuildPreReq: X11, png, mng, jpeg, tiff, mesa, xrender |
51 BuildPreReq: X11, png, mng, jpeg, tiff, mesa, xrender |
52 PreReq: X11, png, mng, jpeg, tiff, mesa, xrender |
52 PreReq: X11, png, mng, jpeg, tiff, mesa, xrender |
53 BuildPreReq: zlib, libiconv, sqlite, dbus, glib2 |
53 BuildPreReq: openssl, zlib, libiconv, sqlite, dbus |
54 PreReq: zlib, libiconv, sqlite, dbus, glib2 |
54 PreReq: openssl, zlib, libiconv, sqlite, dbus |
55 BuildPreReq: fontconfig, freetype |
55 BuildPreReq: fontconfig, freetype |
56 PreReq: fontconfig, freetype |
56 PreReq: fontconfig, freetype |
57 AutoReq: no |
57 AutoReq: no |
58 AutoReqProv: no |
58 AutoReqProv: no |
59 Provides: QTSDK |
59 Provides: QTSDK |
60 |
60 |
61 %description |
61 %description |
62 Qt is a cross-platform application framework. Using Qt, you can |
62 Qt is a comprehensive C++ framework for cross-platform application |
63 develop applications and user interfaces once, and deploy them |
63 development. Using Qt, you can develop applications and user |
64 across many desktop and embedded operating systems without |
64 interfaces once, and deploy them across many desktop and embedded |
65 rewriting the source code. |
65 operating systems without rewriting the source code. |
66 |
66 |
67 %track |
67 %track |
68 prog qt = { |
68 prog qt = { |
69 version = %{version} |
69 version = %{version} |
70 url = ftp://ftp.trolltech.com/qt/source/ |
70 url = ftp://ftp.trolltech.com/qt/source/ |
76 ( echo "This package has exceptional storage requirements:" |
76 ( echo "This package has exceptional storage requirements:" |
77 echo " qt-%{version}-root (2,5 Go)" |
77 echo " qt-%{version}-root (2,5 Go)" |
78 echo " qt-x11-opensource-src-%{version} (4,5 Go)" |
78 echo " qt-x11-opensource-src-%{version} (4,5 Go)" |
79 echo " qt-%{version}-<date>.<arch>-<os>-<tag>.rpm (1 Go)" |
79 echo " qt-%{version}-<date>.<arch>-<os>-<tag>.rpm (1 Go)" |
80 echo "Building with no options takes 0,5 hours on a dual core" |
80 echo "Building with no options takes 0,5 hours on a dual core" |
81 echo "2 GHz CPU, or 1,5 hours with all build options enabled." |
81 echo "2 GHz CPU, or 2 hours with all build options enabled." |
82 ) | %{l_rpmtool} msg -b -t notice |
82 ) | %{l_rpmtool} msg -b -t notice |
83 |
83 |
84 %setup -q -n qt-x11-opensource-src-%{version} |
84 %setup -q -n qt-x11-opensource-src-%{version} |
85 x11_incdir=`%{l_rc} --query x11_incdir` |
85 x11_incdir=`%{l_rc} --query x11_incdir` |
86 x11_libdir=`%{l_rc} --query x11_libdir` |
86 x11_libdir=`%{l_rc} --query x11_libdir` |
135 -e "s;^\(QMAKE_LIBDIR_OPENGL[^=]*=\) *\(.*\);\1 %{l_prefix}/lib \2 $x11_supdir;" \ |
135 -e "s;^\(QMAKE_LIBDIR_OPENGL[^=]*=\) *\(.*\);\1 %{l_prefix}/lib \2 $x11_supdir;" \ |
136 -e 's;^\(QMAKE_LFLAGS_RELEASE.*\);\1 -s;' \ |
136 -e 's;^\(QMAKE_LFLAGS_RELEASE.*\);\1 -s;' \ |
137 mkspecs/qws/*/qmake.conf \ |
137 mkspecs/qws/*/qmake.conf \ |
138 mkspecs/*/*.conf |
138 mkspecs/*/*.conf |
139 %{l_shtool} subst \ |
139 %{l_shtool} subst \ |
|
140 -e 's;^\(QMAKE_LIBS +=.*\);\1 -liconv;' \ |
|
141 src/corelib/corelib.pro |
|
142 %{l_shtool} subst \ |
140 -e "s;^\(QMAKE_INCDIR_X11[^=]*=\) *\(.*\);\1 %{l_prefix}/include \2;" \ |
143 -e "s;^\(QMAKE_INCDIR_X11[^=]*=\) *\(.*\);\1 %{l_prefix}/include \2;" \ |
141 -e "s;^\(QMAKE_LIBDIR_X11[^=]*=\) *\(.*\);\1 %{l_prefix}/lib \2 $x11_supdir;" \ |
144 -e "s;^\(QMAKE_LIBDIR_X11[^=]*=\) *\(.*\);\1 %{l_prefix}/lib \2 $x11_supdir;" \ |
142 mkspecs/qws/solaris*/qmake.conf \ |
145 mkspecs/qws/solaris*/qmake.conf \ |
143 mkspecs/solaris*/qmake.conf |
146 mkspecs/solaris*/qmake.conf |
144 %{l_shtool} subst \ |
147 %{l_shtool} subst \ |
155 %build |
158 %build |
156 # protect against sloppy code inclusion of all unused subprojects |
159 # protect against sloppy code inclusion of all unused subprojects |
157 rm -rf src/3rdparty/[^cdhmsw]* src/3rdparty/sql* src/3rdparty/win* |
160 rm -rf src/3rdparty/[^cdhmsw]* src/3rdparty/sql* src/3rdparty/win* |
158 |
161 |
159 case "%{l_platform -t}" in |
162 case "%{l_platform -t}" in |
160 *-aix* ) platcomp="aix-g++" ;; |
163 *-aix* ) platcomp="aix-g++" ;; |
161 *-freebsd* ) platcomp="freebsd-g++" ;; |
164 *-freebsd* ) platcomp="freebsd-g++" ;; |
162 *-hpux* ) platcomp="hpux-g++" ;; |
165 *-hpux* ) platcomp="hpux-g++" ;; |
163 *-irix* ) platcomp="irix-g++" ;; |
166 *-irix* ) platcomp="irix-g++" ;; |
164 *-linux* ) platcomp="linux-g++" ;; |
167 *64-linux* ) platcomp="linux-g++-64" ;; |
165 *-darwin* ) platcomp="macx-g++" ;; |
168 *-linux* ) platcomp="linux-g++" ;; |
166 *-sunos* ) platcomp="solaris-g++" ;; |
169 *-darwin* ) platcomp="macx-g++" ;; |
|
170 *-sunos* ) platcomp="solaris-g++" ;; |
167 * ) echo "Platform '%{l_platform -t}' is not supported." 2>&1; exit 1 ;; |
171 * ) echo "Platform '%{l_platform -t}' is not supported." 2>&1; exit 1 ;; |
168 esac |
172 esac |
169 |
173 |
170 %if "%{with_shared}" == "yes" |
174 %if "%{with_shared}" == "yes" |
171 # optional shared build (precedes mandatory static build) |
175 # optional shared build (precedes mandatory static build) |
318 targets="$targets sub-tools-install_subtargets-ordered" |
325 targets="$targets sub-tools-install_subtargets-ordered" |
319 %endif |
326 %endif |
320 %if "%{with_examples}" == "yes" |
327 %if "%{with_examples}" == "yes" |
321 targets="$targets sub-demos-install_subtargets-ordered sub-examples-install_subtargets-ordered" |
328 targets="$targets sub-demos-install_subtargets-ordered sub-examples-install_subtargets-ordered" |
322 %endif |
329 %endif |
323 targets="$targets install_htmldocs install_translations install_qmake install_mkspecs" |
330 targets="$targets install_htmldocs install_qchdocs install_docimages install_translations install_qmake install_mkspecs" |
324 %{l_make} %{l_mflags} $targets INSTALL_ROOT="$RPM_BUILD_ROOT" |
331 %{l_make} %{l_mflags} $targets INSTALL_ROOT="$RPM_BUILD_ROOT" |
325 |
332 |
326 %if "%{with_shared}" == "yes" |
333 %if "%{with_shared}" == "yes" |
327 # install shared libs and symlinks |
334 # install shared libs and symlinks |
328 %{l_shtool} mkdir -f -p -m 755 \ |
335 %{l_shtool} mkdir -f -p -m 755 \ |