debian/0000755000000000000000000000000012262302026007161 5ustar debian/patches/0000755000000000000000000000000012262301705010613 5ustar debian/patches/series0000644000000000000000000000006512014177327012037 0ustar 10-Makefile.patch 20-fhs.patch 30-desktopfiles.patch debian/patches/10-Makefile.patch0000644000000000000000000000405412262301705013572 0ustar --- /dev/null +++ b/Makefile @@ -0,0 +1,50 @@ +DESTDIR = + +FPC_VERSION = $(shell update-alternatives --list lazarus | tail -1 | awk -F / '{print $$5}') +ARCH = $(shell ls /usr/lib/lazarus/$(FPC_VERSION)/lcl/units/*/forms.ppu | awk -F/ '{print $$8}') + + +UNITLIBS = -Fu/usr/lib/lazarus/$(FPC_VERSION)/lcl/units/$(ARCH)/ +UNITLIBS += -Fu/usr/lib/lazarus/$(FPC_VERSION)/lcl/units/$(ARCH)/gtk2/ +UNITLIBS += -Fu/usr/lib/lazarus/$(FPC_VERSION)/components/lazutils/lib/$(ARCH)/ +UNITLIBS += -Fu/usr/lib/lazarus/$(FPC_VERSION)/components/synedit/units/$(ARCH)/nogui/ +UNITLIBS += -Fu/usr/lib/lazarus/$(FPC_VERSION)/packager/units/$(ARCH)/ +UNITLIBS += -Fu/usr/lib/lazarus/$(FPC_VERSION)/components/printers/lib/$(ARCH)/gtk2/ +UNITLIBS += -Fu/usr/lib/lazarus/$(FPC_VERSION)/components/synedit/units/$(ARCH)/ +UNITLIBS += -Fu. +TARGET = -TLINUX +MODE = -MObjFPC +SWITCHES = -Scgi #C-style operators, label and goto, C++ style INLINE. +OPTIM = -O1 +DEBUG = -gl +VERBOSE = -vewnhi +LOGO = -l +INCPATH = -Fi/ +DEFINES = -dLCL -dLCLgtk2 + +all: dozzaqueux + +dozzaqueux: dozzzaqueux.lpr + fpc -B $(MODE) $(SWITCHES) $(OPTIM) $(DEBUG) $(VERBOSE) $(LOGO) $(INCPATH) $(UNITLIBS) $(DEFINES) $(TARGET) -o$@ $< +clean: + rm -f *~ *.o *.ppu *.res *.manifest *.rc *.rst *.or *.lpi + rm -f dozzaqueux + +install: all + install -d $(DESTDIR)/usr/bin + install -m 755 dozzaqueux $(DESTDIR)/usr/bin + install -d $(DESTDIR)/usr/share/dozzaqueux + for f in atomes.ato base.equ indic_ph.xml about.txt historique.html; do \ + install -m 644 $$f $(DESTDIR)/usr/share/dozzaqueux; \ + done + cp -a Exemples $(DESTDIR)/usr/share/dozzaqueux + cp -a Aide $(DESTDIR)/usr/share/dozzaqueux + cp -a languages $(DESTDIR)/usr/share/dozzaqueux + find $(DESTDIR)/usr/share/dozzaqueux -type f -exec chmod 644 {} \; + # desktop files + install -d $(DESTDIR)/usr/share/applications + install -m 644 dozzaqueux.desktop $(DESTDIR)/usr/share/applications + install -d $(DESTDIR)/usr/share/icons + rsvg-convert dozzzaqueux.svg -w 64 -o $(DESTDIR)/usr/share/icons/dozzzaqueux.png + +.PHONY: all clean install debian/patches/30-desktopfiles.patch0000644000000000000000000001447212014200351014546 0ustar added files for the desktop integration --- /dev/null +++ b/dozzaqueux.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=1.0 +Type=Application +Exec=/usr/bin/dozzaqueux +Icon=dozzzaqueux +Terminal=false +Name=Dozzaqueux +GenericName=Simulator for chemical mixtures +GenericName[fr_FR]=Simulateur de dosage en solution aqueuse +Comment=Simulator for chemical mixtures +Comment[fr_FR]=Simulateur de dosage en solution aqueuse +Categories=GNOME;Application;Video;Education;Science; \ Pas de fin de ligne à la fin du fichier --- /dev/null +++ b/dozzzaqueux.svg @@ -0,0 +1,190 @@ + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + debian/patches/20-fhs.patch0000644000000000000000000001265112262277352012652 0ustar Description: Upstream changes introduced in version 3.20-1 This patch has been created by dpkg-source during the package build. Here's the last changelog entry, hopefully it gives details on why those changes were made: . dozzaqueux (3.20-1) unstable; urgency=low . * Initial release (Closes: #nnnn) * Upgraded to the newest version, wich fixes a copyright issue, and makes it fit for publication. . The person named in the Author field signed this changelog entry. Author: Georges Khaznadar --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- a/unit15.pas +++ b/unit15.pas @@ -37,7 +37,7 @@ encreation:=true; Caption := rsAProposDeDoz; memo1.Lines.Clear; - memo1.Lines.LoadFromFile(utf8tosys(repertoire_executable+'about.txt')); + memo1.Lines.LoadFromFile(utf8tosys('/usr/share/dozzaqueux/about.txt')); end; --- a/unit17.pas +++ b/unit17.pas @@ -40,7 +40,7 @@ f:textfile; nom_ini_file:string; label 1888; begin - + nom_ini_file:='~/.dozzzaqueux.ini'; encreation:=true; --- a/unit2.pas +++ b/unit2.pas @@ -1611,11 +1611,11 @@ {} while not(eof(f)) do begin @@ -1649,7 +1649,7 @@ {} --- a/unit1.pas +++ b/unit1.pas @@ -6395,7 +6395,7 @@ try li_ph:=tstringlist.Create; - li_ph.LoadFromFile(utf8tosys(extractfilepath(application.ExeName)+'indic_ph.xml')); + li_ph.LoadFromFile(utf8tosys('/usr/share/dozzaqueux/indic_ph.xml')); decimalseparator:='.'; nbe_indic_ph:=strtoint(li_ph[1]); setlength(liste_indic_ph,nbe_indic_ph); @@ -6891,7 +6891,7 @@ v.FindDefaultBrowser(BrowserPath,BrowserParams); //debugln(['Path=',BrowserPath,' Params=',BrowserParams]); - url:='file:///'+repertoire_executable+'Aide/dozzzaqueux.html'; + url:='file:///usr/share/dozzaqueux/Aide/dozzzaqueux.html'; p:=System.Pos('%s', BrowserParams); System.Delete(BrowserParams,p,2); System.Insert(URL,BrowserParams,p); @@ -11808,8 +11808,8 @@ procedure TForm1.LicenseGPL1Click(Sender: TObject); begin formgpl:=tformgpl.create(self); -formgpl.memo1.lines.loadfromfile(utf8tosys(extractfilepath(application.ExeName)+'gpl.txt')); -//application.messagebox(pchar( extractfilepath(application.ExeName)+'gpl.txt'),'',mb_ok); +formgpl.memo1.lines.loadfromfile(utf8tosys('/usr/share/common-licenses/GPL-2')); +//application.messagebox(pchar('/usr/share/common-licenses/GPL-2'),'',mb_ok); with formgpl do begin if screen.width>width then left:=(screen.width-width) div 2 else left:=0; @@ -11874,7 +11874,7 @@ v.FindDefaultBrowser(BrowserPath,BrowserParams); //debugln(['Path=',BrowserPath,' Params=',BrowserParams]); - url:='file:///'+repertoire_executable+'historique.html'; + url:='file:///usr/share/dozzaqueux/historique.html'; p:=System.Pos('%s', BrowserParams); System.Delete(BrowserParams,p,2); System.Insert(URL,BrowserParams,p); @@ -19275,7 +19275,7 @@ liste_langues:=tstringlist.create; - chemin_po:=AppendPathDelim(repertoire_executable+'languages'); + chemin_po:=AppendPathDelim('/usr/share/dozzaqueux/languages/'); If FindFirstutf8(Chemin_po+'dozzzaqueux.*.po',faAnyFile,Search)=0 Then Begin @@ -19294,7 +19294,7 @@ lang:=''; FallbackLang:=''; - nom_ini_file:=repertoire_config_perso+'dozzzaqueux.ini'; + nom_ini_file:='~/.dozzzaqueux.ini'; if not(fileexistsutf8(nom_ini_file)) then begin GetLanguageIDs(lang,FallbackLang); if ((liste_langues.indexof(uppercase(lang))=-1) and debian/dozzaqueux.install0000644000000000000000000000032512014204122012761 0ustar usr/bin/dozzaqueux usr/share/dozzaqueux/about.txt usr/share/dozzaqueux/Exemples usr/share/dozzaqueux/Aide usr/share/dozzaqueux/historique.html usr/share/dozzaqueux/languages usr/share/applications usr/share/icons debian/control0000644000000000000000000000175712262300426010600 0ustar Source: dozzaqueux Section: science Priority: extra Maintainer: Georges Khaznadar Build-Depends: debhelper (>= 9), quilt, lazarus (>= 0.9.30), lcl-gtk2, lcl-units, lcl-utils, fp-units-misc, fp-units-gfx, fp-utils, libx11-dev, libgdk-pixbuf2.0-dev, libgtk2.0-dev, libglib2.0-dev, libpango1.0-dev, libatk1.0-dev, libcairo2-dev, librsvg2-bin Standards-Version: 3.9.5 Homepage: http://jeanmarie.biansan.free.fr/dozzzaqueux.html Package: dozzaqueux Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, dozzaqueux-data Description: simulator for chemical mixtures just choose reactants to put in the beaker, those to put in the burette, dozzaqueux plots the concentrations vs. the mixed volume, and many more. Package: dozzaqueux-data Architecture: all Depends: ${misc:Depends} Description: databases for chemical mixtures These databases are used by dozzaqueux, which is an interactive chemical simulator for aqueous solutions. They can be used for other purposes too. debian/compat0000644000000000000000000000000212164101503010355 0ustar 9 debian/dozzaqueux.manpages0000644000000000000000000000002311572767626013140 0ustar debian/dozzaqueux.1debian/dozzaqueux.10000644000000000000000000000426511572767576011525 0ustar '\" t .\" Title: DOZZAQUEUX .\" Author: Georges Khaznadar .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 06/05/2011 .\" Manual: dozzaqueux User Manual .\" Source: dozzaqueux .\" Language: English .\" .TH "DOZZAQUEUX" "1" "06/05/2011" "dozzaqueux" "dozzaqueux User Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" dozzaqueux \- chemical simulator for aqueous mixtures .SH "SYNOPSIS" .HP \w'\fBdozzaqueux\fR\ 'u \fBdozzaqueux\fR .SH "DESCRIPTION" .PP \fBdozzaqueux\fR is a program most useful to simulate aqueous solutions\&. .PP choose reactants to put in the beaker, those to put in the burette, dozzaqueux plots the concentrations vs\&. the mixed volume, and many more\&. .SH "AUTHOR" .PP \fBGeorges Khaznadar\fR <\&georgesk@ofset\&.org\&> .RS 4 Wrote this manpage for the Debian system\&. .RE .SH "COPYRIGHT" .br Copyright \(co 2011 Georges Khaznadar .br .PP This manual page was written for the Debian system (and may be used by others)\&. .PP Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at your option) any later version published by the Free Software Foundation\&. .PP On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common\-licenses/GPL\&. .sp debian/watch0000644000000000000000000000026612262274517010233 0ustar version=3 http://jeanmarie.biansan.free.fr/dozzzaqueux.html telechargement/lazarus/dozzzaqueux/.*/sources_dozzzaqueux_([.0-9]+).tar.gz \ debian /bin/sh debian/get_newest_source.sh debian/copyright0000644000000000000000000000526411610035057011126 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: dozzaqueux Source: http://jeanmarie.biansan.free.fr/telechargement/lazarus/dozzzaqueux/dozzzaqueux_3.20.i386.src.tar.gz Files: * Copyright: 2005-2010 Jean-Marie Biansan License: GPL-2 This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. . 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 . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". Files: exprstrs.inc parsexpr.inc symbexpr.inc teval.inc symbolic.pas Copyright: 2000 by Marco van de Voort 2005-2010 Jean-Marie Biansan License: LGPL-2 This package is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation. . 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 . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/LGPL-2". Files: debian/* Copyright: 2011 Georges Khaznadar License: GPL-2+ 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 . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/source/0000755000000000000000000000000011572466616010504 5ustar debian/source/format0000644000000000000000000000001411572466616011712 0ustar 3.0 (quilt) debian/manpage.xml0000644000000000000000000001046011572767525011342 0ustar .
will be generated. You may view the manual page with: nroff -man .
| less'. A typical entry in a Makefile or Makefile.am is: DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/manpages/docbook.xsl XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0" manpage.1: manpage.xml $(XP) $(DB2MAN) $< The xsltproc binary is found in the xsltproc package. The XSL files are in docbook-xsl. A description of the parameters you can use can be found in the docbook-xsl-doc-* packages. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include xsltproc and docbook-xsl in your Build-Depends control field. Alternatively use the xmlto command/package. That will also automatically pull in xsltproc and docbook-xsl. Notes for using docbook2x: docbook2x-man does not automatically create the AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as ... . To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be found in the docbook-xsl-doc-html package. Validation can be done using: `xmllint -''-noout -''-valid manpage.xml` General documentation about man-pages and man-page-formatting: man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ --> ]> &dhtitle; &dhpackage; &dhfirstname; &dhsurname; Wrote this manpage for the Debian system.
&dhemail;
2011 &dhusername; This manual page was written for the Debian system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at your option) any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
&dhucpackage; &dhsection; &dhpackage; chemical simulator for aqueous mixtures &dhpackage; DESCRIPTION &dhpackage; is a program most useful to simulate aqueous solutions. choose reactants to put in the beaker, those to put in the burette, dozzaqueux plots the concentrations vs. the mixed volume, and many more.
debian/README.source0000644000000000000000000000044711676412416011362 0ustar dozzaqueux for Debian --------------------- The upstream source is wrongly packaged, so it is managed by the script debian/getsource.sh The debian patches are managed by quilt, see /usr/share/doc/quilt/README.source -- Georges Khaznadar , Tue, 27 Dec 2011 19:57:18 +0100 debian/get_newest_source.sh0000644000000000000000000000055212262275404013254 0ustar #!/bin/sh upstreamTgz=$3 version=$2 package=dozzaqueux debian_newdir=${package}-${version} debian_origPackage=${package}_${version}.orig.tar.gz mydir=$(pwd) cd .. mkdir $debian_newdir cd $debian_newdir tar xzf $upstreamTgz rm $upstreamTgz cd .. tar czf $debian_origPackage $debian_newdir echo created ../$debian_origPackage and ../$debian_newdir cd $mydir debian/menu0000644000000000000000000000017611572767215010076 0ustar ?package(dozzaqueux):needs="X11" section="Applications/Science/Chemistry"\ title="dozzaqueux" command="/usr/bin/dozzaqueux" debian/changelog0000644000000000000000000000570112262302016011035 0ustar dozzaqueux (3.33-1) unstable; urgency=medium * created a working watch file and added a script to make the new package * upgraded to the newest upstream version * upgraded Version-Standards to 3.9.5 * removed the redundant gpl.txt.gz file -- Georges Khaznadar Sun, 05 Jan 2014 16:33:24 +0100 dozzaqueux (3.21-6.1) unstable; urgency=low * changed my DEBEMAIL. * added one path for units in Makefile. Closes: #713509 * upgraded Version-Standards to 3.9.4 and compat to 9 -- Georges Khaznadar Sun, 30 Jun 2013 21:11:23 +0200 dozzaqueux (3.21-6) unstable; urgency=low * fixed a problem with d/dozzaqueux.install in the source package -- Georges Khaznadar Sun, 19 Aug 2012 17:44:06 +0200 dozzaqueux (3.21-5) unstable; urgency=low * added a .desktop file and an icon. * added a build-dependency on librsvg2-bin. -- Georges Khaznadar Sun, 19 Aug 2012 17:06:37 +0200 dozzaqueux (3.21-4) unstable; urgency=low * added a dependency on lcl-utils. Closes: #669526 -- Georges Khaznadar Fri, 01 Jun 2012 04:54:35 +0000 dozzaqueux (3.21-3) unstable; urgency=low * ensured an automated detection of the last version of lazarus. Prevents a bug detected with the package optgeo (#666384) -- Georges Khaznadar Sun, 13 May 2012 20:25:00 +0000 dozzaqueux (3.21-2) unstable; urgency=low * merged Cyril Brulebois's patch into 10-Makefile. Thank you Cyril! Closes: #661443 * updated Standards-Version to 3.9.3 -- Georges Khaznadar Mon, 05 Mar 2012 08:33:12 +0000 dozzaqueux (3.21-1.1) unstable; urgency=high * Non-maintainer upload. * Fix FTBFS by disabling the -WG flag as it's no longer needed or supported by fpc (Closes: #661443): - 30-Remove-dashWG-flag.patch * Set urgency to “high” for the RC bug fix. -- Cyril Brulebois Sat, 03 Mar 2012 15:43:03 +0000 dozzaqueux (3.21-1) unstable; urgency=low * modified the file debian/copyright to take in account some files derived from Free Pascal's Run Time Library, which comes under LGPL license. FP's RTL comes under a modified LGPL, which can be considered as a genuine LGPL license if nothing harms. * upgraded to the newest upstream version. Closes: #652263 * added a script to download upstream source files, updated README.source -- Georges Khaznadar Tue, 27 Dec 2011 19:50:38 +0100 dozzaqueux (3.20-1) unstable; urgency=low * Initial release (Closes: #632741) * Upgraded to the newest version, wich fixes a copyright issue, and makes it fit for publication. -- Georges Khaznadar Tue, 05 Jul 2011 16:46:22 +0200 dozzaqueux (3.10-1) unstable; urgency=low * written a Makefile * modified the paths to data files to comply with FHS * written a short manpage -- Georges Khaznadar Sat, 04 Jun 2011 19:38:21 +0200 debian/rules0000755000000000000000000000067211572466616010271 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ debian/getsource.sh0000644000000000000000000000161411676412315011532 0ustar #!/bin/bash # example url to retreive: # http://jeanmarie.biansan.free.fr/telechargement/lazarus/dozzzaqueux/dozzzaqueux_3.21.i386.src.tar.gz version=$(echo $1 | sed -n 's%http://jeanmarie.biansan.free.fr/telechargement/lazarus/dozzzaqueux/dozzzaqueux_\([.0-9]\+\)\.i386\.src\.tar\.gz%\1% p') if [ -z "$version" ]; then echo "Usage: $0 http://jeanmarie.biansan.free.fr/telechargement/lazarus/dozzzaqueux/dozzzaqueux_....i386.src.tar.gz" exit 1 fi pwd=$(pwd) rel=. if [ $(basename $pwd) = debian ]; then rel=../..; cd $rel; fi if [ -d debian ]; then rel=..; cd $rel; fi wget $1 -O tmp.tgz mkdir dozzaqueux-$version.orig tar xzvf tmp.tgz -C dozzaqueux-$version.orig rm tmp.tgz tar czvf dozzaqueux_$version.orig.tar.gz dozzaqueux-$version.orig mv dozzaqueux-$version.orig dozzaqueux-$version echo "created successfully $rel/dozzaqueux_$version.orig.tar.gz and $rel/dozzaqueux-$version/" cd $pwd debian/dozzaqueux-data.install0000644000000000000000000000014011572773602013711 0ustar usr/share/dozzaqueux/atomes.ato usr/share/dozzaqueux/indic_ph.xml usr/share/dozzaqueux/base.equ