summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@gmail.com>2016-03-21 20:02:20 (GMT)
committerDmitry Shachnev <mitya57@gmail.com>2016-03-21 20:12:51 (GMT)
commitb42dc5c88bf284e195dfe1017e65c5eccab73515 (patch)
tree16bb7a4d3a7cf59a1273382077a29c8c23327ea7
parent2bd8620710ce8d7349ce7432315d3c66f4aea5cd (diff)
Ship configuration for Qt 4 and Qt 5 in this package (see #818536).
-rw-r--r--debian/changelog1
-rw-r--r--debian/control2
-rwxr-xr-xdebian/rules12
3 files changed, 15 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 6079b80..64eb8f4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ qtchooser (55-gc9562a1-1) UNRELEASED; urgency=medium
[ Dmitry Shachnev ]
* New upstream git snapshot.
* Drop obsolete Breaks/Replaces on pre-Jessie packages.
+ * Ship configuration for Qt 4 and Qt 5 in this package (see #818536).
-- Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> Mon, 21 Mar 2016 20:44:52 +0100
diff --git a/debian/control b/debian/control
index 8f49607..02b8557 100644
--- a/debian/control
+++ b/debian/control
@@ -15,6 +15,8 @@ Package: qtchooser
Architecture: any
Multi-Arch: foreign
Depends: ${misc:Depends}, ${shlibs:Depends}
+Breaks: libqt5core5a (<< 5.5.1+dfsg-16~), libqtcore4 (<< 4:4.8.7+dfsg-7~)
+Replaces: libqt5core5a (<< 5.5.1+dfsg-16~), libqtcore4 (<< 4:4.8.7+dfsg-7~)
Description: Wrapper to select between Qt development binary versions
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
diff --git a/debian/rules b/debian/rules
index 4252808..7348cb7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,6 +14,18 @@ override_dh_auto_build:
override_dh_auto_install:
make install INSTALL_ROOT=$(CURDIR)/debian/qtchooser
+ mkdir -p $(CURDIR)/debian/qtchooser/usr/share/qtchooser
+ mkdir -p $(CURDIR)/debian/qtchooser/usr/lib/$(DEB_HOST_MULTIARCH)/qtchooser
+
+ for ver in 4 5; do \
+ echo "/usr/lib/$(DEB_HOST_MULTIARCH)/qt$${ver}/bin" > $(CURDIR)/debian/qtchooser/usr/share/qtchooser/qt$${ver}-$(DEB_HOST_MULTIARCH).conf; \
+ echo "/usr/lib/$(DEB_HOST_MULTIARCH)" >> $(CURDIR)/debian/qtchooser/usr/share/qtchooser/qt$${ver}-$(DEB_HOST_MULTIARCH).conf; \
+ ln -s /usr/share/qtchooser/qt$${ver}-$(DEB_HOST_MULTIARCH).conf \
+ $(CURDIR)/debian/qtchooser/usr/lib/$(DEB_HOST_MULTIARCH)/qtchooser/$${ver}.conf; \
+ ln -s /usr/share/qtchooser/qt$${ver}-$(DEB_HOST_MULTIARCH).conf \
+ $(CURDIR)/debian/qtchooser/usr/lib/$(DEB_HOST_MULTIARCH)/qtchooser/qt$${ver}.conf; \
+ done
+
override_dh_auto_test:
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
make check QMAKE=/usr/lib/$(DEB_HOST_MULTIARCH)/qt5/bin/qmake