[mingw-qt: 3/65] actually import sources, move out qmake setup into separate package

epienbro epienbro at fedoraproject.org
Tue Mar 6 21:27:00 UTC 2012


commit 2cf5dfcd7344cdab5b19a61319fe775fe5eb1f71
Author: sailer <sailer at fedoraproject.org>
Date:   Mon Mar 16 02:31:08 2009 +0000

    actually import sources, move out qmake setup into separate package

 .cvsignore      |    1 +
 mingw32-qt.spec |   34 ++++++++++++++++++----------------
 sources         |    1 +
 3 files changed, 20 insertions(+), 16 deletions(-)
---
diff --git a/.cvsignore b/.cvsignore
index e69de29..1d5513b 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -0,0 +1 @@
+qt-win-opensource-src-4.5.0.zip
diff --git a/mingw32-qt.spec b/mingw32-qt.spec
index 5c874a6..7026467 100644
--- a/mingw32-qt.spec
+++ b/mingw32-qt.spec
@@ -17,7 +17,7 @@
 
 Name:           mingw32-qt
 Version:        4.5.0
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Qt for Windows
 
 License:        GPLv3 with exceptions or LGPLv2 with exceptions
@@ -47,6 +47,7 @@ Patch0:         qt-win-configure.patch
 Patch11:        mingw32-qt-4.4.3-no-fpu-functions.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
 BuildArch:      noarch
 
 BuildRequires:  mingw32-filesystem >= 35
@@ -54,19 +55,19 @@ BuildRequires:  mingw32-gcc
 BuildRequires:  mingw32-gcc-c++
 BuildRequires:  mingw32-binutils
 
-# For the native qmake, moc programs.
-# Note that the precise same native version is required - eg. moc will
-# not work unless it's the same version.
-#BuildRequires:  qt-devel = %{version}  Stupid, can't write this ...
-BuildRequires:  qt-devel
+# This is required because we want qmake
+BuildRequires:  qt4-devel = %{version}
 
 BuildRequires:  zip
 BuildRequires:  dos2unix
 
-# This is required because we want qmake, but also because we
-# install the cross-compile qmake specs into a directory owned
-# by this package.
-Requires:       qt-devel
+# This package contains the cross-compiler setup for qmake
+Requires:       mingw32-qt-qmake = %{version}
+
+# Obsolete qt-win package that was posted to the mingw
+# mailing list / is on annexia.org
+Obsoletes:      mingw32-qt-win <= 4.5.0
+Provides:       mingw32-qt-win = %{version}
 
 
 %description
@@ -110,6 +111,8 @@ for d in %{subdirs}; do
   # Now build in this directory.
   pushd $d
   qmake-qt4 -win32 *.pro
+#  since we trash the PCH cache, everything is rebuilt again at install time,
+#  so there's no point in building now
 #  make %{?_smp_mflags}
   popd
 
@@ -164,11 +167,6 @@ mv $RPM_BUILD_ROOT%{_libdir}/*.a $RPM_BUILD_ROOT%{_mingw32_libdir}
 rm $RPM_BUILD_ROOT%{_libdir}/qt4/bin/*
 rm $RPM_BUILD_ROOT%{_libdir}/*.prl
 
-# Cross-compiler qmake specs.
-mkdir -p $RPM_BUILD_ROOT%{_libdir}/qt4/mkspecs/fedora-win32-cross
-cp %{SOURCE3} %{SOURCE4} \
-  $RPM_BUILD_ROOT%{_libdir}/qt4/mkspecs/fedora-win32-cross
-
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -216,10 +214,14 @@ rm -rf $RPM_BUILD_ROOT
 %{_mingw32_includedir}/QtSvg/
 %{_mingw32_includedir}/QtSql/
 %{_mingw32_includedir}/Qt3Support/
-%{_libdir}/qt4/mkspecs/fedora-win32-cross
 
 
 %changelog
+* Sun Mar 16 2009 Thomas Sailer <t.sailer at alumni.ethz.ch> - 4.5.0-3
+- moved cross compiler qmake setup files into separate package
+  to keep this package noarch
+- update BR, Provides, Obsoletes with reviewer suggestions
+
 * Thu Mar 12 2009 Thomas Sailer <t.sailer at alumni.ethz.ch> - 4.5.0-2
 - enable debug libraries
 - rename to mingw32-qt
diff --git a/sources b/sources
index e69de29..4ea352f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+172c0157a4a53c362f780066ead9f88a  qt-win-opensource-src-4.5.0.zip


More information about the scm-commits mailing list