--- ghemical-2.95.orig/debian/patches/00list +++ ghemical-2.95/debian/patches/00list @@ -0,0 +1 @@ +447628_fix_spin_multiplicity_code --- ghemical-2.95.orig/debian/patches/447628_fix_spin_multiplicity_code.dpatch +++ ghemical-2.95/debian/patches/447628_fix_spin_multiplicity_code.dpatch @@ -0,0 +1,38 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 447628_fix_spin_multiplicity_code.dpatch by Daniel Leidert (dale) +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: If the quantum chemical setup is called the first time (Compute --> +## DP: Setup --> all QM), the Spin Multiplicity is set to 1, which is correct. +## DP: If the setup is called a second time, e.g. after geometry optimization, the +## DP: Spin Multiplicity has changed to three question marks. +## DP: +## DP: +## DP: + +@DPATCH@ +diff -urNad ghemical~/src/gtk_setup_dialog.cpp ghemical/src/gtk_setup_dialog.cpp +--- ghemical~/src/gtk_setup_dialog.cpp 2007-05-23 13:21:19.000000000 +0200 ++++ ghemical/src/gtk_setup_dialog.cpp 2008-02-25 15:25:09.000000000 +0100 +@@ -116,7 +116,10 @@ + gtk_entry_set_text(GTK_ENTRY(entry_totchrg), "+0"); + + GtkWidget * entry_spinmult = glade_xml_get_widget(xml, "entry_allQM_spinmult"); // spin multiplicity +- gtk_entry_set_text(GTK_ENTRY(entry_spinmult), "1"); ++ // todo!!! todo!!! todo!!! todo!!! todo!!! todo!!! todo!!! ++ gtk_entry_set_text(GTK_ENTRY(entry_spinmult), "1"); // not yet implemented! ++ gtk_widget_set_sensitive (entry_spinmult, false); // not yet implemented! ++ // todo!!! todo!!! todo!!! todo!!! todo!!! todo!!! todo!!! + } + + if (su_allmm == NULL) +@@ -155,7 +158,8 @@ + gtk_entry_set_text(GTK_ENTRY(entry_totchrg), str.str().c_str()); + + // todo!!! todo!!! todo!!! todo!!! todo!!! todo!!! todo!!! +- gtk_entry_set_text(GTK_ENTRY(entry_spinmult), "???"); ++ gtk_entry_set_text(GTK_ENTRY(entry_spinmult), "1"); // not yet implemented! ++ gtk_widget_set_sensitive (entry_spinmult, false); // not yet implemented! + // todo!!! todo!!! todo!!! todo!!! todo!!! todo!!! todo!!! + } + else if (su_allmm != NULL) --- ghemical-2.95.orig/debian/control +++ ghemical-2.95/debian/control @@ -0,0 +1,34 @@ +Source: ghemical +Section: gnome +Priority: optional +Maintainer: Debichem Team +Uploaders: LI Daobing , + Michael Banck , + Daniel Leidert (dale) +Build-Depends: debhelper (>= 5), libgtk2.0-dev, libgtkglext1-dev, + glutg3-dev, libsc-dev (>= 2.3.1-2), flex, libblas-dev, liblapack-dev, + libglade2-dev, libopenbabel-dev (>= 2.1.1), dpatch, + libghemical-dev (>= 2.96-2), libmopac7-dev (>= 1.13-2), pkg-config, + liboglappth-dev, gfortran +Standards-Version: 3.7.3 +Homepage: http://bioinformatics.org/ghemical/ghemical/ +Vcs-Browser: http://svn.debian.org/wsvn/debichem/ +Vcs-Svn: svn+ssh://svn.debian.org/svn/debichem/unstable/ghemical/ +DM-Upload-Allowed: yes + +Package: ghemical +Architecture: any +Depends: ${shlibs:Depends}, mpqc +Description: A GNOME molecular modelling environment + Ghemical is a computational chemistry software package written in C++. + It has a graphical user interface and it supports both quantum- + mechanics (semi-empirical) models and molecular mechanics models. + Geometry optimization, molecular dynamics and a large set of + visualization tools using OpenGL are currently available. + . + Ghemical relies on external code to provide the quantum-mechanical + calculations. Semi-empirical methods MNDO, MINDO/3, AM1 and PM3 come + from the MOPAC7 package (Public Domain), and are included in the + package. The MPQC package is used to provide ab initio methods: the + methods based on Hartree-Fock theory are currently supported with + basis sets ranging from STO-3G to 6-31G**. --- ghemical-2.95.orig/debian/dirs +++ ghemical-2.95/debian/dirs @@ -0,0 +1 @@ +usr/share/doc/ghemical --- ghemical-2.95.orig/debian/compat +++ ghemical-2.95/debian/compat @@ -0,0 +1 @@ +5 --- ghemical-2.95.orig/debian/menu +++ ghemical-2.95/debian/menu @@ -0,0 +1,2 @@ +?package(ghemical):needs="X11" section="Applications/Science/Chemistry"\ + title="ghemical" command="/usr/bin/ghemical" --- ghemical-2.95.orig/debian/ghemical.desktop +++ ghemical-2.95/debian/ghemical.desktop @@ -0,0 +1,14 @@ +[Desktop Entry] +Name=ghemical +Name[de]=ghemical +Name[nl]=ghemical +GenericName=Molecular modelling program +GenericName[nl]=Modelleerprogramma voor moleculen +GenericName[de]=Molecular modelling Programm +Comment=Draw models of molecules +Comment[nl]=Teken modellen van moleculen +Exec=ghemical +Icon=ghemical +Terminal=false +Type=Application +Categories=Education;Science;Chemistry;GTK; --- ghemical-2.95.orig/debian/watch +++ ghemical-2.95/debian/watch @@ -0,0 +1,4 @@ +# See uscan(1) for format + +version=3 +http://bioinformatics.org/ghemical/download/current/ghemical-([\d\.]+)\.tar\.gz --- ghemical-2.95.orig/debian/README.Debian +++ ghemical-2.95/debian/README.Debian @@ -0,0 +1,8 @@ +ghemical for Debian +------------------- + +As ghemical uses OpenGL, you probably have to uncomment the line +# Load "glx" +in your /etc/X11/XF86Config-4 + + -- Michael Banck , Sat, 24 Nov 2001 08:53:28 +0100 --- ghemical-2.95.orig/debian/changelog +++ ghemical-2.95/debian/changelog @@ -0,0 +1,332 @@ +ghemical (2.95-3) unstable; urgency=low + + * debian/control (Build-Depends): Fixed build-depends-on-1-revision lintian + warning. s/refblas3-dev/libblas-dev and s/lapack3-dev/liblapack-dev + transition and added gfortran (closes: #463948). Increased mopac7/mpqc and + libghemical dependency. + (Uploaders): Added myself. + (XS-DM-Upload-Allowed): Removed XS- prefix as of dpkg 1.14.16. + * debian/copyright: Fixed (obsolete national) encoding and added the missing + Copyright field. Thanks to lintian. + * debian/dirs: Removed directories we don't need to care about here. + * debian/ghemical.1: Small improvements. Added missing options and + references. + * debian/ghemical.desktop: Updated to comply with fd.o specification. + * debian/rules: Added noopt handling by defining CFLAGS/CXXFLAGS. + (VERSION): Get the version automatically. + (configure-stamp): Dropped in favour of config.status. gfortran + transition (see #463948). Reorder variables to make configure remember + them. Added CFLAGS/CXXFLAGS. + (build): Use DESTDIR instead to "misuse" prefix. + (build, binary-arch): Install the .desktop file via dh_install. + (binary-arch): Removed useless debhelper script calls. Fixed dangling + documentation symlink. + (.PHONY): configure is a real file, not a PHONY target. + * debian/patches/447628_fix_spin_multiplicity_code.dpatch: Added. + - src/gtk_setup_dialog.cpp (gtk_setup_dialog): Set spin multiplicity to a + fixed value of 1 (closes: #447628). + * debian/patches/00list: Adjusted. + + -- Daniel Leidert (dale) Mon, 10 Mar 2008 01:01:40 +0100 + +ghemical (2.95-2) unstable; urgency=low + + * debian/control (Build-Depends): Bumped libghemical-dev to 2.96-1, + libopenbabel-dev to 2.1.1-1 and libmopac7-dev to 1.13-1; + closes: #448170, #448433. + * debian/control (XS-DM-Upload-Allowed): Added. + * debian/control (Standards-Version): Updated to latest version 3.7.3. + + -- Michael Banck Fri, 11 Jan 2008 23:44:36 +0100 + +ghemical (2.95-1) unstable; urgency=low + + * New upstream release. + + [ Daniel Leidert ] + * debian/control: Added Homepage and Vcs-* fields. + (Standards-Version): Updated to latest version 3.7.2. + * debian/menu (section): Menu section transition. + * debian/watch: Added. + + [ LI Daobing ] + * debian/control: + - add me as uploaders + - build depends on debhelper (>= 5) + * debian/rules: lintian doesn't like "-$(MAKE) clean", see bug#325372 + * debian/compat: added. + * debian/ghemical.1: fix a typo, use \[:a]. + * debian/copyright: update FSF address. + * debian/ghemical.desktop: add main category. + + [ Michael Banck ] + * debian/control (Maintainer): Set to Debichem Team. + + -- LI Daobing Tue, 23 Oct 2007 23:47:43 +0800 + +ghemical (2.10-1) unstable; urgency=low + + * New upstream release. + * debian/patches/12_64bit_build_fix.dpatch: Removed, fixed upstream. + * debian/patches/00list: Updated. + * debian/control (Build-Depends): Bump libghemical Build-Depends to + 2.10-1. + * debian/rules (VERSION): Bump to 2.10. + + -- Michael Banck Tue, 12 Sep 2006 12:53:38 +0200 + +ghemical (2.01-2) unstable; urgency=low + + * debian/patches/12_64bit_build_fix.dpatch: Reinstate parts which + have not been applied upstream yet; closes: #341798, #378468. + * debian/patches/00list: Updated. + + -- Michael Banck Sun, 16 Jul 2006 20:10:48 +0200 + +ghemical (2.01-1) unstable; urgency=low + + * New upstream release. + + Fixes gcc-4.1 build error; closes: #367841. + * debian/patches/09_Makefile_prefix.dpatch: Removed, applied upstream. + * debian/patches/12_64bit_build_fix.dpatch: Likewise. + * debian/patches/13_openbabel-2.0.dpatch: Likewise. + * debian/patches/90_config_guess_sub: Likewise. + * debian/patches/91_aclocal_configure: Likewise. + * debian/patches/00list: Updated. + * debian/control (Build-Depends): Bump libghemical-dev to (>= 2.00-1). + * debian/rules (install): Do not install bin/ghemical.png, it is not + in the upstream tarball. + * debian/rules (VERSION): Bumped to 2.01. + * debian/rules (install): Add ${VERSION} to the path of the examples + when moving them over to /usr/share/doc/ghemical/examples. + * debian/rules (configure-stamp): Add --enable-openbabel. + * debian/patches/11_glut_init.dpatch: Removed, makes ghemical crash on + startup. + * debian/patches/00list: Updated. + + -- Michael Banck Fri, 14 Jul 2006 23:49:38 +0200 + +ghemical (1.91-3) unstable; urgency=low + + * Sync with Ubuntu. + + Fixes compilation on 64bit arches; closes: #341798. + * debian/patches/13_openbabel-2.0.dpatch: New file, porting ghemical + to OpenBabel-2.0; closes: #358777. + * debian/patches/91_aclocal_configure.dpatch: Regenerated. + * debian/control (Build-Depends): Change libopenbabel-dev to 2.0.0-1 and + libghemical-dev to 1.91-2. + * debian/control (Standards-Version): Bumped to 3.6.2. + * debian/menu: Quote `needs' and `section' entries. + + -- Michael Banck Sat, 1 Apr 2006 18:52:15 +0200 + +ghemical (1.91-2ubuntu2) dapper; urgency=low + + * debian/patches/12_64bit_build_fix.dpatch: New file. Fixes Malone Bug + #36421. + + -- Jeremie Corbier Fri, 24 Mar 2006 18:17:16 +0100 + +ghemical (1.91-2ubuntu1) dapper; urgency=low + + * debian/ghemical.desktop: added Version, Encoding, Name[nl], + GenericName[nl], Categories=Science;Chemistry;GTK;, replaced + Description with GenericName, Terminal=0 with Terminal=false, + absolute icon path with relative icon path. Closes: malone #5643. + (thanks to Jeroen van Splunder for the patch) + + -- Benjamin Montgomery Tue, 10 Jan 2006 13:54:08 -0600 + +ghemical (1.91-2) unstable; urgency=low + + * debian/patches/11_glut_init.dpatch: New file. Fixes Malone + Bug #5459. + * debian/patches/00list (11_glut_init): Added. + + -- Michael Banck Sat, 10 Dec 2005 10:10:29 +0100 + +ghemical (1.91-1) unstable; urgency=low + + * New upstream release. + + No longer segfaults when drawing atoms; closes: #338899. + + Adds correct number of hydrogens to nitrogen atoms; + closes: #273314. + * Sync with Ubuntu. + * debian/rules (configure-stamp): Removed obsolete --enable-mpqc + option. + * debian/control (Build-Depends): Add versioned Build-Depends on + libghemical-dev 1.91-1, libsc-dev 2.3.0-1 and libopenbabel-dev + 1.100.2-4 for the C++ allocator transition. + * debian/control (Build-Depends): Added pkg-config. + * debian/patches/07_object_protected: Removed, no longer needed. + * debian/patches/08_gcc-4.0: Likewise. + * debian/patches/10_64bit_glu_fix: Likewise. + * debian/patches/91_aclocal_configure: Regenerated. + * debian/rules (configure-stamp): Explicitely tell configure where + pkg-config is located by adding PKG_CONFIG to its environment. + * debian/rules (configure-stamp): Add --enable-threads to configure + arguments. + + -- Michael Banck Wed, 16 Nov 2005 00:56:11 +0100 + +ghemical (1.90-2ubuntu1) breezy; urgency=low + + * debian/control: added libmopac7-dev to build-deps to build properly + + -- Stephan Hermann Sat, 8 Oct 2005 17:58:30 +0200 + +ghemical (1.90-2) unstable; urgency=low + + * debian/patches/10_64bit_glu_fix.dpatch: New patch by Mark Hymers; + closes: #322750 + * debian/patches/00list (10_64bit_glu_fix): Added. + + -- Michael Banck Thu, 6 Oct 2005 02:01:48 +0200 + +ghemical (1.90-1) unstable; urgency=low + + * New upstream release. + * debian/control (Build-Depends): Replaced gtkglarea5-dev with + libgtkglext1-dev, libgnome-dev with libgtk2.0-dev and libglade-gnome0-dev + with libglade2-dev. + * debian/patches/08_gcc-4.0.dpatch: Updated with another fix for 1.90 from + CVS. + * debian/patches/09_Makefile_prefix.dpatch: New patch. + * debian/patches/00list (09_Makefile_prefix): Added. + * debian/patches/91_aclocal_configure.dpatch: New patch. + * debian/patches/00list (91_aclocal_configure): Added. + + -- Michael Banck Sat, 10 Sep 2005 13:00:03 +0200 + +ghemical (1.51-1) unstable; urgency=low + + * New upstream release; closes: #320921. + + Rebuilt again libopenbabel0c2; closes: #320922. + * debian/patches/00list (06_handle_locale): Dropped, applied + upstream. + * debian/patches/00list (04_link_openbabel): Likewise. + * debian/patches/07_object_protected.dpatch: New file; closes: #268459. + * debian/patches/00list (07_object_protected): Added. + * debian/patches/08_gcc-4.0.dpatch: New file; closes: #286784. + * debian/patches/00list (08_gcc-4.0): Added. + * debian/control (Build-Depends): Replaced blas-dev and lapack-dev + with refblas3-dev and lapack3-dev; closes: #320440. + * debian/control (Build-Depends): Added libghemical-dev. + * debian/control (Build-Depends): Removed f2c. + * debian/docs: Removed PROJECT and BUGLIST. + * debian/rules (dh_installchangelogs): Replaced CHANGES with + ChangeLog. + * debian/patches/90_config_guess_sub.dpatch: New file; closes: #321745. + * debian/patches/00list (90_config_guess_sub): Added. + + -- Michael Banck Sat, 2 Jul 2005 17:08:38 +0200 + +ghemical (1.01-2) unstable; urgency=medium + + * Priority medium to make the sarge freeze. + * Rebuilt against current libsc-dev. + + -- Michael Banck Wed, 18 Aug 2004 02:55:27 +0200 + +ghemical (1.01-1) unstable; urgency=low + + * New upstream release. + - Rebuilt against current libsc-dev; closes: #238870. + * debian/patches/00list (01_rtti_dynamic_cast): Dropped, + applied upstream. + * debian/control (Build-Depends): Added libopenbabel-dev. + * 04_link_openbabel.dpatch: New file, changing: + - Makefile.in (SRCDIRS): Removed openbabel. + - src/target3/Makefile.in (INCS): Use libopenbabel-dev's includes instead + of the ones duplicated in the source tree. + - src/common/Makefile.in: Likewise. + - src/graphics/Makefile.in: Likewise. + - src/common/filetrans.cpp: Change openbabel includes from "foo" to . + - src/common/mm1mdl.h: Likewise. + - src/graphics/docview.cpp: Update #include "Vector.h" to . + (float measure_ang): Updated for openbabel-1.100.1. + (float measure_tor): Likewise. + - (LIBS): Link to libopenbabel-dev's shared library instead of building + libopenbabel.a out of the source tree. + * debian/patches/00list (04_link_openbabel): Added. + * debian/patches/00list (03_openbabel_LIBS): Dropped. + * debian/README.Debian: Updated email address. + * 06_unset_LC_NUMERIC.dpatch: New file, changing: + - src/target3/t3main.cpp (main): Reset LC_NUMERIC to 'C'. + * debian/patches/00list (06_unset_LC_NUMERIC): Added. + * debian/control (Description): Removed last paragraph. + + -- Michael Banck Fri, 19 Mar 2004 16:00:22 +0100 + +ghemical (1.00-2) unstable; urgency=low + + * Rebuilt against current (gcc-3.2) libsc-dev; closes: #181599 + * Commented out #include in src/target3/t3views.h, + see #182251 + * Applied patch removing all dynamic casts (but one) which caused + segfaults with gcc-3.2. Many thanks to Tommi Hassinen + * Moved menu entry from Math to Science section; closes: #185726 + * Removed the comment about mpqc from README.Debian, we have + support for it since 0.82-3 actually + * Moved package from science section to gnome + * Adjusted $VERSION variable in debian/rules + * Switched to dpatch + + -- Michael Banck Wed, 7 May 2003 16:31:14 +0200 + +ghemical (1.00-1) unstable; urgency=low + + * New upstream release + * Build-Depends: on libglade-gnome0-dev now + * Changed long description to reflect the inclusion of mpqc + + -- Michael Banck Tue, 17 Dec 2002 17:37:33 +0100 + +ghemical (0.82-3) unstable; urgency=low + + * Applied patch porting ghemical to mpqc-2.x.x. Many thanks + to Tommi Hassinen + * Build-Depends: on libsc-dev and Depends: on mpqc now + * Corrected manual-symlink to /usr/share/gnome/help/ghemical/C; + closes: #150690 + * Changed Maintainer email address + * Removed Emacs-variables from Debian changelog + * Bumped Standards-Version to 3.5.6.1 + + -- Michael Banck Mon, 16 Sep 2002 23:09:19 +0200 + +ghemical (0.82-1) unstable; urgency=low + + * New upstream release; closes: #134042 + * Removed substvars.local, it did not install on alpha at least. + Hopefully nobody will have problems WRT gtkglarea5 this time + + -- Michael Banck Fri, 22 Feb 2002 23:26:26 +0100 + +ghemical (0.81-3) unstable; urgency=low + + * Added versionend Depends: on gtkglarea5 as it is lacking + a proper shlibs-file; closes #122977 + * Added a GNOME menu-hint + * Put the provided icon in /usr/share/pixmaps + + -- Michael Banck Sun, 9 Dec 2001 12:23:03 +0100 + +ghemical (0.81-2) unstable; urgency=low + + * Documented the glx-problem in README.Debian. You have to + uncomment 'Load "glx"' in your /etc/X11/XF86Config-4 + in order to get ghemical running + * Patched src/target3/t3views.cpp to bomb out (with a slightly + more informative message) if glx is not present + * Made configure.in look for -lf2c if it does not find -lg2c. + If both are not present, bomb out + + -- Michael Banck Thu, 6 Dec 2001 23:16:46 +0100 + +ghemical (0.81-1) unstable; urgency=low + + * Initial Release; closes: #121296 + * No mpqc-support yet, ghemical needs to be ported to mpqc-2.0.0 + + -- Michael Banck Sat, 24 Nov 2001 08:54:38 +0100 --- ghemical-2.95.orig/debian/copyright +++ ghemical-2.95/debian/copyright @@ -0,0 +1,38 @@ +This package was debianized by Michael Banck on +Sat, 24 Nov 2001 08:53:28 +0100. + +It was downloaded from: + + http://www.uku.fi/~thassine/ghemical + +Authors: + + Tommi Hassinen , + Jarno Huuskonen, Ville Heikkilä, + Tuomas Venäläinen, Geoff Hutchison and + Mike Cruz + +Copyright: + + Copyright (C) 1998-2008 Tommi Hassinen. + Copyright (C) 2001-2008 Christopher Rowley. + +License: + + 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; version 2 dated June, 1991. + + 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 package; 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 General +Public License can be found in `/usr/share/common-licenses/GPL'. + --- ghemical-2.95.orig/debian/docs +++ ghemical-2.95/debian/docs @@ -0,0 +1 @@ +AUTHORS --- ghemical-2.95.orig/debian/ghemical.1 +++ ghemical-2.95/debian/ghemical.1 @@ -0,0 +1,55 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH GHEMICAL 1 "November 24, 2001" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +ghemical \- framework for molecular modelling +.SH SYNOPSIS +.B ghemical +.RB [ options ] +.I files +.SH DESCRIPTION +.B ghemical +is a GNOME-based program for molecular modelling. See the online help +manual for further information. +.SH OPTIONS +Apart from the common GTK+ options, ghemical understands the following +options: +.TP +.BR \-f ", " \-\-file= \fIfilename\fP +Open the specified file. +.TP +.BR \-i ", " \-\-import= \fIfilename\fP +Import file as mm1gp project. +.TP +.BR \-h ", " \-\-help +Show summary of options. +.TP +.BR \-\-help\-all +Show a verbose summary of options. +.TP +.BR \-\-help\-gtk +Show only the GTK+ options. +.SH SEE ALSO +.BR gtk-options (7) +.SH AUTHOR +This manual page was written by Michael Banck <\&mbanck@gmx.net\&>, +for the Debian GNU/Linux system (but may be used by others). +.PP +.B ghemical +was written by Tommi Hassinen <\&thassine@messi.uku.fi\&>, +Jarno Huuskonen, Ville Heikkil\[:a], +Tuomas Ven\[:a]l\[:a]inen, Geoff Hutchison and Mike Cruz --- ghemical-2.95.orig/debian/rules +++ ghemical-2.95/debian/rules @@ -0,0 +1,80 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +#export DH_VERBOSE=1 + +VERSION := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: \(.*\)-[^-]*$$/\1/p' ) + +include /usr/share/dpatch/dpatch.make + +CFLAGS = -Wall -g +CXXFLAGS = -Wall -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 + CXXFLAGS += -O0 +else + CFLAGS += -O2 + CXXFLAGS += -O2 +endif + +config.status: configure + dh_testdir + ./configure --host=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) \ + --prefix=/usr \ + --mandir=\$${prefix}/share/man \ + --infodir=\$${prefix}/share/info \ + --enable-threads \ + --enable-openbabel \ + CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \ + F77=gfortran PKG_CONFIG=/usr/bin/pkg-config + +build: build-stamp +build-stamp: patch-stamp config.status + dh_testdir + $(MAKE) + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + [ ! -f Makefile ] || $(MAKE) distclean + dh_clean build-stamp + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install DESTDIR=$(CURDIR)/debian/ghemical +# install -m664 bin/ghemical.png $(CURDIR)/debian/ghemical/usr/share/pixmaps + mv $(CURDIR)/debian/ghemical/usr/share/ghemical/${VERSION}/examples \ + $(CURDIR)/debian/ghemical/usr/share/doc/ghemical + -rm -f $(CURDIR)/debian/ghemical/usr/share/ghemical/${VERSION}/GNULICENSE.txt + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_install debian/ghemical.desktop usr/share/applications + dh_installexamples + dh_installmenu + dh_installman + dh_installinfo + dh_link /usr/share/ghemical/$(VERSION)/user-docs \ + /usr/share/doc/ghemical/html + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- ghemical-2.95.orig/debian/manpages +++ ghemical-2.95/debian/manpages @@ -0,0 +1 @@ +debian/ghemical.1