[packages/dbus-1-tqt] build with tqt3

glen glen at pld-linux.org
Sun Mar 22 09:29:04 CET 2015


commit e5248cb67ce0bd08890a3fe55beacb848ba4ca03
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Mar 22 10:28:46 2015 +0200

    build with tqt3

 dbus-1-tqt.spec | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/dbus-1-tqt.spec b/dbus-1-tqt.spec
index 49f5fa6..bf12b10 100644
--- a/dbus-1-tqt.spec
+++ b/dbus-1-tqt.spec
@@ -1,8 +1,12 @@
+#
+# Conditional build:
+%bcond_with		qt3     # Build with Qt3 instead TQt3
+
 %define	tde_ver	R14.0.0
 Summary:	DBus bindings for the Trinity Qt interface
 Name:		dbus-1-tqt
 Version:	0.9
-Release:	0.1
+Release:	0.2
 # AFL v2.1 or GPL v2+, but Qt license enforces GPL
 License:	GPL v2+
 Group:		Libraries
@@ -14,7 +18,13 @@ BuildRequires:	cmake >= 2.8
 BuildRequires:	dbus-devel >= 0.91
 BuildRequires:	libstdc++-devel
 BuildRequires:	pkgconfig
+%if %{with qt3}
 BuildRequires:	qt-devel >= 6:3.1.0
+%else
+BuildRequires:	libtqt3-mt-devel >= 3.5.0
+BuildRequires:	tqt3-dev-tools >= 3.5.0
+BuildConflicts:	qt-devel
+%endif
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -53,7 +63,9 @@ Statyczna biblioteka do używania D-BUS oparta o Qt.
 %prep
 %setup -qc
 mv dependencies/dbus-1-tqt/* .
+%if %{with qt3}
 %patch0 -p1
+%endif
 
 %build
 install -d build
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dbus-1-tqt.git/commitdiff/e5248cb67ce0bd08890a3fe55beacb848ba4ca03



More information about the pld-cvs-commit mailing list