SPECS: qt4.spec - QtCore-devel R: glib2-devel - fixed %prep (QMAKE...
charles
charles at pld-linux.org
Mon Dec 25 05:01:26 CET 2006
Author: charles Date: Mon Dec 25 04:01:26 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- QtCore-devel R: glib2-devel
- fixed %prep (QMAKE FLAGS)
- fixed *.pc (moc & uic path)
---- Files affected:
SPECS:
qt4.spec (1.117 -> 1.118)
---- Diffs:
================================================================
Index: SPECS/qt4.spec
diff -u SPECS/qt4.spec:1.117 SPECS/qt4.spec:1.118
--- SPECS/qt4.spec:1.117 Sat Dec 9 02:19:20 2006
+++ SPECS/qt4.spec Mon Dec 25 05:01:20 2006
@@ -154,6 +154,7 @@
Summary(pl): Podstawowe klasy używane przez inne moduły - pliki programistyczne
Group: X11/Development/Libraries
Requires: QtCore = %{version}-%{release}
+Requires: glib2-devel
Requires: libstdc++-devel
Requires: zlib-devel
@@ -933,38 +934,24 @@
%patch8 -p1
%patch9 -p1
-sed -i -e 's,usr/X11R6/,usr/,' mkspecs/linux-g*/qmake.conf
+%{__sed} -i -e 's,usr/X11R6/,usr/g,' mkspecs/linux-g++-64/qmake.conf \
+ mkspecs/common/linux.conf
-# change QMAKE_CFLAGS_RELEASE to build
-# properly optimized libs
-
-if [ "%{_lib}" != "lib" ] ; then
- cfgf="mkspecs/linux-g++-64/qmake.conf"
-else
- cfgf="mkspecs/linux-g++/qmake.conf"
-fi
-
-sed -i -e '
- s|QMAKE_CC.*=.*gcc|QMAKE_CC = %{__cc}|;
- s|QMAKE_CXX.*=.*g++|QMAKE_CXX = %{__cxx}|;
- s|QMAKE_LINK.*=.*g++|QMAKE_LINK = %{__cxx}|;
- s|QMAKE_LINK_SHLIB.*=.*g++|QMAKE_LINK_SHLIB = %{__cxx}|;
- s|QMAKE_INCDIR_QT.*|QMAKE_INCDIR_QT = %{_includedir}/qt4|;
- ' $cfgf
-
-cat $cfgf \
- | grep -v QMAKE_CFLAGS_RELEASE \
- | grep -v QMAKE_CXXFLAGS_RELEASE \
- | grep -v QMAKE_CFLAGS_DEBUG \
- | grep -v QMAKE_CXXFLAGS_DEBUG \
- > $cfgf.1
-
-mv $cfgf.1 $cfgf
-echo >> $cfgf
-echo -e "QMAKE_CFLAGS_RELEASE\t= %{rpmcflags}" >> $cfgf
-echo -e "QMAKE_CXXFLAGS_RELEASE\t= %{rpmcxxflags}" >> $cfgf
-echo -e "QMAKE_CFLAGS_DEBUG\t= %{debugcflags}" >> $cfgf
-echo -e "QMAKE_CXXFLAGS_DEBUG\t= %{debugcflags}" >> $cfgf
+# change QMAKE FLAGS to build
+%{__sed} -i -e '
+ s|QMAKE_CC.*=.*gcc|QMAKE_CC\t\t= %{__cc}|;
+ s|QMAKE_CXX.*=.*g++|QMAKE_CXX\t\t= %{__cxx}|;
+ s|QMAKE_LINK.*=.*g++|QMAKE_LINK\t\t= %{__cxx}|;
+ s|QMAKE_LINK_SHLIB.*=.*g++|QMAKE_LINK_SHLIB\t= %{__cxx}|;
+ s|QMAKE_CFLAGS_RELEASE.*|QMAKE_CFLAGS_RELEASE\t+= %{rpmcflags}|;
+ s|QMAKE_CXXFLAGS_RELEASE.*|QMAKE_CXXFLAGS_RELEASE\t+= %{rpmcxxflags}|;
+ s|QMAKE_CFLAGS_DEBUG.*|QMAKE_CFLAGS_DEBUG\t+= %{debugcflags}|;
+ s|QMAKE_CXXFLAGS_DEBUG.*|QMAKE_CXXFLAGS_DEBUG\t+= %{debugcflags}|;
+ ' mkspecs/common/g++.conf
+
+%{__sed} -i -e '
+ s|QMAKE_INCDIR_QT.*|QMAKE_INCDIR_QT = %{_includedir}/qt4|;
+ ' mkspecs/common/linux.conf
%build
# pass OPTFLAGS to build qmake itself with optimization
@@ -1077,6 +1064,10 @@
# kill -L/inside/builddir from *.la and *.pc (bug #77152)
%{__sed} -i -e "s,-L$PWD/lib,,g" $RPM_BUILD_ROOT%{_libdir}/*.{la,pc,prl}
+%{__sed} -i -e '
+ s|moc_location=.*|moc_location=%{_bindir}/qt4-moc|;
+ s|uic_location=.*|uic_location=%{_bindir}/qt4-uic|;
+ ' $RPM_BUILD_ROOT%{_libdir}/*.pc
# install tools
install bin/findtr $RPM_BUILD_ROOT%{_qtdir}/bin
@@ -1546,6 +1537,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.118 2006/12/25 04:01:20 charles
+- QtCore-devel R: glib2-devel
+- fixed %prep (QMAKE FLAGS)
+- fixed *.pc (moc & uic path)
+
Revision 1.117 2006/12/09 01:19:20 glen
- fix AC bcond
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/qt4.spec?r1=1.117&r2=1.118&f=u
More information about the pld-cvs-commit
mailing list