diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2012-02-14 11:23:40 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-02-11 14:59:18 +0400 |
commit | e37e2b0f8d5a5cc31269ee08794047e4bdbe11cf (patch) | |
tree | f1285e10c945eb0e2eb394478a086d5101cf9975 | |
parent | a232a950cc15b2c6e3427b59d4f90006a70e04f6 (diff) | |
download | libcuba-e37e2b0f8d5a5cc31269ee08794047e4bdbe11cf.tar.gz |
Imported Debian patch 3.0+20111124-2debian/3.0+20111124-2
-rw-r--r-- | debian/changelog | 18 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 102 | ||||
-rw-r--r-- | debian/copyright | 41 | ||||
-rw-r--r-- | debian/cuba-partview.1 | 29 | ||||
-rw-r--r-- | debian/cuba-partview.install | 1 | ||||
-rw-r--r-- | debian/cuba-partview.manpages | 1 | ||||
-rw-r--r-- | debian/libcuba-doc.doc-base | 7 | ||||
-rw-r--r-- | debian/libcuba-doc.docs | 2 | ||||
-rw-r--r-- | debian/libcuba3-dev.install | 3 | ||||
-rw-r--r-- | debian/libcuba3.install | 1 | ||||
-rw-r--r-- | debian/patches/cuba-3.0-make-shared-lib.patch | 175 | ||||
-rw-r--r-- | debian/patches/series | 1 | ||||
-rwxr-xr-x | debian/rules | 25 | ||||
-rw-r--r-- | debian/source.lintian-overrides | 1 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/watch | 2 |
17 files changed, 411 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..ed46b78 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,18 @@ +cuba (3.0+20111124-2) unstable; urgency=low + + * Removed "duplicate" demo-c.out + + -- Igor Pashev <pashev.igor@gmail.com> Tue, 14 Feb 2012 11:23:40 +0400 + +cuba (3.0+20111124-1) unstable; urgency=low + + * New upstream release. + * Link shared library with other libs. (Closes: #659154) + + -- Igor Pashev <pashev.igor@gmail.com> Thu, 09 Feb 2012 00:04:19 +0400 + +cuba (3.0-1) unstable; urgency=low + + * Initial release. (Closes: #649076) + + -- Igor Pashev <pashev.igor@gmail.com> Thu, 17 Nov 2011 14:57:11 +0400 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..c4211fc --- /dev/null +++ b/debian/control @@ -0,0 +1,102 @@ +Source: cuba +Section: math +Priority: optional +Maintainer: Igor Pashev <pashev.igor@gmail.com> +Build-Depends: + debhelper ( >= 8.1.3~), + libqt4-dev ( >= 4:4.6 ), +Standards-Version: 3.9.2 +Homepage: http://www.feynarts.de/cuba/ + +Package: libcuba3 +Architecture: any +Multi-Arch: same +Depends: ${shlibs:Depends}, ${misc:Depends} +Pre-Depends: ${misc:Pre-Depends} +Description: library for multidimensional numerical integration + The Cuba library offers a choice of four independent routines for + multidimensional numerical integration: Vegas, Suave, Divonne, and + Cuhre. They work by very different methods, first three are Monte Carlo + based. All four have a C/C++, Fortran interface and can integrate vector + integrands. Their invocation is very similar, so it is easy to substitute + one method by another for cross-checking. For further safeguarding, the + output is supplemented by a chi-square probability which quantifies the + reliability of the error estimate. + . + This package provides the shared libraries required to run programs compiled + with Cuba. To compile your own programs you also need to install libuba3-dev. + + +Package: libcuba3-dev +Section: libdevel +Architecture: any +Provides: libcuba-dev +Depends: libcuba3 ( = ${binary:Version}), + ${misc:Depends} +Suggests: libcuba-doc, cuba-partview +Description: library for multidimensional numerical integration: development files + The Cuba library offers a choice of four independent routines for + multidimensional numerical integration: Vegas, Suave, Divonne, and + Cuhre. They work by very different methods, first three are Monte Carlo + based. All four have a C/C++, Fortran interface and can integrate vector + integrands. Their invocation is very similar, so it is easy to substitute + one method by another for cross-checking. For further safeguarding, the + output is supplemented by a chi-square probability which quantifies the + reliability of the error estimate. + . + This package contains the header file, static library and symbolic links + that developers using Cuba will need. + +Package: cuba-partview +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: partition viewer for the Cuba library + Partview reads Cuba's verbose output from stdin and displays the + specified planes of the tessellation on screen. Each pair of dimensions + is shown in a separate tab. + . + The Cuba library offers a choice of four independent routines for + multidimensional numerical integration: Vegas, Suave, Divonne, and + Cuhre. They work by very different methods, first three are Monte Carlo + based. All four have a C/C++, Fortran interface and can integrate vector + integrands. Their invocation is very similar, so it is easy to substitute + one method by another for cross-checking. For further safeguarding, the + output is supplemented by a chi-square probability which quantifies the + reliability of the error estimate. + +Package: libcuba3-dbg +Priority: extra +Section: debug +Architecture: any +Provides: libcuba-dbg +Depends: libcuba3 ( = ${binary:Version}), + ${misc:Depends} +Description: library for multidimensional numerical integration: debug symbols + The Cuba library offers a choice of four independent routines for + multidimensional numerical integration: Vegas, Suave, Divonne, and + Cuhre. They work by very different methods, first three are Monte Carlo + based. All four have a C/C++, Fortran interface and can integrate vector + integrands. Their invocation is very similar, so it is easy to substitute + one method by another for cross-checking. For further safeguarding, the + output is supplemented by a chi-square probability which quantifies the + reliability of the error estimate. + . + This package contains debugging symbols for libcuba3. + + +Package: libcuba-doc +Architecture: all +Section: doc +Depends: ${misc:Depends} +Description: library for multidimensional numerical integration: documentation + The Cuba library offers a choice of four independent routines for + multidimensional numerical integration: Vegas, Suave, Divonne, and + Cuhre. They work by very different methods, first three are Monte Carlo + based. All four have a C/C++, Fortran interface and can integrate vector + integrands. Their invocation is very similar, so it is easy to substitute + one method by another for cross-checking. For further safeguarding, the + output is supplemented by a chi-square probability which quantifies the + reliability of the error estimate. + . + This package includes documentation and examples for the Cuba library. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..167318a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,41 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 +Source: http://www.feynarts.de/cuba/ + +Files: * +Copyright: 2004-2011, Thomas Hahn <hahn@feynarts.de> +License: LGPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This program 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 <http://www.gnu.org/licenses/>. + . + On Debian systems, the full text of the GNU General Public + License version 2 can be found in the file + `/usr/share/common-licenses/LGPL-3'. + + +Files: debian/* +Copyright: 2011, Igor Pashev <pashev.igor@gmail.com> +License: WTFPL-2 + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + . + Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> + . + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + . + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + . + 0. You just DO WHAT THE FUCK YOU WANT TO. + diff --git a/debian/cuba-partview.1 b/debian/cuba-partview.1 new file mode 100644 index 0000000..f658e7a --- /dev/null +++ b/debian/cuba-partview.1 @@ -0,0 +1,29 @@ +.TH cuba-partview 1 "November 2011" "" "Cuba - a library for multidimensional numerical integration" + +.SH NAME +cuba-partview \- partition viewer for the Cuba library + +.SH SYNOPSIS +.B cuba-partview +.I N +.I M +[...] < +.I file + +.SH DESCRIPTION +.B cuba-partview +reads Cuba's verbose output from stdin and displays +the N-M plane of the tessellation on screen. Each pair of dimensions is shown in a separate tab. + +To use this utility you should pass verbosility flag to Cuba's routines, and that flags should be set to 3. +With verbosility set to 3 the program will print to stdout data, that is used as input for +.B cuba-partview +\. + +.SH SEE ALSO +Documentation for Cuba library and examples are in package +.I libcuba-doc + +.SH AUTHOR +This man page is written by Igor Pashev +.I <pashev.igor@gmail.com> diff --git a/debian/cuba-partview.install b/debian/cuba-partview.install new file mode 100644 index 0000000..e01b3c2 --- /dev/null +++ b/debian/cuba-partview.install @@ -0,0 +1 @@ +cuba-partview usr/bin/ diff --git a/debian/cuba-partview.manpages b/debian/cuba-partview.manpages new file mode 100644 index 0000000..48b1d0f --- /dev/null +++ b/debian/cuba-partview.manpages @@ -0,0 +1 @@ +debian/cuba-partview.1 diff --git a/debian/libcuba-doc.doc-base b/debian/libcuba-doc.doc-base new file mode 100644 index 0000000..52d8e5f --- /dev/null +++ b/debian/libcuba-doc.doc-base @@ -0,0 +1,7 @@ +Document: libcuba-doc +Title: Cuba – a library for multidimensional numerical integration +Author: Thomas Hahn +Section: Science/Mathematics + +Format: PDF +Files: /usr/share/doc/libcuba-doc/cuba.pdf diff --git a/debian/libcuba-doc.docs b/debian/libcuba-doc.docs new file mode 100644 index 0000000..f83addb --- /dev/null +++ b/debian/libcuba-doc.docs @@ -0,0 +1,2 @@ +demo +cuba.pdf diff --git a/debian/libcuba3-dev.install b/debian/libcuba3-dev.install new file mode 100644 index 0000000..a547b21 --- /dev/null +++ b/debian/libcuba3-dev.install @@ -0,0 +1,3 @@ +usr/lib/*/libcuba.a +usr/include/cuba.h +usr/lib/*/libcuba.so diff --git a/debian/libcuba3.install b/debian/libcuba3.install new file mode 100644 index 0000000..4cca159 --- /dev/null +++ b/debian/libcuba3.install @@ -0,0 +1 @@ +usr/lib/*/libcuba.so.* diff --git a/debian/patches/cuba-3.0-make-shared-lib.patch b/debian/patches/cuba-3.0-make-shared-lib.patch new file mode 100644 index 0000000..1117a33 --- /dev/null +++ b/debian/patches/cuba-3.0-make-shared-lib.patch @@ -0,0 +1,175 @@ +Author: Igor Pashev <pashev.igor@gmail.com> +Description: Make shared library +Forwarded: no +Index: cuba/makefile.in +=================================================================== +--- cuba.orig/makefile.in 2011-08-12 14:16:24.000000000 +0400 ++++ cuba/makefile.in 2011-11-17 14:24:27.000000000 +0400 +@@ -1,5 +1,5 @@ + CC = @CC@ +-CFLAGS = @CFLAGS@ @DEFS@ -I$(common) -I. -I$(srcdir) ++CFLAGS = @CFLAGS@ @DEFS@ -I$(common) -I. -I$(srcdir) -fPIC + MCFLAGS = @MCFLAGS@ + F77 = @F77@ + FFLAGS = @FFLAGS@ +@@ -9,6 +9,7 @@ + INSTALL_PROGRAM = @INSTALL_PROGRAM@ + RANLIB = @RANLIB@ + EXE = @EXEEXT@ ++VERSION = @PACKAGE_VERSION@ + + prefix = @prefix@ + exec_prefix = @exec_prefix@ +@@ -31,13 +32,15 @@ + + HEADERS = cuba.h + LIB = libcuba.a ++SHLIB = libcuba.so.$(VERSION) ++SONAME = libcuba.so.3 + MATH = Vegas$(EXE) Suave$(EXE) Divonne$(EXE) Cuhre$(EXE) + TOOLS = partview$(EXE) + + + all: lib demos $(MATH_DEFAULT) $(TOOLS_DEFAULT) + +-lib: $(LIB) ++lib: $(LIB) $(SHLIB) + + demos: demo-c$(EXE) $(DEMO_FORTRAN_DEFAULT) + +@@ -52,6 +55,7 @@ + $(DESTDIR)$(bindir) \ + $(DESTDIR)$(datadir) + $(INSTALL_DATA) $(LIB) $(DESTDIR)$(libdir) ++ cp -P libcuba.so* $(DESTDIR)$(libdir) + for f in $(HEADERS) ; do \ + $(INSTALL_DATA) `test -f $$f || echo $(srcdir)/`$$f $(DESTDIR)$(includedir); \ + done +@@ -92,26 +96,21 @@ + $(LIB)(Vegas.o): $(VEGAS_C) $(VEGAS_DEPS) $(COMMON_CDEPS) + $(CC) $(CFLAGS) -I$(vegas) -DNOUNDERSCORE -c -o Vegas.o $(VEGAS_C) + $(AR) $(ARFLAGS) $(LIB) Vegas.o +- $(RM) Vegas.o + + $(LIB)(llVegas.o): $(VEGAS_C) $(VEGAS_DEPS) $(COMMON_CDEPS) + $(CC) $(CFLAGS) -I$(vegas) -DLONGLONGINT -DNOUNDERSCORE -c -o llVegas.o $(VEGAS_C) + $(AR) $(ARFLAGS) $(LIB) llVegas.o +- $(RM) llVegas.o + + $(LIB)(Vegas_.o): $(VEGAS_C) $(VEGAS_DEPS) $(COMMON_CDEPS) + $(CC) $(CFLAGS) -I$(vegas) -c -o Vegas_.o $(VEGAS_C) + $(AR) $(ARFLAGS) $(LIB) Vegas_.o +- $(RM) Vegas_.o + + $(LIB)(llVegas_.o): $(VEGAS_C) $(VEGAS_DEPS) $(COMMON_CDEPS) + $(CC) $(CFLAGS) -I$(vegas) -DLONGLONGINT -c -o llVegas_.o $(VEGAS_C) + $(AR) $(ARFLAGS) $(LIB) llVegas_.o +- $(RM) llVegas_.o + + Vegas$(EXE): $(VEGAS_TM) $(VEGAS_DEPS) $(COMMON_TMDEPS) + $(MCC) $(MCFLAGS) $(CFLAGS) -I$(vegas) -o Vegas$(EXE) $(VEGAS_TM) +- strip Vegas$(EXE) + + + SUAVE_C = $(suave)/Suave.c +@@ -125,26 +124,21 @@ + $(LIB)(Suave.o): $(SUAVE_C) $(SUAVE_DEPS) $(COMMON_CDEPS) + $(CC) $(CFLAGS) -I$(suave) -DNOUNDERSCORE -c -o Suave.o $(SUAVE_C) + $(AR) $(ARFLAGS) $(LIB) Suave.o +- $(RM) Suave.o + + $(LIB)(llSuave.o): $(SUAVE_C) $(SUAVE_DEPS) $(COMMON_CDEPS) + $(CC) $(CFLAGS) -I$(suave) -DLONGLONGINT -DNOUNDERSCORE -c -o llSuave.o $(SUAVE_C) + $(AR) $(ARFLAGS) $(LIB) llSuave.o +- $(RM) llSuave.o + + $(LIB)(Suave_.o): $(SUAVE_C) $(SUAVE_DEPS) $(COMMON_CDEPS) + $(CC) $(CFLAGS) -I$(suave) -c -o Suave_.o $(SUAVE_C) + $(AR) $(ARFLAGS) $(LIB) Suave_.o +- $(RM) Suave_.o + + $(LIB)(llSuave_.o): $(SUAVE_C) $(SUAVE_DEPS) $(COMMON_CDEPS) + $(CC) $(CFLAGS) -I$(suave) -DLONGLONGINT -c -o llSuave_.o $(SUAVE_C) + $(AR) $(ARFLAGS) $(LIB) llSuave_.o +- $(RM) llSuave_.o + + Suave$(EXE): $(SUAVE_TM) $(SUAVE_DEPS) $(COMMON_TMDEPS) + $(MCC) $(MCFLAGS) $(CFLAGS) -I$(suave) -o Suave$(EXE) $(SUAVE_TM) +- strip Suave$(EXE) + + + DIVONNE_C = $(divonne)/Divonne.c +@@ -159,26 +153,21 @@ + $(LIB)(Divonne.o): $(DIVONNE_C) $(DIVONNE_DEPS) $(COMMON_CDEPS) + $(CC) $(CFLAGS) -I$(divonne) -DNOUNDERSCORE -c -o Divonne.o $(DIVONNE_C) + $(AR) $(ARFLAGS) $(LIB) Divonne.o +- $(RM) Divonne.o + + $(LIB)(llDivonne.o): $(DIVONNE_C) $(DIVONNE_DEPS) $(COMMON_CDEPS) + $(CC) $(CFLAGS) -I$(divonne) -DLONGLONGINT -DNOUNDERSCORE -c -o llDivonne.o $(DIVONNE_C) + $(AR) $(ARFLAGS) $(LIB) llDivonne.o +- $(RM) llDivonne.o + + $(LIB)(Divonne_.o): $(DIVONNE_C) $(DIVONNE_DEPS) $(COMMON_CDEPS) + $(CC) $(CFLAGS) -I$(divonne) -c -o Divonne_.o $(DIVONNE_C) + $(AR) $(ARFLAGS) $(LIB) Divonne_.o +- $(RM) Divonne_.o + + $(LIB)(llDivonne_.o): $(DIVONNE_C) $(DIVONNE_DEPS) $(COMMON_CDEPS) + $(CC) $(CFLAGS) -I$(divonne) -DLONGLONGINT -c -o llDivonne_.o $(DIVONNE_C) + $(AR) $(ARFLAGS) $(LIB) llDivonne_.o +- $(RM) llDivonne_.o + + Divonne$(EXE): $(DIVONNE_TM) $(DIVONNE_DEPS) $(COMMON_TMDEPS) + $(MCC) $(MCFLAGS) $(CFLAGS) -I$(divonne) -o Divonne$(EXE) $(DIVONNE_TM) +- strip Divonne$(EXE) + + + CUHRE_C = $(cuhre)/Cuhre.c +@@ -191,26 +180,21 @@ + $(LIB)(Cuhre.o): $(CUHRE_C) $(CUHRE_DEPS) $(COMMON_CDEPS) + $(CC) $(CFLAGS) -I$(cuhre) -DNOUNDERSCORE -c -o Cuhre.o $(CUHRE_C) + $(AR) $(ARFLAGS) $(LIB) Cuhre.o +- $(RM) Cuhre.o + + $(LIB)(llCuhre.o): $(CUHRE_C) $(CUHRE_DEPS) $(COMMON_CDEPS) + $(CC) $(CFLAGS) -I$(cuhre) -DLONGLONGINT -DNOUNDERSCORE -c -o llCuhre.o $(CUHRE_C) + $(AR) $(ARFLAGS) $(LIB) llCuhre.o +- $(RM) llCuhre.o + + $(LIB)(Cuhre_.o): $(CUHRE_C) $(CUHRE_DEPS) $(COMMON_CDEPS) + $(CC) $(CFLAGS) -I$(cuhre) -c -o Cuhre_.o $(CUHRE_C) + $(AR) $(ARFLAGS) $(LIB) Cuhre_.o +- $(RM) Cuhre_.o + + $(LIB)(llCuhre_.o): $(CUHRE_C) $(CUHRE_DEPS) $(COMMON_CDEPS) + $(CC) $(CFLAGS) -I$(cuhre) -DLONGLONGINT -c -o llCuhre_.o $(CUHRE_C) + $(AR) $(ARFLAGS) $(LIB) llCuhre_.o +- $(RM) llCuhre_.o + + Cuhre$(EXE): $(CUHRE_TM) $(CUHRE_DEPS) $(COMMON_TMDEPS) + $(MCC) $(MCFLAGS) $(CFLAGS) -I$(cuhre) -o Cuhre$(EXE) $(CUHRE_TM) +- strip Cuhre$(EXE) + + + $(LIB): $(LIB)(Vegas.o) $(LIB)(Vegas_.o) \ +@@ -223,6 +207,11 @@ + $(LIB)(llCuhre.o) $(LIB)(llCuhre_.o) + -$(RANLIB) $(LIB) + ++$(SHLIB): $(LIB) ++ $(CC) -shared -Wl,-soname,$(SONAME) -o $@ *.o $(LIBS) ++ ln -sf $(SHLIB) $(SONAME) ++ ln -sf $(SONAME) libcuba.so ++ + + DEMO_F = $(demo)/demo-fortran.F + DEMO_C = $(demo)/demo-c.c +@@ -269,6 +258,6 @@ + *.o */*.o */*.tm.c + + distclean: clean +- -$(RM) $(LIB) demo-c demo-fortran $(MATH) $(TOOLS) \ ++ -$(RM) $(LIB) libcuba.so* demo-c demo-fortran $(MATH) $(TOOLS) \ + config.h config.log config.status makefile + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..489764d --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +cuba-3.0-make-shared-lib.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..2d0df38 --- /dev/null +++ b/debian/rules @@ -0,0 +1,25 @@ +#!/usr/bin/make -f + +LIB := $(shell dh_listpackages | head -n 1) + +%: + dh $@ + +override_dh_compress: + dh_compress -X .pdf -X demo + +override_dh_strip: + dh_strip --dbg-package=$(LIB)-dbg + +override_dh_installdocs: + dh_installdocs -p $(LIB)-dbg --link-doc=$(LIB) + dh_installdocs -p $(LIB)-dev --link-doc=$(LIB) + dh_installdocs --remaining-packages + +override_dh_auto_build: + dh_auto_build + mv partview cuba-partview + +override_dh_auto_clean: + rm -f cuba-partview + dh_auto_clean diff --git a/debian/source.lintian-overrides b/debian/source.lintian-overrides new file mode 100644 index 0000000..4c9ca41 --- /dev/null +++ b/debian/source.lintian-overrides @@ -0,0 +1 @@ +package-needs-versioned-debhelper-build-depends 9 diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..753baf6 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://www.feynarts.de/cuba/Cuba-(.+).tar.gz |