debian/0000755000000000000000000000000011732671265007200 5ustar debian/README.source0000644000000000000000000000124311732671265011357 0ustar sqlitebrowser for Debian ------------------------ The tarball has been repackaged in order to: - Remove sqlite's source from it. - Make the packaging saner. In order to achieve this from upstream's tarball, untar it and: - Remove trunk/sqlitebrowser/sqlitebrowser/sqlite_source/ - Compress the tarball using the first sqlitebrowser directory in the path as parent dir, ie: - cd trunk/sqlitebrowser/ - tar -czf sqlitebrowser_1.99.99~beta1.orig.tar.gz sqlitebrowser/ Do not worry about leaving out sqlitedbbrowser.pro, as it's just a qmake directory redirection. -- Lisandro Damián Nicanor Pérez Meyer Wed, 27 Apr 2011 18:53:00 -0300 debian/changelog0000644000000000000000000000643311732671265011060 0ustar sqlitebrowser (2.0.0~beta1+ds.1-3) unstable; urgency=low * Use current alioth urls for Vcs-Browser and Vcs-Git * Apply patch from Pablo Duboue to replace newlines with in the schema browser (Closes: #520345) * Update to debhelper 9 * Update Standards-Version to 3.9.3.0, no changes * Add patch to fix qDebug() use in edittableform::renameTable() -- Arto Jantunen Thu, 22 Mar 2012 20:42:40 +0200 sqlitebrowser (2.0.0~beta1+ds.1-2) unstable; urgency=low * Take over as maintainer * Apply patch from Grzegorz Bizon to avoid segfaults when the user cancels instead of choosing a name for a new db (Closes: #617680) * Add Vcs-Browser and Vcs-Git fields to control * Change Section to database to match override * Add patch to use QString::fromLocal8Bit when reading argv (Closes: #556649) * Update Debian packaging parts of debian/copyright -- Arto Jantunen Thu, 19 May 2011 17:23:07 +0300 sqlitebrowser (2.0.0~beta1+ds.1-1) unstable; urgency=low * QA upload. * New upstream release (Closes: #561643). - Based on Qt4 (Closes: #604586). - Fixes FTBFS of previous version (Closes: #551206). * Set Maintainer to Debian QA Group. * Change B-D to libqt4-dev and sqlite3-dev. * Add a patch to use sqlite3 provided by Debian. * Add a patch to initialize QStrings with an empty string instead of an integer, thus avoiding a FTBFS. * Bumped Standards-Version to 3.9.2. No changes required. * Switch to source format 3.0 (quilt). * Remove "Encoding" field in desktop file. Now it must be UTF-8. * Improve package description (Closes: #505458). -- Lisandro Damián Nicanor Pérez Meyer Wed, 27 Apr 2011 18:53:00 -0300 sqlitebrowser (1.3-2.3) unstable; urgency=low [Jari Aalto] * Non-maintainer upload. * debian/control - (Build-Depends): Add quilt due to patch. * debian/rules: - Add quilt. * debian/patches - (number 10): Add patch to fix Gcc 4.4 error: conflicting types for getline (RC bug FTBFS serious; Closes: #552854). -- Jari Aalto Sat, 16 Jan 2010 18:13:19 +0200 sqlitebrowser (1.3-2.2) unstable; urgency=low * Non-maintainer upload. * build against Debian libsqlite3. Wanting to use one or two internal functions is no excuse for embedding the whole thing. Closes: #441900 -- Thomas Viehmann Tue, 07 Oct 2008 22:17:48 +0200 sqlitebrowser (1.3-2.1) unstable; urgency=medium * Non-maintainer upload. * Applying patch by Thiemo Seufer to fix FTBFS on builds using sudo (Closes: #495100) * Fixing two minor lintian warnings: * adding call to dh_desktop to debian/rules * moving Homepage URL from Package description to proper frield in debian/control -- Alexander Reichle-Schmehl Tue, 07 Oct 2008 22:38:10 +0200 sqlitebrowser (1.3-2) unstable; urgency=low * source.lintian-overrides: added lintian overrides for CVS directories * sqlitebrowser.desktop: fixed category * menu: adhere to new the menu policy -- François Févotte Sat, 01 Sep 2007 14:51:34 +0200 sqlitebrowser (1.3-1) unstable; urgency=low * Initial release (Closes: #427080) -- François Févotte Sat, 04 Aug 2007 23:15:39 +0200 debian/compat0000644000000000000000000000000211732671265010376 0ustar 9 debian/control0000644000000000000000000000270211732671265010604 0ustar Source: sqlitebrowser Section: database Priority: extra Maintainer: Arto Jantunen Build-Depends: debhelper (>= 9), libqt4-dev, libsqlite3-dev Standards-Version: 3.9.3.0 Homepage: http://sqlitebrowser.sourceforge.net/ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/sqlitebrowser.git Vcs-Git: git://anonscm.debian.org/collab-maint/sqlitebrowser.git Package: sqlitebrowser Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: GUI editor for SQLite databases SQLite Database Browser is a visual tool used to create, design and edit database files compatible with SQLite. Its interface is based on QT, and is meant to be used for users and developers that want to create databases, edit and search data using a familiar spreadsheet-like interface, without the need to learn complicated SQL commands. Controls and wizards are available for users to: - Create and compact database files - Create, define, modify and delete tables - Create, define and delete indexes - Browse, edit, add and delete records - Search records - Import and export records as text - Import and export tables from/to CSV files - Import and export databases from/to SQL dump files - Issue SQL queries and inspect the results - Examine a log of all SQL commands issued by the application . SQLite Database Browser is not a visual shell for the sqlite command line tool. It does not require familiarity with SQL commands. debian/copyright0000644000000000000000000000171311732671265011135 0ustar This package was debianized by François Févotte on Sat, 04 Aug 2007 23:15:39 +0200. It was downloaded from http://sourceforge.net/projects/sqlitebrowser/ Upstream Authors: Mauricio Piacentini (original author) Raquel Ravanini (icons) Jens Miltner (contributions to the original code) License: This code is in Public Domain. In the spirit of the original SQLite source files, the authors disclaim copyright to this source code. It may be used as the basis for other programs, public domain, open source or commercial. Do whatever you want with it. The Debian packaging is licensed under the GPL, see `/usr/share/common-licenses/GPL', and has the following copyright: Copyright 2007 François Févotte Copyright 2010 Jari Aalto Copyright 2011 Lisandro Damián Nicanor Pérez Meyer Copyright 2011 Arto Jantunen debian/dirs0000644000000000000000000000001011732671265010053 0ustar usr/bin debian/manpages0000644000000000000000000000002711732671265010715 0ustar debian/sqlitebrowser.1 debian/menu0000644000000000000000000000030611732671265010066 0ustar ?package(sqlitebrowser):needs="X11" section="Applications/Data Management" \ title="SQLite database browser" command="/usr/bin/sqlitebrowser" \ icon="/usr/share/pixmaps/sqlitebrowser.xpm" debian/patches/0000755000000000000000000000000011732671265010627 5ustar debian/patches/edittableform-fix-qdebug-use.patch0000644000000000000000000000200711732671265017313 0ustar From: Arto Jantunen Date: Thu, 22 Mar 2012 20:39:26 +0200 Subject: Add patch to fix qDebug() use in edittableform::renameTable() This gets rid of a format string warning noticed by turning on hardening options. Forwarded: no --- edittableform.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/edittableform.cpp b/edittableform.cpp index 4d064f7..3e236c6 100644 --- a/edittableform.cpp +++ b/edittableform.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include "renametableform.h" #include "addfieldform.h" @@ -86,7 +87,7 @@ void editTableForm::renameTable() QApplication::setOverrideCursor( Qt::waitCursor ); // this might take time modified = true; QString newName = renTableForm->getTableName(); - qDebug(newName); + qDebug() << newName; QString sql; //do the sql rename here //if (!pdb->executeSQL(QString("BEGIN TRANSACTION;"))) goto rollback; debian/patches/ignore-canceled-import.patch0000644000000000000000000000125311732671265016200 0ustar From: Grzegorz Bizon Date: Thu, 10 Mar 2011 15:59:16 +0100 Subject: Ignore canceled import This stops sqlitebrowser from attempting to create a new db file with a null name. Bug-Debian: http://bugs.debian.org/617680 Forwarded: no --- form1.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/form1.cpp b/form1.cpp index a750568..94a7f23 100644 --- a/form1.cpp +++ b/form1.cpp @@ -1114,7 +1114,7 @@ void mainForm::importDatabaseFromSQL() QMessageBox::information( this, applicationName ,err); return; } - if (!fileName.isNull()) + if ((!fileName.isNull()) && (!newDBfile.isNull())) { db.create(newDBfile); } -- debian/patches/initialize-qstring-with-empty-string.patch0000644000000000000000000000223011732671265021104 0ustar Description: initialize QStrings with empty strings. This patch changes initializations of QStrings with integers to empty strings. Author: Lisandro Damián Nicanor Pérez Meyer Forwarded: no --- sqlitebrowser-2.0.0.orig/sqlitedb.h +++ sqlitebrowser-2.0.0/sqlitedb.h @@ -41,7 +41,7 @@ typedef QMap resultMap; class DBBrowserField { public: - DBBrowserField() : name( 0 ) { } + DBBrowserField() : name( "" ) { } DBBrowserField( const QString& wname,const QString& wtype ) : name( wname), type( wtype ) { } @@ -55,7 +55,7 @@ class DBBrowserField class DBBrowserIndex { public: - DBBrowserIndex() : name( 0 ) { } + DBBrowserIndex() : name( "" ) { } DBBrowserIndex( const QString& wname,const QString& wsql ) : name( wname), sql( wsql ) { } @@ -70,7 +70,7 @@ private: class DBBrowserTable { public: - DBBrowserTable() : name( 0 ) { } + DBBrowserTable() : name( "" ) { } DBBrowserTable( const QString& wname,const QString& wsql ) : name( wname), sql( wsql ) { } debian/patches/replace-new-line-in-sqlstring.patch0000644000000000000000000000172611732671265017435 0ustar Description: If the stored SQL statement contains new lines, the table form shows the string centered and unreadable. This patch replaces the new-lines with spaces, fixing that problem. Author: Pablo Duboue Forwarded: no --- a/form1.cpp +++ b/form1.cpp @@ -195,7 +195,7 @@ //tbitem->setOpen( TRUE ); tbitem->setText( 0, it.data().getname() ); tbitem->setText( 1, "table" ); - tbitem->setText( 3, it.data().getsql() ); + tbitem->setText( 3, it.data().getsql().replace('\n', ' ') ); fieldMap::Iterator fit; fieldMap fmap = it.data().fldmap; Q3ListViewItem * lastflditem = 0; @@ -214,7 +214,7 @@ Q3ListViewItem * item = new Q3ListViewItem( dblistView, lasttbitem ); item->setText( 0, it2.data().getname()); item->setText( 1, "index" ); - item->setText( 3, it2.data().getsql() ); + item->setText( 3, it2.data().getsql().replace('\n', ' ') ); lasttbitem = item ; } } debian/patches/series0000644000000000000000000000033411732671265012044 0ustar use-external-sqlite3.patch initialize-qstring-with-empty-string.patch ignore-canceled-import.patch use-qstring-fromlocal8bit-when-reading-argv.patch replace-new-line-in-sqlstring.patch edittableform-fix-qdebug-use.patch debian/patches/use-external-sqlite3.patch0000644000000000000000000000305711732671265015653 0ustar Description: Use sqlite3 provided by the Debian package. This patch has been created in order to not use the embedded copy of sqlite3 but the one provided by the Debian package. Author: Lisandro Damián Nicanor Pérez Meyer Forwarded: no --- a/sqlitebrowser.pro +++ b/sqlitebrowser.pro @@ -1,14 +1,13 @@ QT += qt3support TEMPLATE = app LANGUAGE = C++ -INCLUDEPATH += sqlite_source/ CONFIG += qt \ warn_on +LIBS += -lsqlite3 HEADERS += extendedmainform.h \ sqlitebrowsertypes.h \ sqlitedb.h \ sqlbrowser_util.h \ - sqlite_source/sqlite3.h \ aboutform.h \ addfieldform.h \ addfieldtypeform.h \ @@ -32,7 +31,6 @@ browsermain.cpp \ sqlitedb.cpp \ sqlbrowser_util.c \ - sqlite_source/sqlite3.c \ aboutform.cpp \ addfieldform.cpp \ addfieldtypeform.cpp \ --- a/sqlbrowser_util.h +++ b/sqlbrowser_util.h @@ -6,7 +6,7 @@ #endif #include -#include "sqlite_source/sqlite3.h" +#include #include --- a/sqlitedb.h +++ b/sqlitedb.h @@ -7,7 +7,7 @@ #include #include #include "sqllogform.h" -#include "sqlite3.h" +#include #include "sqlitebrowsertypes.h" #define MAX_DISPLAY_LENGTH 255 --- a/sqlbrowser_util.c +++ b/sqlbrowser_util.c @@ -1,10 +1,9 @@ #include "sqlbrowser_util.h" -#include "sqlite_source/sqlite3.h" +#include #include #include #include -#include "sqlite_source/sqlite3.h" /*following routines extracted from shell.c for dump support*/ debian/patches/use-qstring-fromlocal8bit-when-reading-argv.patch0000644000000000000000000000144311732671265022201 0ustar From: Arto Jantunen Date: Thu, 19 May 2011 15:45:11 +0300 Subject: Use QString::fromLocal8Bit when reading argv This tells QT to convert from the current system locale. Bug-Debian: http://bugs.debian.org/556649 Forwarded: no --- browsermain.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/browsermain.cpp b/browsermain.cpp index 5d0dd88..1be378d 100644 --- a/browsermain.cpp +++ b/browsermain.cpp @@ -80,7 +80,7 @@ int main( int argc, char ** argv ) w.show(); if (argc>1) { //first and only argument we accept is the name of the database to open - w.fileOpen(QString(argv[1])); + w.fileOpen(QString::fromLocal8Bit(argv[1])); } a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) ); return a.exec(); -- debian/rules0000755000000000000000000000017411732671265010262 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --parallel debian/source/0000755000000000000000000000000011732671265010500 5ustar debian/source/format0000644000000000000000000000001411732671265011706 0ustar 3.0 (quilt) debian/sqlitebrowser.10000644000000000000000000000304211732671265012166 0ustar .\" Hey, EMACS: -*- nroff -*- .TH SQLITEBROWSER 1 "August 4, 2007" .SH NAME sqlitebrowser \- light GUI editor for SQLite databases .SH SYNOPSIS .B sqlitebrowser .RI [ file ] .SH DESCRIPTION .B SQLite Database Browser is a visual tool used to create, design and edit database files compatible with SQLite. It is meant to be used for users and developers that want to create databases, edit and search data using a familiar spreadsheet-like interface, without the need to learn complicated SQL commands. .SH SEE ALSO SQLitebrowser's home page: .IR "http://sqlitebrowser.sourceforge.net/". .SH AUTHOR .B sqlitebrowser was developed originally by Mauricio Piacentini from Tabuleiro Producoes. Icons were contributed by Raquel Ravanini, also from Tabuleiro. Jens Miltner contributed the code to support SQLite 3.x databases for the 1.2 release. .br In the spirit of the original SQLite source files, the authors disclaim copyright to this source code. It may be used as the basis for other programs, public domain, open source or commercial. Do whatever you want with it. .PP This manual page was written by Fran\[,c]ois F\['e]votte , for the Debian project (but may be used by others). .br Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any later version published by the Free Software Foundation. .br On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. debian/sqlitebrowser.desktop0000644000000000000000000000041411732671265013477 0ustar [Desktop Entry] Name=SQLite database browser Comment=GUI editor for SQLite databases TryExec=sqlitebrowser Exec=sqlitebrowser Icon=sqlitebrowser.png Terminal=false Type=Application Categories=Development;Database;Qt; StartupNotify=false MimeType=application/x-sqlite; debian/sqlitebrowser.install0000644000000000000000000000021311732671265013471 0ustar sqlitebrowser usr/bin/ debian/sqlitebrowser.xpm usr/share/pixmaps/ debian/sqlitebrowser.desktop usr/share/applications/ debian/sqlitebrowser.xpm0000644000000000000000000000151511732671265012635 0ustar /* XPM */ static char * sqlitebrowser_xpm[] = { "16 16 31 1", " c None", ". c #696969", "+ c #555555", "@ c #404040", "# c #292929", "$ c #151515", "% c #060606", "& c #646464", "* c #313131", "= c #4F4F4F", "- c #808080", "; c #AAAAAA", "> c #CECECE", ", c #E8E8E8", "' c #F9F9F9", ") c #252525", "! c #C2C2C2", "~ c #FFFFFF", "{ c #585858", "] c #515151", "^ c #363636", "/ c #545454", "( c #595959", "_ c #484848", ": c #2E2E2E", "< c #161616", "[ c #BBBBBB", "} c #E4E4E4", "| c #D9D9D9", "1 c #D2D2D2", "2 c #CCCCCC", " ", " ", " .+@#$%%$#@+. ", "&*=-;>,'',>;-=*&", ")!~~~~~~~~~~~~!)", "{*=-;>,'',>;-=*{", "]^/(_:<%%<:_(/^]", ")[}|1>2222>1|}[)", "{*=-;>,'',>;-=*{", "]^/(_:<%%<:_(/^]", ")[}|1>2222>1|}[)", "&*=-;>,'',>;-=*&", " .+@#$%%$#@+. ", " ", " ", " "}; debian/watch0000644000000000000000000000041611732671265010232 0ustar # Compulsory line, this is a version 3 file version=3 # Uncomment to find new files on sourceforge, for devscripts >= 2.9 #http://sf.net/sqlitebrowser/sqlitebrowser-(.*)\.tar\.gz # Current upstream versioning of tarballs is not sane, so I'll leave this commented out.