--- cutecom-0.22.0.orig/debian/rules +++ cutecom-0.22.0/debian/rules @@ -0,0 +1,66 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/quilt/quilt.make + +config: patch + dh_testdir + mkdir -p build + cd build && cmake -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/cutecom/usr \ + -DCMAKE_CXX_FLAGS="$(CFLAGS)" -DCMAKE_C_FLAGS="$(CFLAGS)" \ + -DCMAKE_EXE_LINKER_FLAGS="-Wl,-z,defs" ../ + +build: build-stamp + +build-stamp: config + dh_testdir + + cd build && $(MAKE) + + touch $@ + +clean: clean-patched unpatch + +clean-patched: + dh_testdir + dh_testroot + rm -f build-stamp + + rm -fr build + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + cd build && $(MAKE) install + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do here + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs Changelog + dh_installdocs + dh_installexamples + dh_installmenu + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- cutecom-0.22.0.orig/debian/control +++ cutecom-0.22.0/debian/control @@ -0,0 +1,20 @@ +Source: cutecom +Section: comm +Priority: optional +Maintainer: Roman I Khimov +Build-Depends: debhelper (>= 7), cmake (>= 2.4.3), libqt4-dev, quilt (>= 0.40) +Standards-Version: 3.9.1 +Homepage: http://cutecom.sourceforge.net/ + +Package: cutecom +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: lrzsz +Description: Graphical serial terminal, like minicom + Cutecom is a graphical serial terminal, like minicom. + It is aimed mainly at hardware developers or other people who need a + terminal to talk to their devices. It features lineoriented interface + instead of character-oriented, xmodem, ymodem, zmodem support + (requires the lrzsz package) and hexadecimal input and output among + other things. + It is written using the Qt library by Trolltech (www.trolltech.com). --- cutecom-0.22.0.orig/debian/README.source +++ cutecom-0.22.0/debian/README.source @@ -0,0 +1 @@ +This package uses quilt to manage patches, please refer to /usr/share/doc/quilt/README.source --- cutecom-0.22.0.orig/debian/copyright +++ cutecom-0.22.0/debian/copyright @@ -0,0 +1,17 @@ +Format-Specification: + http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=226 +Upstream-Name: CuteCom +Upstream-Source: http://cutecom.sourceforge.net/ +Upstream-Maintainer: Alexander Neundorf + +Files: * +Copyright: Copyright 2004-2009, Alexander Neundorf +License: GPL-2+ + On Debian systems the full text of the GNU General Public License can be found + in the `/usr/share/common-licenses/GPL-2' file. + +Files: debian/* +Copyright: Copyright 2006-2009 Roman I Khimov +License: GPL-2+ + On Debian systems the full text of the GNU General Public License can be found + in the `/usr/share/common-licenses/GPL-2' file. --- cutecom-0.22.0.orig/debian/changelog +++ cutecom-0.22.0/debian/changelog @@ -0,0 +1,59 @@ +cutecom (0.22.0-2) unstable; urgency=low + + * Add cutecom-0.22.0-nolinebreak.diff (closes: #591666) + * Install menu item for simple window managers (was always present in + debian dir, but not installed), change deprecated Apps/Tools section + to Applications/System/Hardware (nothing more appropriate IMO) + * Move .desktop file from /usr/share/applnk to more appropriate + /usr/share/applications/kde (should fix Ubuntu bug 379932) + * Add cutecom-remove-deprecated-desktop-entries.patch, fixes lintian + warnings + * Upgrade package to standards 3.9.1 + + -- Roman I Khimov Thu, 12 Aug 2010 22:47:38 +0400 + +cutecom (0.22.0-1) unstable; urgency=low + + * New upstream release + * Upgrade package to standards 3.8.2 + + -- Roman I Khimov Mon, 13 Jul 2009 00:16:00 +0400 + +cutecom (0.21.0-1) unstable; urgency=low + + * New upstream release + * Upgrade package to standards 3.8.1 + + -- Roman I Khimov Wed, 13 May 2009 23:09:09 +0400 + +cutecom (0.20.0-1) unstable; urgency=low + + * New upstream release + * Switch from qt3 to qt4 + * Upgrade package to standards 3.8.0 + * Upgrade package to debhelper 7 + * Rewrite copyright file in machine-interpretable format + * Add homepage field in control + * Switch from dpatch to quilt for patch management + * Remove 01-fix_iostream_include.dpatch and 02-fix_comparison_warning.dpatch + patches (moved upstream) + * Add fix_pathes_for_debian.patch, changes install path to conform Debian + standards + + -- Roman I Khimov Sun, 23 Aug 2008 14:31:40 +0400 + +cutecom (0.14.1-2) unstable; urgency=low + + * Resolve 'cutecom override disparity' found by Debian Installer, moving + package into 'comm' section + + -- Roman I Khimov Fri, 27 Nov 2006 09:27:09 +0300 + +cutecom (0.14.1-1) unstable; urgency=low + + * Initial release (Closes: #400388) + * Change CMakeLists.txt to install cutecom.desktop into fixed (proper for + Debian) location. + * Add patches to fix compile warnings + + -- Roman I Khimov Fri, 26 Nov 2006 19:15:49 +0300 --- cutecom-0.22.0.orig/debian/cutecom.menu +++ cutecom-0.22.0/debian/cutecom.menu @@ -0,0 +1,2 @@ +?package(cutecom):needs="X11" section="Applications/System/Hardware"\ + title="Cutecom" command="/usr/bin/cutecom" --- cutecom-0.22.0.orig/debian/watch +++ cutecom-0.22.0/debian/watch @@ -0,0 +1,4 @@ +# Compulsory line, this is a version 3 file +version=3 + +http://cutecom.sourceforge.net/cutecom-(.*)\.tar\.gz --- cutecom-0.22.0.orig/debian/docs +++ cutecom-0.22.0/debian/docs @@ -0,0 +1 @@ +TODO --- cutecom-0.22.0.orig/debian/compat +++ cutecom-0.22.0/debian/compat @@ -0,0 +1 @@ +5 --- cutecom-0.22.0.orig/debian/patches/fix_pathes_for_debian.patch +++ cutecom-0.22.0/debian/patches/fix_pathes_for_debian.patch @@ -0,0 +1,14 @@ +Index: cutecom-0.22.0/CMakeLists.txt +=================================================================== +--- cutecom-0.22.0.orig/CMakeLists.txt 2009-06-25 00:30:01.000000000 +0400 ++++ cutecom-0.22.0/CMakeLists.txt 2009-07-13 00:20:46.029992375 +0400 +@@ -40,8 +40,4 @@ + + find_program(KDECONFIG_EXECUTABLE NAMES kde-config ) + +-if (KDECONFIG_EXECUTABLE) +- # then ask kde-config for the kde data dirs +- exec_program(${KDECONFIG_EXECUTABLE} ARGS --install apps --expandvars OUTPUT_VARIABLE _apps_DIR ) +- install(FILES cutecom.desktop DESTINATION ${_apps_DIR}/Utilities) +-endif (KDECONFIG_EXECUTABLE) ++install(FILES cutecom.desktop DESTINATION share/applications/kde) --- cutecom-0.22.0.orig/debian/patches/series +++ cutecom-0.22.0/debian/patches/series @@ -0,0 +1,3 @@ +fix_pathes_for_debian.patch +cutecom-0.22.0-nolinebreak.diff +cutecom-remove-deprecated-desktop-entries.patch --- cutecom-0.22.0.orig/debian/patches/cutecom-0.22.0-nolinebreak.diff +++ cutecom-0.22.0/debian/patches/cutecom-0.22.0-nolinebreak.diff @@ -0,0 +1,41 @@ +diff -ruN cutecom-0.22.0/qcppdialogimpl.cpp cutecom-0.22.0-nolinebreak/qcppdialogimpl.cpp +--- cutecom-0.22.0/qcppdialogimpl.cpp 2009-06-25 21:10:49.000000000 +0100 ++++ cutecom-0.22.0-nolinebreak/qcppdialogimpl.cpp 2010-08-04 15:57:15.951009886 +0100 +@@ -18,6 +18,7 @@ + + #include "qcppdialogimpl.h" + ++#include + #include + #include + #include +@@ -1362,13 +1363,23 @@ + + void QCPPDialogImpl::doOutput() + { +- if (m_outputBuffer.isEmpty()) +- { +- return; +- } ++ QScrollBar* vScrollBar; ++ bool scrollWithText; ++ ++ if (m_outputBuffer.isEmpty()) ++ return; ++ ++ vScrollBar = m_outputView->verticalScrollBar(); ++ scrollWithText = (vScrollBar->value() == vScrollBar->maximum()); ++ ++ QTextCursor cursor(m_outputView->document()); ++ cursor.movePosition(QTextCursor::End); ++ cursor.insertText(m_outputBuffer); ++ ++ if ((scrollWithText)) ++ vScrollBar->setValue(vScrollBar->maximum()); + +- m_outputView->append(m_outputBuffer); +- m_outputBuffer.clear(); ++ m_outputBuffer.clear(); + } + + void QCPPDialogImpl::hexOutputClicked(bool /* on */) --- cutecom-0.22.0.orig/debian/patches/cutecom-remove-deprecated-desktop-entries.patch +++ cutecom-0.22.0/debian/patches/cutecom-remove-deprecated-desktop-entries.patch @@ -0,0 +1,17 @@ +Index: cutecom-0.22.0/cutecom.desktop +=================================================================== +--- cutecom-0.22.0.orig/cutecom.desktop 2010-08-12 19:00:49.704956488 +0000 ++++ cutecom-0.22.0/cutecom.desktop 2010-08-12 19:01:30.321689994 +0000 +@@ -1,12 +1,10 @@ + [Desktop Entry] + Encoding=UTF-8 +-BinaryPattern= + Name=CuteCom + MimeType= + GenericName=Serial Terminal + Exec=cutecom + Icon=openterm +-TerminalOptions= + Path= + Type=Application + Terminal=0