]> git.pld-linux.org Git - projects/template-specs.git/blobdiff - qt4.spec
avoid NAME subst
[projects/template-specs.git] / qt4.spec
index 64d07a076e5138a6aa1b8bf87da59a406bd8978f..2749033325fc8ab6064326666ff1ca2f7431a9f5 100644 (file)
--- a/qt4.spec
+++ b/qt4.spec
@@ -8,15 +8,17 @@ Group:                X11/Applications
 Source0:       -
 # Source0-md5: 
 URL:           -
-BuildRequires: Qt3Support-devel
+# uncomment needed libraries
+#BuildRequires:        Qt3Support-devel
 BuildRequires: QtCore-devel
-BuildRequires: QtGui-devel
-BuildRequires: QtNetwork-devel
-BuildRequires: QtSvg-devel
-BuildRequires: QtTest-devel
-BuildRequires: QtXml-devel
-BuildRequires: qt4-build
-BuildRequires: qt4-qmake
+#BuildRequires:        QtGui-devel
+#BuildRequires:        QtNetwork-devel
+#BuildRequires:        QtSvg-devel
+#BuildRequires:        QtTest-devel
+#BuildRequires:        QtXml-devel
+# require ">= 4.3.3-3" if some tool is invoked by *-qt4 name
+BuildRequires: qt4-build >= 4.3.3-3
+BuildRequires: qt4-qmake >= 4.3.3-3
 BuildRequires: rpmbuild(macros) >= 1.129
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -28,11 +30,20 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %setup -q
 
 %build
-qt4-qmake
+qmake-qt4
 %{__make}
 
+%{__make} \
+       CXX="%{__cxx}" \
+       CXXFLAGS="%{rpmcxxflags}"
+%{__make} gui \
+       QMAKE=qmake-qt4 \
+       CXX="%{__cxx}" \
+       CXXFLAGS="%{rpmcxxflags} "'$(DEFINES)'
+
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
 # usually you have to install the program manually
 
 %clean
This page took 0.139432 seconds and 4 git commands to generate.