debian/0000755000000000000000000000000011630335217007167 5ustar debian/compat0000644000000000000000000000000211627447002010367 0ustar 8 debian/patches/0000755000000000000000000000000011627451732010625 5ustar debian/patches/01-fix_paths.patch0000644000000000000000000000171711627452207014055 0ustar From: David Paleino Subject: fix paths to use system-wide ones Forwarded: not-needed --- src/dlg_help.cxx | 2 +- src/trovacap.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- trovacap.orig/src/dlg_help.cxx +++ trovacap/src/dlg_help.cxx @@ -39,7 +39,7 @@ WinHelp::WinHelp() hlp_html = new Fl_Help_View(0, 0, winW, winH - 35); hlp_html->textfont(4); hlp_html->textsize(16); - hlp_html->load("./docs/trovacap.html"); + hlp_html->load("/usr/share/doc/trovacap/trovacap.html"); btn_annulla = new Fl_Button((winW - 100)/2, winH -30, 100, 25, "&Chiudi"); btn_annulla->callback((Fl_Callback*)cb_btn_annulla, (void*)(this)); --- trovacap.orig/src/trovacap.cxx +++ trovacap/src/trovacap.cxx @@ -118,7 +118,7 @@ TCWin::TCWin() #endif int rc; - rc = sqlite3_open("./trovacap.db", &db); + rc = sqlite3_open("/usr/share/trovacap/trovacap.db", &db); if (rc) { fl_message("Database Error: %s", sqlite3_errmsg(db)); debian/patches/series0000644000000000000000000000004611627451635012044 0ustar 00-fix_build.patch 01-fix_paths.patch debian/patches/00-fix_build.patch0000644000000000000000000000102311627452165014025 0ustar From: David Paleino Subject: fix DB initialization during build Forwarded: no --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- trovacap.orig/Makefile +++ trovacap/Makefile @@ -38,8 +38,8 @@ src/dlg_help.o: src/dlg_help.cxx $(CPP) -c src/dlg_help.cxx -o src/dlg_help.o $(CXXFLAGS) $(CXXINCS) $(DB): $(DBSQL) - sqlite3 -init $(DBSQL) $(DB) .quit -# sqlite3 $(DB) < $(DBSQL) +# sqlite3 -init $(DBSQL) $(DB) .quit + sqlite3 $(DB) < $(DBSQL) clean: ${RM} $(OBJ) $(BIN) $(DB) debian/rules0000755000000000000000000000016111627447372010261 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ debian/control0000644000000000000000000000173711627457725010621 0ustar Source: trovacap Section: utils Priority: extra Maintainer: David Paleino Build-Depends: debhelper (>= 8.0.0) , libfltk1.3-dev , libxpm-dev , libxext-dev , libsqlite3-dev , sqlite3 Standards-Version: 3.9.3 Homepage: http://www.digitazero.org/?p=41 Vcs-Git: git://git.debian.org/collab-maint/trovacap.git Vcs-Browser: http://git.debian.org/?p=collab-maint/trovacap.git;a=summary Package: trovacap Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} , trovacap-data (= ${source:Version}) Description: tool to find Italian ZIP codes TrovaCAP is a tool to find Italian ZIP codes (CAP - Codice Avviamento Postale) from a given address. Package: trovacap-data Architecture: all Depends: ${misc:Depends} Description: tool to find Italian ZIP codes - ZIP codes database TrovaCAP is a tool to find Italian ZIP codes (CAP - Codice Avviamento Postale) from a given address. . This package contains the ZIP codes database, in SQLite format and as a SQL dump. debian/trovacap-data.docs0000644000000000000000000000002111627456746012601 0ustar src/trovacap.sql debian/trovacap.docs0000644000000000000000000000002311627456702011664 0ustar docs/trovacap.html debian/changelog0000644000000000000000000000022711630335217011042 0ustar trovacap (0.2.2-1) unstable; urgency=low * Initial release (Closes: #639913) -- David Paleino Sat, 03 Sep 2011 07:26:37 +0200 debian/trovacap.install0000644000000000000000000000015511627456675012421 0ustar trovacap /usr/bin/ include/trovacap.xpm /usr/share/pixmaps/ debian/trovacap.desktop /usr/share/applications/ debian/trovacap-data.install0000644000000000000000000000004111627456772013320 0ustar trovacap.db /usr/share/trovacap/ debian/trovacap.10000644000000000000000000000101611627452652011077 0ustar .TH TROVACAP 1 "August 31, 2011" .SH NAME trovacap \- tool to find Italian ZIP codes (CAP - Codice Avviamento Postale) .SH SYNOPSIS .B trovacap .SH DESCRIPTION This manual page documents briefly the \fBtrovacap\fR command. .PP \fBtrovacap\fP is a program to find Italian ZIP codes, given an address (city, locality, street, ...) .SH AUTHOR trovacap was written by Danilo Cicerone .. .PP This manual page was written by David Paleino , for the Debian project (and may be used by others). debian/trovacap.menu0000644000000000000000000000024611627453406011705 0ustar ?package(trovacap): \ needs="X11" \ section="Applications/Office" \ title="TrovaCAP" \ command="/usr/bin/trovacap" \ icon="/usr/share/pixmaps/trovacap.xpm" debian/copyright0000644000000000000000000000400311630335074011120 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: trovacap Source: http://www.digitazero.org/?p=41 Files: * Copyright: © 2006, Danilo Cicerone License: GPL-2.0+ Files: debian/* Copyright: © 2011, David Paleino License: GPL-2.0+ Files: src/Fl_Table.cxx Copyright: © 2002, Greg Ercolano © 2004, O'ksi'D License: LGPL-2.0+ Files: src/Fl_Table_Row.cxx Copyright: © 2002, Greg Ercolano License: LGPL-2.0+ License: GPL-2.0+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package 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 General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see X-Comment: on Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". License: LGPL-2.0+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 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 General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see X-Comment: on Debian systems, the complete text of the GNU Library General Public License version 2 can be found in "/usr/share/common-licenses/LGPL-2". debian/trovacap.desktop0000644000000000000000000000027311627453703012412 0ustar [Desktop Entry] Version=1.0 Name=TrovaCAP Icon=/usr/share/pixmaps/trovacap.xpm Comment=Computes Italian ZIP codes Categories=Utility;Office; Exec=trovacap Terminal=false Type=Application debian/source/0000755000000000000000000000000011627447002010471 5ustar debian/source/format0000644000000000000000000000001411627447002011677 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000015611627447211010226 0ustar version=3 http://www.digitazero.org/?p=41 \ http://www.digitazero.org/download/trovacap-(\d+.*)_src\.tar\.gz debian/manpages0000644000000000000000000000002211627452663010712 0ustar debian/trovacap.1