debian/0000755000000000000000000000000012220044444007162 5ustar debian/clean0000644000000000000000000000017312217047702010176 0ustar lib/* Makefile .DS_Store */Makefile */.DS_Store */*.qm */*/Makefile */*/.DS_Store */*/tmp/* */*/*.qm OpenRPT/images/*/*.db debian/docs0000644000000000000000000000000712216525765010051 0ustar README debian/libopenrpt-dev.install0000644000000000000000000000054512217025160013510 0ustar usr/lib/*/lib*.so common/*h /usr/include/openrpt/common common/tmp/*h /usr/include/openrpt/common/tmp MetaSQL/*h /usr/include/openrpt/MetaSQL MetaSQL/tmp/*h /usr/include/openrpt/MetaSQL/tmp OpenRPT/renderer/*h /usr/include/openrpt/OpenRPT/renderer OpenRPT/wrtembed/*h /usr/include/openrpt/OpenRPT/wrtembed OpenRPT/images/* /usr/share/openrpt/OpenRPT/images debian/rules0000755000000000000000000000166312220003474010246 0ustar #!/usr/bin/make -f include /usr/share/dpkg/architecture.mk %: dh $@ --builddirectory=. --parallel override_dh_auto_clean: rm -rf bin/* OpenRPT/Dmtx_Library chmod -x OpenRPT/images/*.png dh_auto_clean override_dh_auto_configure: lrelease */*/*.ts */*.ts # convert to dynamic linking find . -name '*.pro' -a -not -path './.pc/*' -exec sed -i.orig -e 's/staticlib/dll/g' -e 's/lib\([A-Za-z]*\)\.a/lib\1.so/' {} \; dh_auto_configure override_dh_auto_install: mv bin/graph bin/openrpt-graph mkdir -p debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) mv lib/lib*.so* debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) dh_auto_install find . -name '*.pro' -a -not -path './.pc/*' -exec test -e {}.orig \; -a -exec mv -f {}.orig {} \; get-orig-source: @d=$$(readlink -e $(MAKEFILE_LIST)); \ cd $${d%/*}/..; \ debian/get-orig-source.sh $(CURDIR) +dfsg .PHONY: override_dh_auto_configure override_dh_auto_install override_dh_auto_clean get-orig-source debian/watch0000644000000000000000000000026612216525765010236 0ustar # unfortunately, upstream uses crazy download naming schema, so we can't use this to update automagically yet :( version=3 http://sf.net/postbooks/OpenRPT-([\d+\.]+)-source.tar.bz2 debian/patches/0000755000000000000000000000000012220035200010577 5ustar debian/patches/series0000644000000000000000000000022112220003132012006 0ustar 01-use-system-dmtx.patch 02-01-a39adeacf901.patch 02-02-4a02ded503ab.patch 02-03-513be82ce4eb.patch 03-qbound-arm.patch 04-dynamic-library.patch debian/patches/02-03-513be82ce4eb.patch0000644000000000000000000000145412216540201014166 0ustar From: idiallo Git-Commit-Id: 513be82ce4eb Date: 2013-05-06 23:00 +0000 Subject: Issue #20285: Selecting 'Move Down' button in section editor screen crashes the application. git-svn-id: http://svn.code.sf.net/p/postbooks/code/openrpt/trunk@14605 ea1a15ef-c238-0410-93cb-fa28e9f07733 diff --git a/OpenRPT/wrtembed/sectioneditor.cpp b/OpenRPT/wrtembed/sectioneditor.cpp --- a/OpenRPT/wrtembed/sectioneditor.cpp +++ b/OpenRPT/wrtembed/sectioneditor.cpp @@ -181,7 +181,7 @@ void SectionEditor::brnMoveDown_clicked( { // get the selectged item and move it down in the list int idx = lbSections->currentRow(); - if(idx == (int)(lbSections->count() - 1)) + if(idx < 0 || idx == (int)(lbSections->count() - 1)) return; QString s = lbSections->item(idx)->text(); lbSections->takeItem(idx); debian/patches/01-use-system-dmtx.patch0000644000000000000000000000263312216540201015141 0ustar --- a/OpenRPT/renderapp/renderapp.pro +++ b/OpenRPT/renderapp/renderapp.pro @@ -31,7 +31,7 @@ MOC_DIR = tmp UI_DIR = tmp -LIBS += -L../../lib -lrenderer -lcommon -lDmtx_Library +LIBS += -L../../lib -lrenderer -lcommon -ldmtx win32-msvc* { PRE_TARGETDEPS += ../../lib/common.lib \ --- a/OpenRPT/renderer/renderer.pro +++ b/OpenRPT/renderer/renderer.pro @@ -29,7 +29,7 @@ OBJECTS_DIR = tmp UI_DIR = tmp -LIBS += -L../../lib -lDmtx_Library +LIBS += -L../../lib -ldmtx HEADERS = openreports.h \ barcodes.h \ --- a/OpenRPT/writer/writer.pro +++ b/OpenRPT/writer/writer.pro @@ -32,7 +32,7 @@ OBJECTS_DIR = tmp INCLUDEPATH += ../../common ../common ../images -LIBS += -L../../lib -lwrtembed -lcommon -lrenderer -lDmtx_Library +LIBS += -L../../lib -lwrtembed -lcommon -lrenderer -ldmtx win32-msvc* { PRE_TARGETDEPS += ../../lib/wrtembed.lib \ --- a/OpenRPT/wrtembed/wrtembed.pro +++ b/OpenRPT/wrtembed/wrtembed.pro @@ -32,7 +32,7 @@ QT += xml sql #VERSION = 0.1.0 -LIBS += -L../../lib -lDmtx_Library +LIBS += -L../../lib -ldmtx #The following line was changed from FORMS to FORMS3 by qt3to4 FORMS += labeleditor.ui \ --- a/openrpt.pro +++ b/openrpt.pro @@ -24,7 +24,6 @@ MetaSQL \ MetaSQL/metasql_gui \ MetaSQL/importmql_gui \ - OpenRPT/Dmtx_Library \ OpenRPT/renderer \ OpenRPT/wrtembed \ OpenRPT/writer \ debian/patches/03-qbound-arm.patch0000644000000000000000000000530712220035200014112 0ustar From: Andrew Shadura Subject: Use proper types when calling qBound. qBound is a template function defined as: const T &qBound (const T &min, const T &value, const T &max ) On ARM, for some reason the type of min and max in this expression resolves to double, and compiler fails to find a function matching qBound(double, qreal, double). For that reason we typecast constants to qreal explicitly. --- a/OpenRPT/renderer/satopaintengine.cpp +++ b/OpenRPT/renderer/satopaintengine.cpp @@ -221,7 +221,7 @@ else if(format.contains("datamatrix")) { DmtxInfos dmtxInfos = extractInfosDtmx(format); - int eltSize = qRound (qBound(2.0, (qreal)height / (qreal)dmtxInfos.ySize, 20.0)); + int eltSize = qRound (qBound((qreal)2.0, (qreal)height / (qreal)dmtxInfos.ySize, (qreal)20.0)); barcodeFont = QString("BX0620%1%2%3%4") .arg(eltSize,2,10,QLatin1Char('0')) .arg(eltSize,2,10,QLatin1Char('0')) --- a/OpenRPT/renderer/zebrapaintengine.cpp +++ b/OpenRPT/renderer/zebrapaintengine.cpp @@ -148,7 +148,7 @@ else if(format.contains("datamatrix")) { DmtxInfos dmtxInfos = extractInfosDtmx(format); - int eltSize = qRound (qBound(2.0, (qreal)height / (qreal)dmtxInfos.ySize, 20.0)); + int eltSize = qRound (qBound((qreal)2.0, (qreal)height / (qreal)dmtxInfos.ySize, (qreal)20.0)); barcodeFont = QString("BX,%1,200,%2,%3").arg(eltSize).arg(dmtxInfos.xSize).arg(dmtxInfos.ySize); } else { --- a/OpenRPT/wrtembed/graphicsitems.cpp +++ b/OpenRPT/wrtembed/graphicsitems.cpp @@ -3245,7 +3245,7 @@ // Populate Table query properties { // Margins - qreal l, r, t, b; + double l, r, t, b; cellMargins(l, r, t, b); le->m_cellLeftMarginDoubleSpinBox->setValue(l); le->m_cellRightMarginDoubleSpinBox->setValue(r); --- a/OpenRPT/wrtembed/graphicssection.cpp +++ b/OpenRPT/wrtembed/graphicssection.cpp @@ -51,7 +51,7 @@ } } - setPos(pos().x(), qMax(mapToParent(mapFromScene(scenePos)).y(), 0.0)); + setPos(pos().x(), qMax(mapToParent(mapFromScene(scenePos)).y(), (qreal)0.0)); } void ORSectionHandle::mousePressEvent(QGraphicsSceneMouseEvent * /*event*/) @@ -67,8 +67,8 @@ // When the mouse is released we want to resize our parent to have // a new height according to the position we ended up at ORGraphicsSectionItem * sec = static_cast(parentItem()); - bool changed = (sec->rect().height() != qMax(pos().y(), 0.0)); - sec->setRect(0, 0, sec->rect().width(), qMax(pos().y(), 0.0)); + bool changed = (sec->rect().height() != qMax(pos().y(), (qreal)0.0)); + sec->setRect(0, 0, sec->rect().width(), qMax(pos().y(), (qreal)0.0)); DocumentScene * ds = static_cast(sec->scene()); if(ds) { debian/patches/04-dynamic-library.patch0000644000000000000000000000600112220003254015130 0ustar Link dynamically. --- a/common/common.pro +++ b/common/common.pro @@ -21,7 +21,7 @@ include( ../global.pri ) TEMPLATE = lib -CONFIG += qt warn_on staticlib +CONFIG += qt warn_on dll QT += xml sql DEFINES += MAKELIB --- a/OpenRPT/renderapp/renderapp.pro +++ b/OpenRPT/renderapp/renderapp.pro @@ -37,8 +37,8 @@ PRE_TARGETDEPS += ../../lib/common.lib \ ../../lib/renderer.lib } else { - PRE_TARGETDEPS += ../../lib/libcommon.a \ - ../../lib/librenderer.a + PRE_TARGETDEPS += ../../lib/libcommon.so \ + ../../lib/librenderer.so } DESTDIR = ../../bin --- a/OpenRPT/writer/writer.pro +++ b/OpenRPT/writer/writer.pro @@ -39,9 +39,9 @@ ../../lib/common.lib \ ../../lib/renderer.lib } else { - PRE_TARGETDEPS += ../../lib/libwrtembed.a \ - ../../lib/libcommon.a \ - ../../lib/librenderer.a + PRE_TARGETDEPS += ../../lib/libwrtembed.so \ + ../../lib/libcommon.so \ + ../../lib/librenderer.so } RC_FILE = writer.rc --- a/OpenRPT/renderer/renderer.pro +++ b/OpenRPT/renderer/renderer.pro @@ -21,7 +21,7 @@ include( ../../global.pri ) TEMPLATE = lib -CONFIG += qt warn_on staticlib +CONFIG += qt warn_on dll DEFINES += MAKELIB DESTDIR = ../../lib --- a/OpenRPT/wrtembed/wrtembed.pro +++ b/OpenRPT/wrtembed/wrtembed.pro @@ -21,7 +21,7 @@ include( ../../global.pri ) TEMPLATE = lib -CONFIG += qt warn_on staticlib +CONFIG += qt warn_on dll INCLUDEPATH = ../../common ../common ../../../openrpt-build-desktop/common ../renderer ../images . --- a/OpenRPT/import/import.pro +++ b/OpenRPT/import/import.pro @@ -39,7 +39,7 @@ win32-msvc* { PRE_TARGETDEPS += ../../lib/common.lib } else { - PRE_TARGETDEPS += ../../lib/libcommon.a + PRE_TARGETDEPS += ../../lib/libcommon.so } QT += xml sql --- a/OpenRPT/import_gui/import_gui.pro +++ b/OpenRPT/import_gui/import_gui.pro @@ -35,7 +35,7 @@ win32-msvc* { PRE_TARGETDEPS += ../../lib/common.lib } else { - PRE_TARGETDEPS += ../../lib/libcommon.a + PRE_TARGETDEPS += ../../lib/libcommon.so } DESTDIR = ../../bin --- a/OpenRPT/export/export.pro +++ b/OpenRPT/export/export.pro @@ -41,7 +41,7 @@ win32-msvc* { PRE_TARGETDEPS += ../../lib/common.lib } else { - PRE_TARGETDEPS += ../../lib/libcommon.a + PRE_TARGETDEPS += ../../lib/libcommon.so } QT += xml sql --- a/MetaSQL/metasql_gui/metasql_gui.pro +++ b/MetaSQL/metasql_gui/metasql_gui.pro @@ -45,6 +45,6 @@ PRE_TARGETDEPS += ../../lib/MetaSQL.lib \ ../../lib/common.lib } else { - PRE_TARGETDEPS += ../../lib/libMetaSQL.a \ - ../../lib/libcommon.a + PRE_TARGETDEPS += ../../lib/libMetaSQL.so \ + ../../lib/libcommon.so } --- a/MetaSQL/MetaSQL.pro +++ b/MetaSQL/MetaSQL.pro @@ -21,7 +21,7 @@ include( ../global.pri ) TEMPLATE = lib -CONFIG += qt warn_on staticlib +CONFIG += qt warn_on dll QT += sql xml DEFINES += MAKELIB debian/patches/02-01-a39adeacf901.patch0000644000000000000000000000170112216540201014235 0ustar From: idiallo Git-Commit-Id: a39adeacf901 Date: 2013-04-19 20:18 +0000 Subject: Incident #16462: problem with the calculation of page jumps for Text (multi-lines) items. git-svn-id: http://svn.code.sf.net/p/postbooks/code/openrpt/trunk@14579 ea1a15ef-c238-0410-93cb-fa28e9f07733 diff --git a/OpenRPT/renderer/orprerender.cpp b/OpenRPT/renderer/orprerender.cpp --- a/OpenRPT/renderer/orprerender.cpp +++ b/OpenRPT/renderer/orprerender.cpp @@ -1123,7 +1123,7 @@ qreal ORPreRenderPrivate::renderSection( int intRectWidth = (int)(trf.width() * prnt.logicalDpiX()) - CLIPMARGIN; int l = (_detailQuery ? _detailQuery->at() : 0); int qs = (_detailQuery ? _detailQuery->size() : 1); - int sizeLimit = _maxHeight - _bottomMargin; + qreal sizeLimit = _maxHeight - _bottomMargin; if(!_subtotContextPageFooter) sizeLimit = _maxHeight - _bottomMargin - finishCurPageSize((l+1 == qs)); debian/patches/02-02-4a02ded503ab.patch0000644000000000000000000000136612216540201014151 0ustar From: idiallo Git-Commit-Id: 4a02ded503ab Date: 2013-04-26 12:14 +0000 Subject: Fix for issue #19706 (revision 14488) : bad drag behaviour when "snap to grid" is disabled. git-svn-id: http://svn.code.sf.net/p/postbooks/code/openrpt/trunk@14589 ea1a15ef-c238-0410-93cb-fa28e9f07733 diff --git a/OpenRPT/wrtembed/graphicsitems.cpp b/OpenRPT/wrtembed/graphicsitems.cpp --- a/OpenRPT/wrtembed/graphicsitems.cpp +++ b/OpenRPT/wrtembed/graphicsitems.cpp @@ -186,7 +186,7 @@ void ORResizeHandle::mouseMoveEvent(QGra if(ds) { rgo = ds->gridOptions(); - if(rgo) { + if(rgo && rgo->isSnap()) { scenePos = rgo->snapPoint(scenePos); lastScenePos = rgo->snapPoint(lastScenePos); scalX = 100 * rgo->xInterval(); debian/README.Debian0000644000000000000000000000044012216525765011240 0ustar OpenRPT for Debian ------------------ Original OpenRPT package had a program called `graph' which is supposed to draw graphs and diagrams out of data supplied either directly or as a result or SQL query. Because of this ambiguous name, it is installed under /usr/bin as `openrpt-graph'. debian/copyright0000644000000000000000000000500112216525765011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: OpenRPT Upstream-Contact: OpenMFG, LLC and others Source: https://www.xtuple.com/openrpt/ License: LGPL-2.1 Copyright: (C) 2001—2011 by OpenMFG, LLC (C) 2007 David Johnson (C) 2010 by Manuel Soriano (C) 2011 by Paladin Logic, Ltd Files: MetaSQL/regex/* Copyright: 1992, 1993, 1994, 1997 Henry Spencer License: This software is not subject to any license of the American Telephone and Telegraph Company or of the Regents of the University of California. . Permission is granted to anyone to use this software for any purpose on any computer system, and to alter it and redistribute it, subject to the following restrictions: . 1. The author is not responsible for the consequences of use of this software, no matter how awful, even if they arise from flaws in it. . 2. The origin of this software must not be misrepresented, either by explicit claim or by omission. Since few users ever read sources, credits must appear in the documentation. . 3. Altered versions must be plainly marked as such, and must not be misrepresented as being the original software. Since few users ever read sources, credits must appear in the documentation. . 4. This notice may not be removed or altered. ===================================================================== . This version has been modified from it's original to reduce the number of totatl files. Files: debian/* Copyright: 2012—2013, Andrew Shadura 2013, Daniel Pocock http://danielpocock.com License: LGPL-2.1 License: LGPL-2.1 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian GNU/Linux systems, the complete text of the GNU Lesser General Public License can be found in /usr/share/common-licenses/LGPL-2.1 debian/libopenrpt1.lintian-overrides0000644000000000000000000000013712217025160015002 0ustar # multiple libraries, only used together libopenrpt1 binary: package-name-doesnt-match-sonames debian/get-orig-source.sh0000755000000000000000000000154412216540201012535 0ustar #!/bin/sh -e TARBALLDIR=${1:-.} SUFFIX=$2 set -- $(head -n1 debian/changelog | tr -d '()') PACKAGE=$1 VERSION=$2 SRC_VERSION=${2%%-*} SRC_VERSION=${SRC_VERSION%%+*} for d in ../${PACKAGE}_${SRC_VERSION}.orig.tar.* do if [ -r "$d" ] then TARBALL="${d##*/}" break fi done WDIR=debian/orig-source rm -rf ${WDIR} mkdir ${WDIR} tar -axf ../${TARBALL} --strip-components=1 -C ${WDIR} ( cd debian/orig-source find -type f -a \( -name '*.o' -o -name '*.a' -o -name .DS_Store -o -name '*.qm' -o -name Makefile -o -path './bin/*' -o -path './*/tmp/*' \) -exec rm -f {} \; ) TARBALL=${TARBALLDIR}/${PACKAGE}_${SRC_VERSION}${SUFFIX}.orig.tar.bz2 GZIP='--best --no-name' tar --owner=root --group=root --mode=a+rX -cjf ${TARBALL} -C debian orig-source --xform "s,^orig-source,${PACKAGE}-${SRC_VERSION}${SUFFIX},g" rm -rf debian/orig-source debian/libopenrpt1.install0000644000000000000000000000002412217025160013005 0ustar usr/lib/*/lib*.so.* debian/openrpt.install0000644000000000000000000000001712216525765012256 0ustar bin/* /usr/bin debian/README.source0000644000000000000000000000107012216525765011356 0ustar The following was used to repack the tarball from upstream: find . -name '.DS_Store' -exec rm {} \; find . -name '*.o' -exec rm {} \; find . -name '*.a' -exec rm {} \; find . -exec file {} \; | grep executable | cut -f1 -d: | xargs rm The following was used to detect non-text artifacts: find . -type f -exec file {} \; | \ egrep -v 'ASCII|XML|Unicode|PNG|empty|8859' The binary files with .qm extension are translations of the strings for other languages. This is a valid file format used by Qt and they can be managed with some Qt tool debian/libopenrpt-dev.dirs0000644000000000000000000000006712217025160013002 0ustar /usr/include/openrpt /usr/share/openrpt/OpenRPT/images debian/compat0000644000000000000000000000000212216525765010377 0ustar 9 debian/control0000644000000000000000000000342412217044057010576 0ustar Source: openrpt Section: misc Priority: optional Maintainer: Debian xTuple Maintainers Uploaders: Andrew Shadura , Daniel Pocock Build-Depends: debhelper (>= 9), libqt4-dev (>= 4.1.0), libdmtx-dev, dpkg-dev (>= 1.16.1~) Standards-Version: 3.9.4 Homepage: http://www.xtuple.com/openrpt/ Vcs-Git: git://git.debian.org/collab-maint/openrpt.git Vcs-Browser: http://git.debian.org/?p=collab-maint/openrpt.git;a=summary Package: libopenrpt1 Section: libs Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: graphical SQL report writer, designer and rendering library Graphical SQL report writer, designer and rendering engine, optimized for PostgreSQL. WYSIWYG display, GUI built with Qt. Reports can be saved as XML, either as files or in a database. . This package contains the shared libraries. Package: openrpt Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, libqt4-sql-psql Description: graphical SQL report writer, designer and rendering engine Graphical SQL report writer, designer and rendering engine, optimized for PostgreSQL. WYSIWYG display, GUI built with Qt. Reports can be saved as XML, either as files or in a database. Package: libopenrpt-dev Section: libdevel Architecture: any Depends: libqt4-dev (>= 4.1.0), libdmtx-dev, ${misc:Depends}, libopenrpt1 (= ${binary:Version}) Description: graphical SQL report writer, designer and rendering engine (development) Graphical SQL report writer, designer and rendering engine, optimized for PostgreSQL. WYSIWYG display, GUI built with Qt. Reports can be saved as XML, either as files or in a database. . This package contains the static development library and its headers. debian/changelog0000644000000000000000000000317712220044120011033 0ustar openrpt (3.3.4-6) unstable; urgency=low * Now really fix FTBFS on ARM. -- Andrew Shadura Mon, 23 Sep 2013 15:55:19 +0200 openrpt (3.3.4-5) unstable; urgency=low * Fix FTBFS on ARM. * Convert to dynamic linking by using a patch. -- Andrew Shadura Mon, 23 Sep 2013 11:20:53 +0200 openrpt (3.3.4-4) unstable; urgency=low [ Daniel Pocock ] * Build a shared library package. [ Andrew Shadura ] * Fix cleanup. * Depend on dpkg-dev (>= 1.16.1~). * Fix permissions. -- Andrew Shadura Fri, 20 Sep 2013 15:08:00 +0200 openrpt (3.3.4-3) unstable; urgency=low [ Daniel Pocock ] * Package more files needed during the PostBooks 4.0 build. * Enable parallel build. [ Andrew Shadura ] * Don't call qmake explicitly, use dh's built-in qmake support instead. -- Andrew Shadura Fri, 20 Sep 2013 11:29:44 +0200 openrpt (3.3.4-2) experimental; urgency=low [ Daniel Pocock ] * Install generated header files too. -- Andrew Shadura Thu, 19 Sep 2013 11:50:13 +0200 openrpt (3.3.4-1) experimental; urgency=low * New upstream release. * Add patches from upstream fixing crashes and minor bugs. -- Andrew Shadura Thu, 19 Sep 2013 11:18:41 +0200 openrpt (3.3.3+dfsg-2) experimental; urgency=low * Update debian/copyright. * Update Vcs-* fields. -- Andrew Shadura Wed, 18 Sep 2013 21:28:27 +0200 openrpt (3.3.3+dfsg-1) experimental; urgency=low * Initial release. (Closes: #338784) -- Andrew Shadura Mon, 09 Sep 2013 13:44:35 +0200 debian/source/0000755000000000000000000000000012216525765010501 5ustar debian/source/format0000644000000000000000000000001412216525765011707 0ustar 3.0 (quilt)