debian/0000775000000000000000000000000012304060672007170 5ustar debian/patches/0000775000000000000000000000000012304060672010617 5ustar debian/patches/disable_audio_playback_test.patch0000664000000000000000000000751312304060672017337 0ustar Description: Disable an audio playback test in tst_qfeedbackmmk.cpp This test fails on builders, although succeeds locally. It fails with: QWARN : tst_QFeedbackMMK::goodFile() PulseAudioService: pa_context_connect() failed Assertion 'c' failed at pulse/context.c:964, function pa_context_get_state(). Aborting. even if pulseaudio is installed during build time. Author: Timo Jyrinki Last-Updated: 2013-10-30 diff --git a/tests/auto/qfeedbackmmk/tst_qfeedbackmmk.cpp b/tests/auto/qfeedbackmmk/tst_qfeedbackmmk.cpp index 76f3390..939c160 100644 --- a/tests/auto/qfeedbackmmk/tst_qfeedbackmmk.cpp +++ b/tests/auto/qfeedbackmmk/tst_qfeedbackmmk.cpp @@ -62,7 +62,6 @@ public slots: void cleanup(); private slots: - void goodFile(); void badFile(); private: @@ -112,83 +111,6 @@ void tst_QFeedbackMMK::cleanup() Q_DECLARE_METATYPE(QFeedbackEffect::ErrorType); -void tst_QFeedbackMMK::goodFile() -{ - QFeedbackFileEffect fe; - qRegisterMetaType(); - QSignalSpy errorSpy(&fe, SIGNAL(error(QFeedbackEffect::ErrorType))); - QSignalSpy stateSpy(&fe, SIGNAL(stateChanged())); - - QFileInfo fi(url.toLocalFile()); - qDebug() << "URL for test data:" << url << url.toLocalFile() << fi.exists(); - - fe.setSource(url); - - QTRY_COMPARE((int)fe.state(), (int)QFeedbackFileEffect::Loading); - QCOMPARE(errorSpy.count(), 0); - QCOMPARE(stateSpy.count(), 1); // Stopped to Loading - - // Wait for it to be loaded - QTRY_COMPARE((int)fe.state(), (int)QFeedbackFileEffect::Stopped); - QCOMPARE(errorSpy.count(), 0); - QCOMPARE(stateSpy.count(), 2); // Stopped to Loading to Stopped - - // Now play! - fe.start(); - - // Now wait for it to be playing - QTRY_COMPARE((int)fe.state(), (int)QFeedbackFileEffect::Running); - QCOMPARE(errorSpy.count(), 0); - QCOMPARE(stateSpy.count(), 3); // Stopped to Loading to Stopped to Running - QVERIFY(fe.isLoaded()); - QVERIFY(fe.duration() == 0); // unsupported :/ - - // Try pausing - not supported - fe.pause(); // XXX this emits stateChanged even when it fails - QTRY_COMPARE((int)fe.state(), (int)QFeedbackFileEffect::Running); - QCOMPARE(errorSpy.count(), 1); - QCOMPARE(stateSpy.count(), 4); // Stopped to Loading to Stopped to Running - - // It should run out, eventually - QTRY_COMPARE((int)fe.state(), (int)QFeedbackFileEffect::Stopped); - QCOMPARE(errorSpy.count(), 1); - QCOMPARE(stateSpy.count(), 5); // Stopped to Loading to Stopped to Running to Stopped - - // Play it again.. - fe.start(); - QTRY_COMPARE((int)fe.state(), (int)QFeedbackFileEffect::Running); - QCOMPARE(errorSpy.count(), 1); - QCOMPARE(stateSpy.count(), 6); // Stopped to Loading to Stopped to Running to Stopped to Running - - fe.stop(); - QTRY_COMPARE((int)fe.state(), (int)QFeedbackFileEffect::Stopped); - QCOMPARE(errorSpy.count(), 1); - QCOMPARE(stateSpy.count(), 7); // Stopped to Loading to Stopped to Running to Stopped to Running to Stopped - - fe.unload(); - QTRY_COMPARE((int)fe.state(), (int)QFeedbackFileEffect::Stopped); - QCOMPARE(stateSpy.count(), 7); // no change - QCOMPARE(fe.isLoaded(), false); - QCOMPARE(fe.duration(), 0); - - // now load again - fe.load(); -#ifdef Q_OS_MAC - QEXPECT_FAIL("", "QTBUG-25448", Abort); -#endif - QTRY_COMPARE((int)fe.state(), (int)QFeedbackFileEffect::Loading); - QCOMPARE(errorSpy.count(), 1); - QCOMPARE(stateSpy.count(), 8); // Stopped to Loading - - // Now wait for it to be loaded and playing - QTRY_COMPARE((int)fe.state(), (int) QFeedbackFileEffect::Stopped); - QCOMPARE(errorSpy.count(), 1); - QCOMPARE(stateSpy.count(), 9); // Stopped to Loading to Stopped - QVERIFY(fe.isLoaded()); - - // destroy it while playing -} - void tst_QFeedbackMMK::badFile() { QFeedbackFileEffect fe; debian/patches/revert_module_version.patch0000664000000000000000000000053612304060672016265 0ustar Description: Revert module version zeroing Trying to revert the zeroing since a crash seems to happen without non-zero version number. (LP: #1178620) diff --git a/.qmake.conf b/.qmake.conf index 8840bd9..3c4fa5e 100644 --- a/.qmake.conf +++ b/.qmake.conf @@ -1,3 +1,3 @@ load(qt_build_config) -MODULE_VERSION = 0.0.0 +MODULE_VERSION = 5.0.0 debian/patches/series0000664000000000000000000000007612304060672012037 0ustar revert_module_version.patch disable_audio_playback_test.patch debian/qtdeclarative5-qtfeedback-plugin.install0000664000000000000000000000002412304060672017054 0ustar usr/lib/*/qt5/qml/* debian/rules0000775000000000000000000000247512304060672010260 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed %: dh $@ --list-missing --parallel --with pkgkde_symbolshelper --dbg-package=qtfeedback5-dbg override_dh_auto_configure: mkdir .git qmake override_dh_auto_install: dh_auto_install # Fix wrong path in pkgconfig files find $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig -type f -name '*.pc' \ -exec sed -i -e 's/$(DEB_HOST_MULTIARCH)\/$(DEB_HOST_MULTIARCH)/$(DEB_HOST_MULTIARCH)/g' {} \; # Remove private stuff rm -rfv debian/tmp/usr/include/qt5/QtFeedback/*/QtFeedback/private/ rm -fv $(CURDIR)/debian/tmp/usr/lib/*/qt5/mkspecs/modules/qt_lib_*_private.pri # Remove libtool-like files rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la override_dh_auto_test: # Copy missing qmldir file to have tests running successfully cp -a src/imports/feedback/qmldir qml/QtFeedback/ cd tests ; qmake ; xvfb-run -a make check QML2_IMPORT_PATH=../../../qml QT_PLUGIN_PATH=$(CURDIR)/plugins LD_LIBRARY_PATH=$(CURDIR)/lib override_dh_builddeb: dh_builddeb -- -Zxz debian/source/0000775000000000000000000000000012304060672010470 5ustar debian/source/format0000664000000000000000000000001412304060672011676 0ustar 3.0 (quilt) debian/libqt5feedback5.install0000664000000000000000000000005112304060672013506 0ustar usr/lib/*/*.so.* usr/lib/*/qt5/plugins/* debian/copyright0000664000000000000000000001517212304060672011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: qtfeedback Source: http://qt.gitorious.org/qt/qtfeedback Files: * Copyright: 2012 Digia Plc and/or its subsidiary(-ies) License: LGPL-2.1 with Digia Qt LGPL Exception 1.1 or GPL-3 Files: debian/* Copyright: 2007-2012 Fathi Boudra 2007-2012 Sune Vuorela 2008-2012 Modestas Vainius 2007-2009 Ana Beatriz Guerrero Lopez 2005-2007 Brian Nelson 2012-2013 Timo Jyrinki License: LGPL-2.1 License: LGPL-2.1 with Digia Qt LGPL Exception 1.1 GNU Lesser General Public License version 2.1: This file may be used under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation and appearing in the file LICENSE.LGPL included in the packaging of this file. Please review the following information to ensure the GNU Lesser General Public License version 2.1 requirements will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. . In addition, as a special exception, Digia gives you certain additional rights. These rights are described in the Digia Qt LGPL Exception version 1.1, included in the file LGPL_EXCEPTION.txt in this package. . On Debian systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-2.1`. . Digia Qt LGPL Exception version 1.1: As an additional permission to the GNU Lesser General Public License version 2.1, the object code form of a "work that uses the Library" may incorporate material from a header file that is part of the Library. You may distribute such object code under terms of your choice, provided that: (i) the header files of the Library have not been modified; and (ii) the incorporated material is limited to numerical parameters, data structure layouts, accessors, macros, inline functions and templates; and (iii) you comply with the terms of Section 6 of the GNU Lesser General Public License version 2.1. . Moreover, you may apply this exception to a modified version of the Library, provided that such modification does not involve copying material from the Library into the modified Library's header files unless such material is limited to (i) numerical parameters; (ii) data structure layouts; (iii) accessors; and (iv) small macros, templates and inline functions of five lines or less in length. . Furthermore, you are not required to apply this additional permission to a modified version of the Library. Files: tests/auto/cmake/test_modules/main.cpp Copyright: 2012 Klarälvdalens Datakonsult AB, a KDAB Group company License: LGPL-2.1 with Digia Qt LGPL Exception 1.1 or GPL-3 License: GPL-3 GNU General Public License Usage . Alternatively, this file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE.GPL included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. . On Debian systems, the complete text of the license can be found in `/usr/share/common-licenses/GPL-3`. License: LGPL-2.1 This file may be used under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation and appearing in the file LICENSE.LGPL included in the packaging of this file. Please review the following information to ensure the GNU Lesser General Public License version 2.1 requirements will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. . On Debian systems, the complete text of the LGPL-2.1 license can be found in `/usr/share/common-licenses/LGPL-2.1`, Files: examples/* doc/src/snippets/* Copyright: 2012 Digia Plc and/or its subsidiary(-ies) License: BSD-3-clause License: BSD-3-clause You may use this file under the terms of the BSD license as follows: . "Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." Files: *.qdoc Copyright: 2012 Digia Plc and/or its subsidiary(-ies). License: GFDL-1.3 License: GFDL-1.3 GNU Free Documentation License Usage Alternatively, this file may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation and appearing in the file included in the packaging of this file. Please review the following information to ensure the GNU Free Documentation License version 1.3 requirements will be met: http://www.gnu.org/copyleft/fdl.html. . On Debian systems, the complete text of the GFDL-1.3 license can be found in `/usr/share/common-licenses/GFDL-1.3`, Files: examples/hapticsquare/hapticbutton.cpp examples/hapticsquare/hapticbutton.h doc/src/snippets/qtfeedbackdocsample/qtfeedbackdocsample.cpp doc/src/snippets/code/doc_src_lgpl.qdoc doc/src/legal/3rdparty.qdoc doc/src/legal/editions.qdoc doc/src/legal/trademarks.qdoc doc/src/legal/gpl.qdoc doc/src/legal/opensourceedition.qdoc Copyright: 2012 Digia Plc and/or its subsidiary(-ies) License: LGPL-2.1 with Digia Qt LGPL Exception 1.1 or GPL-3 debian/control0000664000000000000000000000630412304060672010576 0ustar Source: qtfeedback-opensource-src Section: libs Priority: optional Maintainer: Ubuntu Developers Build-Depends: debhelper (>= 9), libpulse-dev, pkg-kde-tools, qt5-default, qtbase5-dev (>= 5.2.1+dfsg~), qtdeclarative5-dev (>= 5.2.1~), qtdeclarative5-qtquick2-plugin (>= 5.2.1~), qtmultimedia5-dev (>= 5.2.1~), xauth, xvfb, Standards-Version: 3.9.4 Homepage: http://qt-project.org/ Vcs-Bzr: lp:~kubuntu-packagers/kubuntu-packaging/qtfeedback-opensource-src Vcs-Browser: https://code.launchpad.net/~kubuntu-packagers/kubuntu-packaging/qtfeedback-opensource-src Package: libqt5feedback5 Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends} Description: Qt Feedback module Qt is a cross-platform C++ application framework. Qt's primary feature is its rich set of widgets that provide standard GUI functionality. . This package contains Qt Feedback module. . WARNING: This module is not an official part of Qt 5, but instead a git snapshot of an ongoing development. The package is very likely to change in a binary incompatible way, and no guarantees are given. Package: qtdeclarative5-qtfeedback-plugin Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: libqt5feedback5, ${misc:Depends}, ${shlibs:Depends} Description: Qt Feedback module - QML plugin Qt is a cross-platform C++ application framework. Qt's primary feature is its rich set of widgets that provide standard GUI functionality. . This package contains the Qt Feedback QML plugin for Qt Declarative. . WARNING: This module is not an official part of Qt 5, but instead a git snapshot of an ongoing development. The package is very likely to change in a binary incompatible way, and no guarantees are given. Package: qtfeedback5-dev Section: libdevel Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: libqt5feedback5 (= ${binary:Version}), qtbase5-dev, ${misc:Depends} Description: Qt 5 Feedback development files Qt is a cross-platform C++ application framework. Qt's primary feature is its rich set of widgets that provide standard GUI functionality. . This package contains the header development files used for building Qt 5 applications using Qt Feedback library. . WARNING: This module is not an official part of Qt 5, but instead a git snapshot of an ongoing development. The package is very likely to change in a binary incompatible way, and no guarantees are given. Package: qtfeedback5-dbg Priority: extra Architecture: any Section: debug Depends: libqt5feedback5 (= ${binary:Version}), ${misc:Depends} Description: Qt Feedback library debugging symbols Qt is a cross-platform C++ application framework. Qt's primary feature is its rich set of widgets that provide standard GUI functionality. . This package contains the debugging symbols for the Qt 5 Feedback libraries. . WARNING: This module is not an official part of Qt 5, but instead a git snapshot of an ongoing development. The package is very likely to change in a binary incompatible way, and no guarantees are given. debian/qtfeedback5-dev.install0000664000000000000000000000153512304060672013516 0ustar usr/include/qt5/QtFeedback/QFeedbackActuator usr/include/qt5/QtFeedback/QFeedbackEffect usr/include/qt5/QtFeedback/QFeedbackFileEffect usr/include/qt5/QtFeedback/QFeedbackFileInterface usr/include/qt5/QtFeedback/QFeedbackHapticsEffect usr/include/qt5/QtFeedback/QFeedbackHapticsInterface usr/include/qt5/QtFeedback/QFeedbackInterface usr/include/qt5/QtFeedback/QFeedbackThemeInterface usr/include/qt5/QtFeedback/QtFeedback usr/include/qt5/QtFeedback/QtFeedbackVersion usr/include/qt5/QtFeedback/qfeedbackactuator.h usr/include/qt5/QtFeedback/qfeedbackeffect.h usr/include/qt5/QtFeedback/qfeedbackglobal.h usr/include/qt5/QtFeedback/qfeedbackplugininterfaces.h usr/include/qt5/QtFeedback/qfeedbackpluginsearch.h usr/include/qt5/QtFeedback/qtfeedbackversion.h usr/lib/*/*.prl usr/lib/*/*.so usr/lib/*/cmake/* usr/lib/*/pkgconfig/* usr/lib/*/qt5/mkspecs/modules/* debian/changelog0000664000000000000000000000164112304060672011044 0ustar qtfeedback-opensource-src (5.0~git20130529-0ubuntu3) trusty; urgency=medium * Rebuild against Qt 5.2.1, bump dependencies * Use 'mkdir .git' to trigger header build for the snapshot release * Drop private headers like Debian -- Timo Jyrinki Fri, 28 Feb 2014 10:15:03 +0000 qtfeedback-opensource-src (5.0~git20130529-0ubuntu2) trusty; urgency=low * debian/rules: Run tests * debian/patches/disable_audio_playback_test.patch - Disable a test that succeeds locally but fails on a builder -- Timo Jyrinki Wed, 30 Oct 2013 10:07:27 -0700 qtfeedback-opensource-src (5.0~git20130529-0ubuntu1) saucy; urgency=low * Initial release (LP: #1190213) * Fix pkgconfig Libs.private path (LP: #1125156) * debian/patches/revert_module_version.patch: - Keep module version non-zero -- Timo Jyrinki Wed, 12 Jun 2013 15:35:24 +0300 debian/compat0000664000000000000000000000000212304060672010366 0ustar 9