1 |
< |
### RPM external qt 4.4.3 |
1 |
> |
### RPM external qt 4.5.2 |
2 |
|
## INITENV UNSET QMAKESPEC |
3 |
|
## INITENV SET QTDIR %i |
4 |
|
|
5 |
< |
# Requires: zlib, ... |
5 |
> |
Requires: libjpg |
6 |
|
Source0: ftp://ftp.trolltech.com/qt/source/%n-all-opensource-src-%{realversion}.tar.bz2 |
7 |
|
|
8 |
|
%prep |
24 |
|
;; |
25 |
|
esac |
26 |
|
|
27 |
< |
echo yes | ./configure -prefix %i -stl -no-openssl -no-glib -no-libtiff $CONFIG_ARGS |
27 |
> |
echo yes | ./configure -prefix %i -opensource -stl -no-openssl -L$LIBJPG_ROOT/lib -no-glib -no-libtiff -no-libpng -no-libmng -no-separate-debug-info -no-sql-odbc -no-sql-mysql $CONFIG_ARGS |
28 |
|
|
29 |
|
# The following is a kludge around the fact that the fact that the |
30 |
|
# /usr/lib/libfontconfig.so soft link (for 32-bit lib) is missing |
41 |
|
%install |
42 |
|
make install |
43 |
|
|
44 |
+ |
# Remove the doc, as it is large and we don't need that in |
45 |
+ |
# our rpms (it is all available on the web in any case) |
46 |
+ |
rm -fR %i/doc |
47 |
+ |
|
48 |
+ |
# Qt itself has some paths that can only be overwritten by |
49 |
+ |
# using an appropriate `qt.conf`. |
50 |
+ |
# Without this qmake will complain whenever used in |
51 |
+ |
# a directory different than the build one. |
52 |
+ |
mkdir -p %i/bin |
53 |
+ |
cat << \EOF_QT_CONF >%i/bin/qt.conf |
54 |
+ |
[Paths] |
55 |
+ |
Prefix = %{i} |
56 |
+ |
EOF_QT_CONF |
57 |
+ |
|
58 |
|
# SCRAM ToolBox toolfile |
59 |
|
mkdir -p %i/etc/scram.d |
60 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/qtbase |
77 |
|
</Tool> |
78 |
|
EOF_TOOLFILE |
79 |
|
|
80 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/qt3support |
81 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
82 |
+ |
<Tool name=qt3support version=%v> |
83 |
+ |
<info url="http://www.trolltech.com/products/qt.html"></info> |
84 |
+ |
<LIB name=Qt3Support> |
85 |
+ |
<Client> |
86 |
+ |
<Environment name=QT_BASE default="%i"></Environment> |
87 |
+ |
<Environment name=INCLUDE default="$QT_BASE/include/Qt3Support"></Environment> |
88 |
+ |
</Client> |
89 |
+ |
<Flags CPPDEFINES="QT3_SUPPORT"> |
90 |
+ |
<use name=qtbase> |
91 |
+ |
</Tool> |
92 |
+ |
EOF_TOOLFILE |
93 |
+ |
|
94 |
+ |
|
95 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/qt |
96 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
97 |
|
<Tool name=qt version=%v> |
104 |
|
<Environment name=INCLUDE default="$QT_BASE/include/QtGui"></Environment> |
105 |
|
</Client> |
106 |
|
<use name=qtbase> |
107 |
+ |
<use name=qt3support> |
108 |
|
<use name=X11> |
109 |
|
<use name=opengl> |
110 |
|
</Tool> |
152 |
|
%{relocateConfig}lib/libQtXmlPatterns.la |
153 |
|
%{relocateConfig}lib/libQtOpenGL.la |
154 |
|
%{relocateConfig}lib/libQtScript.la |
155 |
< |
%{relocateConfig}etc/scram.d/%n |
155 |
> |
%{relocateConfig}etc/scram.d/qtbase |
156 |
> |
%{relocateConfig}etc/scram.d/qt |
157 |
> |
%{relocateConfig}etc/scram.d/qtdesigner |
158 |
> |
%{relocateConfig}etc/scram.d/qtextra |
159 |
> |
%{relocateConfig}etc/scram.d/qt3support |
160 |
> |
%{relocateConfig}bin/qt.conf |