debian/0000755000000000000000000000000012264524044007171 5ustar debian/control0000644000000000000000000000343312264465346010610 0ustar Source: harminv Section: science Priority: optional Maintainer: Thorsten Alteholz Build-Conflicts: libatlas-base-dev Build-Depends: debhelper (>= 9), dh-autoreconf, liblapack-dev, gfortran Standards-Version: 3.9.5 Homepage: http://ab-initio.mit.edu/wiki/index.php/Harminv Package: harminv Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: extraction of complex frequencies and amplitudes from time series Harminv is a free program to solve the problem of harmonic inversion, given a discrete-time, finite-length signal that consists of a sum of finitely-many sinusoids (possibly exponentially decaying) in a given bandwidth, it determines the frequencies, decay constants, amplitudes, and phases of those sinusoids. Package: libharminv2 Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Library for using harminv Libharminv is a free library to solve the problem of harmonic inversion, given a discrete-time, finite-length signal that consists of a sum of finitely-many sinusoids (possibly exponentially decaying) in a given bandwidth, it determines the frequencies, decay constants, amplitudes, and phases of those sinusoids. . This package contains the library. Package: libharminv-dev Section: libdevel Architecture: any Depends: libharminv2 (= ${binary:Version}), ${misc:Depends} Description: Library for using harminv, development version Libharminv is a free library to solve the problem of harmonic inversion, given a discrete-time, finite-length signal that consists of a sum of finitely-many sinusoids (possibly exponentially decaying) in a given bandwidth, it determines the frequencies, decay constants, amplitudes, and phases of those sinusoids. . This package contains the header files. debian/libharminv2.postrm0000644000000000000000000000012411670144446012655 0ustar #!/bin/sh set -e if [ "$1" = "remove" ]; then ldconfig fi #DEBHELPER# exit 0 debian/copyright0000644000000000000000000000241712264465661011141 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: harminv Source: http://ab-initio.mit.edu/wiki/index.php/Harminv Files: * Copyright: (C) 2006 Massachusetts Institute of Technology. Comment: Upstream Author: Steven G. Johnson License: GPL2+ 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. Files: debian/* Copyright: (C) 2006 Loic Le Guyader (C) 2008-2011 Thorsten Alteholz License: GPL2+ see above debian/changelog0000644000000000000000000001001012264465706011044 0ustar harminv (1.3.1-10) unstable; urgency=low * debian/control: moved to dh 9 * debian/control: standards version 3.9.5, no changes * debian/control: remove obsolete DM-Upload-Allowed * debian/rules: use --with autoreconf (Closes: #727891) thanks to Logan Rosen and Matthias Klose * debian/copyright: add better Format:-line -- Thorsten Alteholz Sun, 12 Jan 2014 10:00:38 +0100 harminv (1.3.1-9) unstable; urgency=low * debian/control: add Build-Conflicts against libatlas-base-dev. If the latter is installed, the build system detects and links against some ATLAS-specific shared libraries. In turn, this makes libharminv.so unusable when the BLAS alternative does not point to ATLAS. Thanks a lot to Sebastien Villemot for analysing the problem and providing the solution. (Closes: #703371). -- Thorsten Alteholz Tue, 19 Mar 2013 19:00:38 +0100 harminv (1.3.1-8) unstable; urgency=low * debian/control: moved to dh 8 * debian/control: standards version 3.9.2, no changes * debian/control: dpatch dependency removed * debian/source/format: changed to 3.0 (quilt) * debian/patches: patches reworked for quilt * debian/rules: changed to dh * debian/copyright: changed to DEP5 -- Thorsten Alteholz Fri, 09 Dec 2011 18:33:38 +0100 harminv (1.3.1-7) unstable; urgency=low * debian/libharminv.debhelper.log removed -- Thorsten Alteholz Wed, 08 Dec 2010 19:00:00 +0100 harminv (1.3.1-6) unstable; urgency=low * changed config file for pkgconfig (Closes: #580780 , reopened) Libs: now only contains -lharminv, other libs are found by linker -- Thorsten Alteholz Tue, 09 Nov 2010 19:00:00 +0100 harminv (1.3.1-5) unstable; urgency=low * libatlas3gf-sse2 (which is needed due to dependency on liblapack) is no longer available, so package has to be rebuilded * moved Standard to 3.9.1, no changes needed -- Thorsten Alteholz Thu, 09 Sep 2010 19:00:00 +0200 harminv (1.3.1-4) unstable; urgency=low * debian/control: standard raised to 3.8.4, no further changes needed * debian/control: adding dependency on ${misc:Depends} to all packages * debian/source/format: added format 1.0 * added patch for harminv.pc.in (Closes: #580780) this avoids libs containing version numbers of gcc in /usr/lib/pkgconfig/harminv.pc -- Thorsten Alteholz Wed, 09 Jun 2010 18:45:00 +0100 harminv (1.3.1-3) unstable; urgency=low * debian/control: package libharminv-dev: dependency on ${binary:Version} changed from >= to = (lintian error) * debian/control: standard raised to 3.8.3, no further changes needed * README.source added * copyright pointed to GPL-2 instead of versionless GPL * patch from Nobuhiro Iwamatsu for SH4 support applied (Closes: #554344) * ldconfig added in postinst and postrm for libharminv2 to meet requirements of policy 8.1.1 * DM-Upload-Allowed introduced -- Thorsten Alteholz Wed, 04 Nov 2009 18:00:00 +0100 harminv (1.3.1-2) unstable; urgency=low * new maintainer (Closes: #481035) * lintian warnings removed - homepage header removed from extended description in debian/control - standards version changed to 3.8.0 - "copyright" added to the packaging copyright section in debian/copyright - symbols file for libharminv2 added - changed "-$(MAKE) distclean" to "[ ! -f Makefile ] || $(MAKE) distclean" in debian/rules - replaced ${Source-Version} by ${binary:Version} in debian/control -- Thorsten Alteholz Sun, 02 Feb 2009 02:00:09 +0100 harminv (1.3.1-1.1) unstable; urgency=low * Non-maintainer upload. * Use gfortran based Lapack and Blas packages (Closes: #463953). -- Colin Tuckley Fri, 22 Feb 2008 15:12:09 +0000 harminv (1.3.1-1) unstable; urgency=low * Initial release (Closes: #249768) -- Loic Le Guyader Sat, 11 Nov 2006 12:46:32 +0100 debian/compat0000644000000000000000000000000212264463153010372 0ustar 9 debian/watch0000644000000000000000000000016111670144446010224 0ustar version=3 http://ab-initio.mit.edu/wiki/index.php/Harminv http://ab-initio.mit.edu/harminv/harminv-(.*)\.tar\.gz debian/libharminv2.symbols0000644000000000000000000000105211670144446013022 0ustar libharminv.so.2 libharminv2 #MINVER# _Z32harminv_compute_frequency_errorsP19harminv_data_struct@Base 1.3.1 harminv_compute_amplitudes@Base 1.3.1 harminv_data_create@Base 1.3.1 harminv_data_destroy@Base 1.3.1 harminv_get_Q@Base 1.3.1 harminv_get_amplitude@Base 1.3.1 harminv_get_decay@Base 1.3.1 harminv_get_freq@Base 1.3.1 harminv_get_freq_error@Base 1.3.1 harminv_get_num_freqs@Base 1.3.1 harminv_get_omega@Base 1.3.1 harminv_solve@Base 1.3.1 harminv_solve_again@Base 1.3.1 harminv_solve_ok_modes@Base 1.3.1 harminv_solve_once@Base 1.3.1 debian/libharminv-dev.install0000644000000000000000000000006511670144446013475 0ustar usr/include usr/lib/libharminv.so usr/lib/pkgconfig/ debian/libharminv2.install0000644000000000000000000000003111670144446012774 0ustar usr/lib/libharminv*.so.* debian/libharminv2.postinst0000644000000000000000000000012711670144446013217 0ustar #!/bin/sh set -e if [ "$1" = "configure" ]; then ldconfig fi #DEBHELPER# exit 0 debian/patches/0000755000000000000000000000000011670406005010614 5ustar debian/patches/harminv.pc.in.patch0000644000000000000000000000104711670405706014320 0ustar Description: number of Libs: reduced Author: Thorsten Alteholz Last-Update: 2011-12-09 Index: harminv/harminv.pc.in =================================================================== --- harminv.orig/harminv.pc.in 2011-12-09 13:53:54.000000000 +0100 +++ harminv/harminv.pc.in 2011-12-09 13:54:33.000000000 +0100 @@ -6,5 +6,5 @@ Name: Harminv Description: harmonic inversion of time series by filter diagonalization Version: @VERSION@ -Libs: -L${libdir} -lharminv @LIBS@ +Libs: -L${libdir} -lharminv Cflags: -I${includedir} debian/patches/manpage.patch0000644000000000000000000001106211670405753013256 0ustar Description: lintian warnings in man page removed Author: Thorsten Alteholz Last-Update: 2011-12-09 Index: harminv/harminv.1 =================================================================== --- harminv.orig/harminv.1 2011-12-09 13:08:00.000000000 +0100 +++ harminv/harminv.1 2011-12-09 13:18:27.000000000 +0100 @@ -19,10 +19,9 @@ harminv \- extract mode frequencies from time-series data .SH SYNOPSIS .B harminv -[\fIOPTION\fR]... [\fIfreq-min\fR-\fIfreq-max\fR]... +[\fIOPTION\fR]... [\fIfreq-min\fR\-\fIfreq-max\fR]... .SH DESCRIPTION .PP -." Add any additional description here \fBharminv\fR is a program designed to solve the problem of "harmonic inversion": given a time series consisting of a sum of sinusoids ("modes"), extract their frequencies and amplitudes. It can also @@ -54,7 +53,7 @@ A typical invocation is something like .IP "" 4 -harminv -t 0.02 1-5 < input.dat +harminv \-t 0.02 1\-5 < input.dat .PP which reads a sequence of samples, spaced at 0.02 time intervals (in ms, say, corresponding to 50 kHz), and searches for modes in the @@ -64,9 +63,9 @@ line for each mode: frequency, decay constant, Q, amplitude, phase, and error. Each mode corresponds to a function of the form: -\fIamplitude\fR * exp[-i (2 pi \fIfrequency\fR t - \fIphase\fR) - \fIdecay\fR t] +\fIamplitude\fR * exp[\-i (2 pi \fIfrequency\fR t \- \fIphase\fR) \- \fIdecay\fR t] -Here, i is sqrt(-1), t is the time (see below for units), and the +Here, i is sqrt(\-1), t is the time (see below for units), and the other parameters in the output columns are: .TP @@ -86,7 +85,7 @@ A conventional, dimensionless expression of the decay lifetime: Q = pi |\fIfrequency\fI| / \fIdecay\fR. Q, which stands for "quality factor", is the number of periods for the "energy" in the mode (the -squared amplitude) to decay by exp(-2 pi). Equivalently, if you look +squared amplitude) to decay by exp(\-2 pi). Equivalently, if you look at the power spectrum (|Fourier transform|^2), 1/Q is the fractional width of the peak at half maximum. .TP @@ -118,7 +117,7 @@ in units of 1/time, where the units of time are determined by the sampling interval \fIdt\fR (the time between consecutive inputs). \fIdt\fR is by default 1, unless you specify it with the -.B -t +.B \-t .I dt option. @@ -130,28 +129,28 @@ the angular frequency. .SH OPTIONS .TP -.B -h +.B \-h Display help on the command-line options and usage. .TP -.B -V +.B \-V Print the version number and copyright info for \fBharminv\fR. .TP -.B -v +.B \-v Enable verbose output, printed to standard output as comment lines (starting with a "#" character). Also, any "#" comments in the input are echoed to the output. .TP -.B -T +.B \-T Specify period-ranges instead of frequency-ranges on the command line -(in units of time corresponding to those specified by \fB-t\fR). The +(in units of time corresponding to those specified by \fB\-t\fR). The output is still frequency and not period, however. .TP -.B -w +.B \-w Specify angular frequencies instead of frequencies, and output angular frequency instead of frequency. (Angular frequency is frequency multiplied by 2 pi). .TP -.B -n +.B \-n Flip the sign of the frequency (and phase) convention used in harminv. (The sign of the frequency is only important if you have complex-valued input data, in which case the positive and negative @@ -165,7 +164,7 @@ Specify the spectral "density" \fId\fR to search for modes, where a density of 1 indicates the usual Fourier resolution. That is, the number of basis functions (which sets an upper bound on the number of -modes) is given by \fId\fR times (\fIfreq-max\fR - \fIfreq-min\fR) +modes) is given by \fId\fR times (\fIfreq-max\fR \- \fIfreq-min\fR) times \fIdt\fR times the number of samples in your dataset. A maximum of 300 is used, however, to prevent the matrices from getting too big (you can force a larger number with \fB\-f\fR, below). @@ -177,7 +176,7 @@ bandwidth is initially "searched" for modes. The default density is 0.0, which means that the number of basis -functions is determined by -f (which defaults to 100). This often +functions is determined by \-f (which defaults to 100). This often corresponds to a much larger density than the usual Fourier resolution, but the resulting singularities in the system matrices are automatically removed by harminv. .TP @@ -207,7 +206,7 @@ Omit any modes with error (see above) greater than \fIerr\fR. Defaults to 0.1. .TP -.B -F +.B \-F Omit any modes with frequencies outside the specified range. (Such modes are not necessarily spurious, however.) .TP debian/patches/series0000644000000000000000000000006511670403742012037 0ustar sh4-ssupport.patch harminv.pc.in.patch manpage.patch debian/patches/sh4-ssupport.patch0000644000000000000000000000117611670406004014234 0ustar Description: sh4 support added Author: Thorsten Alteholz Last-Update: 2011-12-09 Index: harminv/configure =================================================================== --- harminv.orig/configure 2011-12-09 14:07:23.000000000 +0100 +++ harminv/configure 2011-12-09 14:08:37.000000000 +0100 @@ -3684,7 +3684,7 @@ ;; # Ignore these flags. - -lang* | -lcrt*.o | -lc | -lgcc | -libmil | -LANG:=*) + -lang* | -lcrt*.o | -lc | -lgcc | -libmil | -little | -LANG:=*) ;; -lkernel32) test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" debian/README.source0000644000000000000000000000353511670406420011353 0ustar This package uses quilt to manage all modifications to the upstream source. Changes are stored in the source package as diffs in debian/patches and applied during the build. To configure quilt to use debian/patches instead of patches, you want either to export QUILT_PATCHES=debian/patches in your environment or use this snippet in your ~/.quiltrc: for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then export QUILT_PATCHES=debian/patches break fi done To get the fully patched source after unpacking the source package, cd to the root level of the source package and run: quilt push -a The last patch listed in debian/patches/series will become the current patch. To add a new set of changes, first run quilt push -a, and then run: quilt new where is a descriptive name for the patch, used as the filename in debian/patches. Then, for every file that will be modified by this patch, run: quilt add before editing those files. You must tell quilt with quilt add what files will be part of the patch before making changes or quilt will not work properly. After editing the files, run: quilt refresh to save the results as a patch. Alternately, if you already have an external patch and you just want to add it to the build system, run quilt push -a and then: quilt import -P /path/to/patch quilt push -a (add -p 0 to quilt import if needed). as above is the filename to use in debian/patches. The last quilt push -a will apply the patch to make sure it works properly. To remove an existing patch from the list of patches that will be applied, run: quilt delete You may need to run quilt pop -a to unapply patches first before running this command. debian/rules0000755000000000000000000000217012264463337010260 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif %: dh $@ --with autoreconf override_dh_auto_configure: F77=gfortran ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" --with-cxx --enable-shared override_dh_auto_clean: [ ! -f Makefile ] || $(MAKE) distclean dh_clean override_dh_auto_install: $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp dh_install -s -plibharminv-dev --sourcedir=$(CURDIR)/debian/tmp dh_install -s -plibharminv --sourcedir=$(CURDIR)/debian/tmp dh_install -s -pharminv --sourcedir=$(CURDIR)/debian/tmp dh_installdocs NEWS README debian/harminv.install0000644000000000000000000000003711670373350012227 0ustar usr/bin/harminv usr/share/man* debian/source/0000755000000000000000000000000011670151145010467 5ustar debian/source/format0000644000000000000000000000001411670151145011675 0ustar 3.0 (quilt)