|
|
@ -161,11 +161,12 @@ chmod -x example/*
|
|
|
|
-e "s|^header.path = .*|header.path = %{_includedir}/tqt3|" \
|
|
|
|
-e "s|^header.path = .*|header.path = %{_includedir}/tqt3|" \
|
|
|
|
-e "s|^trans.path = .*|trans.path = %{_datadir}/tqt3/translations|"
|
|
|
|
-e "s|^trans.path = .*|trans.path = %{_datadir}/tqt3/translations|"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# -e "s|\$(QTDIR)|%{_libdir}/tqt3|" \
|
|
|
|
%__sed -i "designer/designer.pro" \
|
|
|
|
%__sed -i "designer/designer.pro" \
|
|
|
|
-e "s|\$(QTDIR)|%{_libdir}/tqt3|" \
|
|
|
|
|
|
|
|
-e "s|# DESTDIR|DESTDIR|"
|
|
|
|
-e "s|# DESTDIR|DESTDIR|"
|
|
|
|
|
|
|
|
|
|
|
|
export QTDIR=%{_libdir}/tqt3
|
|
|
|
export QTDIR=%{_libdir}/tqt3
|
|
|
|
|
|
|
|
export TQTDIR=%{_prefix}
|
|
|
|
( cd qt; tqmake "DESTDIR=$PWD/../tmplib" )
|
|
|
|
( cd qt; tqmake "DESTDIR=$PWD/../tmplib" )
|
|
|
|
( cd designer; tqmake )
|
|
|
|
( cd designer; tqmake )
|
|
|
|
|
|
|
|
|
|
|
@ -179,6 +180,8 @@ export PATH="%{tde_bindir}:${PATH}"
|
|
|
|
%__sed -i "qt/Makefile" -e "s|..\/..\/..\/..\/..|%{_prefix}|g"
|
|
|
|
%__sed -i "qt/Makefile" -e "s|..\/..\/..\/..\/..|%{_prefix}|g"
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export QTDIR=%{_libdir}/tqt3
|
|
|
|
|
|
|
|
export TQTDIR=%{_prefix}
|
|
|
|
%__make %{?_smp_mflags} -C qt
|
|
|
|
%__make %{?_smp_mflags} -C qt
|
|
|
|
%__make %{?_smp_mflags} -C designer
|
|
|
|
%__make %{?_smp_mflags} -C designer
|
|
|
|
|
|
|
|
|
|
|
@ -186,6 +189,7 @@ export PATH="%{tde_bindir}:${PATH}"
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
unset QTDIR QTINC QTLIB
|
|
|
|
unset QTDIR QTINC QTLIB
|
|
|
|
export QTDIR=%{_libdir}/tqt3
|
|
|
|
export QTDIR=%{_libdir}/tqt3
|
|
|
|
|
|
|
|
export TQTDIR=%{_prefix}
|
|
|
|
%__rm -rf $RPM_BUILD_ROOT
|
|
|
|
%__rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
# Installs the QT part
|
|
|
|
# Installs the QT part
|
|
|
@ -202,7 +206,7 @@ for i in doc/html/*; do
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
# Installs the Designer plugin
|
|
|
|
# Installs the Designer plugin
|
|
|
|
for i in designer/*.so ${QTDIR}/plugins/designer/*.so; do
|
|
|
|
for i in designer/*.so ${QTDIR}/plugins/designer/*.so ${TQTDIR}/plugins/designer/*.so; do
|
|
|
|
[ -r "${i}" ] || continue
|
|
|
|
[ -r "${i}" ] || continue
|
|
|
|
%__install -D -m 644 $i %{buildroot}${QTDIR}/plugins/designer/${i##*/}
|
|
|
|
%__install -D -m 644 $i %{buildroot}${QTDIR}/plugins/designer/${i##*/}
|
|
|
|
done
|
|
|
|
done
|
|
|
@ -212,6 +216,7 @@ done
|
|
|
|
%__mv -f tmplib/* %{buildroot}%{_libdir}
|
|
|
|
%__mv -f tmplib/* %{buildroot}%{_libdir}
|
|
|
|
|
|
|
|
|
|
|
|
# Fix private headers location
|
|
|
|
# Fix private headers location
|
|
|
|
|
|
|
|
%__mkdir_p %{buildroot}%{_includedir}
|
|
|
|
%__mv -f %{buildroot}/private %{buildroot}%{_includedir}/tqt3
|
|
|
|
%__mv -f %{buildroot}/private %{buildroot}%{_includedir}/tqt3
|
|
|
|
%__mv -f %{buildroot}%{_includedir}/tqt3 %{buildroot}%{_includedir}/tqscintilla
|
|
|
|
%__mv -f %{buildroot}%{_includedir}/tqt3 %{buildroot}%{_includedir}/tqscintilla
|
|
|
|
|
|
|
|
|
|
|
|