[mathic] 62/62: Initial attempt at Debian package.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Wed Apr 1 11:36:25 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository mathic.

commit f083b109c3dbf0d012e857e6ae0e2e11b4af4f57
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Wed Apr 1 06:28:08 2015 -0500

    Initial attempt at Debian package.
---
 debian/changelog                  |   5 ++
 debian/compat                     |   1 +
 debian/control                    |  56 +++++++++++++
 debian/copyright                  |  31 +++++++
 debian/docs                       |   1 +
 debian/libmathic-dev.install      |   4 +
 debian/libmathic0.install         |   1 +
 debian/libmathic0.symbols         | 169 ++++++++++++++++++++++++++++++++++++++
 debian/patches/find_gtest.patch   |  28 +++++++
 debian/patches/fix_test.patch     |  41 +++++++++
 debian/patches/link_pthread.patch |  16 ++++
 debian/patches/series             |   3 +
 debian/rules                      |  25 ++++++
 debian/source/format              |   1 +
 debian/tests/build                |  24 ++++++
 debian/tests/control              |   2 +
 debian/watch                      |   5 ++
 17 files changed, 413 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..a6a2d13
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+mathic (1.0~git20130827-1) unstable; urgency=low
+
+  * Initial release (Closes: #780783).
+
+ -- Doug Torrance <dtorrance at monmouthcollege.edu>  Wed, 01 Apr 2015 06:27:19 -0500
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..940f31a
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,56 @@
+Source: mathic
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Doug Torrance <dtorrance at monmouthcollege.edu>
+Section: libs
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               dh-autoreconf,
+               libgtest-dev,
+               libmemtailor-dev,
+               pkgconf
+Standards-Version: 3.9.6
+Vcs-Browser: http://anonscm.debian.org/cgit/debian-science/packages/mathic.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/mathic.git
+Homepage: https://github.com/broune/mathic
+
+Package: libmathic-dev
+Architecture: any
+Section: libdevel
+Depends: libmathic0 (= ${binary:Version}),
+         ${misc:Depends}
+Multi-Arch: same
+Description: C++ library for Groebner basis computation (developer tools)
+ Mathic is a C++ library of fast data structures designed for use in Groebner
+ basis computation. This includes data structures for ordering S-pairs,
+ performing divisor queries and ordering polynomial terms during polynomial
+ reduction.
+ .
+ This package contains the developer tools.
+
+Package: libmathic0
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
+Description: C++ library for Groebner basis computation (runtime library)
+ Mathic is a C++ library of fast data structures designed for use in Groebner
+ basis computation. This includes data structures for ordering S-pairs,
+ performing divisor queries and ordering polynomial terms during polynomial
+ reduction.
+ .
+ This package contains the runtime library.
+
+Package: libmathic-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: libmathic0 (= ${binary:Version}), ${misc:Depends}
+Multi-Arch: same
+Description: C++ library for Groebner basis computation (debugging symbols)
+ Mathic is a C++ library of fast data structures designed for use in Groebner
+ basis computation. This includes data structures for ordering S-pairs,
+ performing divisor queries and ordering polynomial terms during polynomial
+ reduction.
+ .
+ This package contains the debugging symbols.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..7705d4e
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: mathic
+Source: https://github.com/broune/mathic
+
+Files: *
+Copyright: 2012, 2013 Bjarke Hammersholt Roune
+	   2012, 2013 Michael Stillman
+License: GPL-2+
+Comment: Copyright information obtained from mathic fork maintained by
+ Macaulay2 developers.  See https://github.com/Macaulay2/mathic/commit/d5cc52e.
+
+Files: debian/*
+Copyright: 2015 Doug Torrance <dtorrance at monmouthcollege.edu>
+License: GPL-2+
+
+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 <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/libmathic-dev.install b/debian/libmathic-dev.install
new file mode 100644
index 0000000..2350b44
--- /dev/null
+++ b/debian/libmathic-dev.install
@@ -0,0 +1,4 @@
+usr/include/*
+usr/lib/*/libmathic.a
+usr/lib/*/libmathic.so
+usr/lib/*/pkgconfig/mathic.pc
diff --git a/debian/libmathic0.install b/debian/libmathic0.install
new file mode 100644
index 0000000..1e7c4df
--- /dev/null
+++ b/debian/libmathic0.install
@@ -0,0 +1 @@
+usr/lib/*/libmathic.so.*
diff --git a/debian/libmathic0.symbols b/debian/libmathic0.symbols
new file mode 100644
index 0000000..fab868e
--- /dev/null
+++ b/debian/libmathic0.symbols
@@ -0,0 +1,169 @@
+libmathic.so.0 libmathic0 #MINVER#
+ _ZN6mathic10HelpAction10staticNameEv at Base 1.0~git20130827
+ _ZN6mathic10HelpAction13directOptionsESt6vectorISsSaISsEERNS_9CliParserE at Base 1.0~git20130827
+ _ZN6mathic10HelpAction13performActionEv at Base 1.0~git20130827
+ _ZN6mathic10HelpAction17displayActionHelpERNS_6ActionE at Base 1.0~git20130827
+ _ZN6mathic10HelpAction18pushBackParametersERSt6vectorIPNS_12CliParameterESaIS3_EE at Base 1.0~git20130827
+ _ZN6mathic10HelpActionC1Ev at Base 1.0~git20130827
+ _ZN6mathic10HelpActionC2Ev at Base 1.0~git20130827
+ _ZN6mathic10HelpActionD0Ev at Base 1.0~git20130827
+ _ZN6mathic10HelpActionD1Ev at Base 1.0~git20130827
+ _ZN6mathic10HelpActionD2Ev at Base 1.0~git20130827
+ _ZN6mathic10throwErrorINS_20UnknownNameExceptionEEEvRKSs at Base 1.0~git20130827
+ _ZN6mathic10throwErrorINS_22AmbiguousNameExceptionEEEvRKSs at Base 1.0~git20130827
+ _ZN6mathic11NameFactoryIPvED1Ev at Base 1.0~git20130827
+ _ZN6mathic11NameFactoryIPvED2Ev at Base 1.0~git20130827
+ _ZN6mathic11displayNoteERKSs at Base 1.0~git20130827
+ _ZN6mathic11reportErrorERKSs at Base 1.0~git20130827
+ _ZN6mathic12CliParameter19appendToDescriptionERKSs at Base 1.0~git20130827
+ _ZN6mathic12CliParameterC1ERKSsS2_ at Base 1.0~git20130827
+ _ZN6mathic12CliParameterC2ERKSsS2_ at Base 1.0~git20130827
+ _ZN6mathic12CliParameterD0Ev at Base 1.0~git20130827
+ _ZN6mathic12CliParameterD1Ev at Base 1.0~git20130827
+ _ZN6mathic12CliParameterD2Ev at Base 1.0~git20130827
+ _ZN6mathic12displayErrorERKSs at Base 1.0~git20130827
+ _ZN6mathic13BoolParameter15processArgumentERKSs at Base 1.0~git20130827
+ _ZN6mathic13BoolParameterC1ERKSsS2_b at Base 1.0~git20130827
+ _ZN6mathic13BoolParameterC2ERKSsS2_b at Base 1.0~git20130827
+ _ZN6mathic13BoolParameterD0Ev at Base 1.0~git20130827
+ _ZN6mathic13BoolParameterD1Ev at Base 1.0~git20130827
+ _ZN6mathic13BoolParameterD2Ev at Base 1.0~git20130827
+ _ZN6mathic13ColumnPrinter10oneDecimalEd at Base 1.0~git20130827
+ _ZN6mathic13ColumnPrinter11bytesInUnitEy at Base 1.0~git20130827
+ _ZN6mathic13ColumnPrinter11ratioDoubleEdd at Base 1.0~git20130827
+ _ZN6mathic13ColumnPrinter12ratioIntegerEyy at Base 1.0~git20130827
+ _ZN6mathic13ColumnPrinter12withSIPrefixEy at Base 1.0~git20130827
+ _ZN6mathic13ColumnPrinter13percentDoubleEd at Base 1.0~git20130827
+ _ZN6mathic13ColumnPrinter13percentDoubleEdd at Base 1.0~git20130827
+ _ZN6mathic13ColumnPrinter14percentIntegerEyy at Base 1.0~git20130827
+ _ZN6mathic13ColumnPrinter17repeatToEndOfLineEc at Base 1.0~git20130827
+ _ZN6mathic13ColumnPrinter17repeatToEndOfLineEcm at Base 1.0~git20130827
+ _ZN6mathic13ColumnPrinter19percentIntegerFixedEyy at Base 1.0~git20130827
+ _ZN6mathic13ColumnPrinter7commafyEy at Base 1.0~git20130827
+ _ZN6mathic13ColumnPrinter9addColumnEbRKSsS2_ at Base 1.0~git20130827
+ _ZN6mathic13ColumnPrinter9setPrefixERKSs at Base 1.0~git20130827
+ _ZN6mathic13ColumnPrinterC1Em at Base 1.0~git20130827
+ _ZN6mathic13ColumnPrinterC2Em at Base 1.0~git20130827
+ _ZN6mathic13ColumnPrinterD1Ev at Base 1.0~git20130827
+ _ZN6mathic13ColumnPrinterD2Ev at Base 1.0~git20130827
+ _ZN6mathic13ColumnPrinterixEm at Base 1.0~git20130827
+ _ZN6mathic15MathicExceptionD0Ev at Base 1.0~git20130827
+ _ZN6mathic15MathicExceptionD1Ev at Base 1.0~git20130827
+ _ZN6mathic15MathicExceptionD2Ev at Base 1.0~git20130827
+ _ZN6mathic15StringParameter15processArgumentERKSs at Base 1.0~git20130827
+ _ZN6mathic15StringParameterC1ERKSsS2_S2_ at Base 1.0~git20130827
+ _ZN6mathic15StringParameterC2ERKSsS2_S2_ at Base 1.0~git20130827
+ _ZN6mathic15StringParameterD0Ev at Base 1.0~git20130827
+ _ZN6mathic15StringParameterD1Ev at Base 1.0~git20130827
+ _ZN6mathic15StringParameterD2Ev at Base 1.0~git20130827
+ _ZN6mathic16IntegerParameter15processArgumentERKSs at Base 1.0~git20130827
+ _ZN6mathic16IntegerParameterC1ERKSsS2_j at Base 1.0~git20130827
+ _ZN6mathic16IntegerParameterC2ERKSsS2_j at Base 1.0~git20130827
+ _ZN6mathic16IntegerParameterD0Ev at Base 1.0~git20130827
+ _ZN6mathic16IntegerParameterD1Ev at Base 1.0~git20130827
+ _ZN6mathic16IntegerParameterD2Ev at Base 1.0~git20130827
+ _ZN6mathic16displayExceptionERKSt9exception at Base 1.0~git20130827
+ _ZN6mathic19reportInternalErrorERKSs at Base 1.0~git20130827
+ _ZN6mathic19reportInternalErrorERKSsPKcj at Base 1.0~git20130827
+ _ZN6mathic20UnknownNameExceptionD0Ev at Base 1.0~git20130827
+ _ZN6mathic20UnknownNameExceptionD1Ev at Base 1.0~git20130827
+ _ZN6mathic20UnknownNameExceptionD2Ev at Base 1.0~git20130827
+ _ZN6mathic20displayInternalErrorERKSs at Base 1.0~git20130827
+ _ZN6mathic20uniqueNameWithPrefixINS_6ActionEEESsRKNS_11NameFactoryIT_EERKSs at Base 1.0~git20130827
+ _ZN6mathic20uniqueNameWithPrefixIPvEESsRKNS_11NameFactoryIT_EERKSs at Base 1.0~git20130827
+ _ZN6mathic22AmbiguousNameExceptionD0Ev at Base 1.0~git20130827
+ _ZN6mathic22AmbiguousNameExceptionD1Ev at Base 1.0~git20130827
+ _ZN6mathic22AmbiguousNameExceptionD2Ev at Base 1.0~git20130827
+ _ZN6mathic23InternalMathicExceptionD0Ev at Base 1.0~git20130827
+ _ZN6mathic23InternalMathicExceptionD1Ev at Base 1.0~git20130827
+ _ZN6mathic23InternalMathicExceptionD2Ev at Base 1.0~git20130827
+ _ZN6mathic5printEP8_IO_FILERKNS_13ColumnPrinterE at Base 1.0~git20130827
+ _ZN6mathic6Action13directOptionsESt6vectorISsSaISsEERNS_9CliParserE at Base 1.0~git20130827
+ _ZN6mathic6ActionD0Ev at Base 1.0~git20130827
+ _ZN6mathic6ActionD1Ev at Base 1.0~git20130827
+ _ZN6mathic6ActionD2Ev at Base 1.0~git20130827
+ _ZN6mathic7displayERKSsS1_ at Base 1.0~git20130827
+ _ZN6mathic9CliParser22createActionWithPrefixERKSs at Base 1.0~git20130827
+ _ZN6mathic9CliParser5parseERKSt6vectorISsSaISsEE at Base 1.0~git20130827
+ _ZN6mathic9CliParser5parseEiPPc at Base 1.0~git20130827
+ _ZN6mathic9CliParserC1Ev at Base 1.0~git20130827
+ _ZN6mathic9CliParserC2Ev at Base 1.0~git20130827
+ _ZN6mathiclsERSoRKNS_13ColumnPrinterE at Base 1.0~git20130827
+ _ZNK6mathic10HelpAction11descriptionEv at Base 1.0~git20130827
+ _ZNK6mathic10HelpAction12isHelpActionEv at Base 1.0~git20130827
+ _ZNK6mathic10HelpAction16shortDescriptionEv at Base 1.0~git20130827
+ _ZNK6mathic10HelpAction4nameEv at Base 1.0~git20130827
+ _ZNK6mathic10HelpAction5topicEv at Base 1.0~git20130827
+ _ZNK6mathic11BitTriangle12getMemoryUseEv at Base 1.0~git20130827
+ _ZNK6mathic11NameFactoryINS_6ActionEE15namesWithPrefixERKSsRSt6vectorISsSaISsEE at Base 1.0~git20130827
+ _ZNK6mathic11NameFactoryIPvE15namesWithPrefixERKSsRSt6vectorISsSaISsEE at Base 1.0~git20130827
+ _ZNK6mathic13BoolParameter12argumentTypeEv at Base 1.0~git20130827
+ _ZNK6mathic13BoolParameter13valueAsStringEv at Base 1.0~git20130827
+ _ZNK6mathic13ColumnPrinter14getColumnCountEv at Base 1.0~git20130827
+ _ZNK6mathic13ColumnPrinter5printERSo at Base 1.0~git20130827
+ _ZNK6mathic15StringParameter12argumentTypeEv at Base 1.0~git20130827
+ _ZNK6mathic15StringParameter13valueAsStringEv at Base 1.0~git20130827
+ _ZNK6mathic16IntegerParameter12argumentTypeEv at Base 1.0~git20130827
+ _ZNK6mathic16IntegerParameter13valueAsStringEv at Base 1.0~git20130827
+ _ZNK6mathic5Timer15getMillisecondsEv at Base 1.0~git20130827
+ _ZNK6mathic5Timer5printEP8_IO_FILE at Base 1.0~git20130827
+ _ZNK6mathic5Timer5printERSo at Base 1.0~git20130827
+ _ZNK6mathic6Action12isHelpActionEv at Base 1.0~git20130827
+ _ZNK6mathic9CliParser29pushBackRegisteredActionNamesERSt6vectorISsSaISsEE at Base 1.0~git20130827
+ _ZNSs12_S_constructIPcEES0_T_S1_RKSaIcESt20forward_iterator_tag at Base 1.0~git20130827
+ _ZNSt12_Destroy_auxILb0EE9__destroyIPSsEEvT_S3_ at Base 1.0~git20130827
+ _ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED0Ev at Base 1.0~git20130827
+ _ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED1Ev at Base 1.0~git20130827
+ _ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED2Ev at Base 1.0~git20130827
+ _ZNSt6vectorISsSaISsEE19_M_emplace_back_auxIIRKSsEEEvDpOT_ at Base 1.0~git20130827
+ _ZNSt6vectorISsSaISsEE19_M_emplace_back_auxIJRKSsEEEvDpOT_ at Base 1.0~git20130827
+ _ZNSt6vectorISsSaISsEED1Ev at Base 1.0~git20130827
+ _ZNSt6vectorISsSaISsEED2Ev at Base 1.0~git20130827
+ _ZNSt6vectorISt10unique_ptrIN6mathic13ColumnPrinter3ColESt14default_deleteIS3_EESaIS6_EE19_M_emplace_back_auxIIS6_EEEvDpOT_ at Base 1.0~git20130827
+ _ZNSt6vectorISt10unique_ptrIN6mathic13ColumnPrinter3ColESt14default_deleteIS3_EESaIS6_EE19_M_emplace_back_auxIJS6_EEEvDpOT_ at Base 1.0~git20130827
+ _ZNSt6vectorISt10unique_ptrIN6mathic13ColumnPrinter3ColESt14default_deleteIS3_EESaIS6_EED1Ev at Base 1.0~git20130827
+ _ZNSt6vectorISt10unique_ptrIN6mathic13ColumnPrinter3ColESt14default_deleteIS3_EESaIS6_EED2Ev at Base 1.0~git20130827
+ _ZNSt6vectorISt4pairISsPFSt10unique_ptrIPvSt14default_deleteIS2_EEvEESaIS8_EE19_M_emplace_back_auxIIS8_EEEvDpOT_ at Base 1.0~git20130827
+ _ZNSt6vectorISt4pairISsPFSt10unique_ptrIPvSt14default_deleteIS2_EEvEESaIS8_EE19_M_emplace_back_auxIJS8_EEEvDpOT_ at Base 1.0~git20130827
+ _ZSt11__make_heapIN9__gnu_cxx17__normal_iteratorIPSsSt6vectorISsSaISsEEEENS0_5__ops15_Iter_less_iterEEvT_S9_T0_ at Base 1.0~git20130827
+ _ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIPPN6mathic12CliParameterESt6vectorIS4_SaIS4_EEEElS4_NS0_5__ops15_Iter_comp_iterIPFbS4_S4_EEEEvT_T0_SG_T1_T2_ at Base 1.0~git20130827
+ _ZSt13__adjust_heapIN9__gnu_cxx17__normal_iteratorIPSsSt6vectorISsSaISsEEEElSsNS0_5__ops15_Iter_less_iterEEvT_T0_SA_T1_T2_ at Base 1.0~git20130827
+ _ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIPPN6mathic12CliParameterESt6vectorIS4_SaIS4_EEEENS0_5__ops15_Iter_comp_iterIPFbS4_S4_EEEEvT_SF_T0_ at Base 1.0~git20130827
+ _ZSt16__insertion_sortIN9__gnu_cxx17__normal_iteratorIPSsSt6vectorISsSaISsEEEENS0_5__ops15_Iter_less_iterEEvT_S9_T0_ at Base 1.0~git20130827
+ _ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIPPN6mathic12CliParameterESt6vectorIS4_SaIS4_EEEElNS0_5__ops15_Iter_comp_iterIPFbS4_S4_EEEEvT_SF_T0_T1_ at Base 1.0~git20130827
+ _ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIPPN6mathic12CliParameterESt6vectorIS4_SaIS4_EEEENS0_5__ops14_Val_comp_iterIPFbS4_S4_EEEEvT_T0_ at Base 1.0~git20130827
+ _ZSt25__unguarded_linear_insertIN9__gnu_cxx17__normal_iteratorIPSsSt6vectorISsSaISsEEEENS0_5__ops14_Val_less_iterEEvT_T0_ at Base 1.0~git20130827
+ _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPSsSt6vectorISsSaISsEEEENS0_5__ops16_Iter_equals_valIKSsEEET_SB_SB_T0_St26random_access_iterator_tag at Base 1.0~git20130827
+ _ZStplIcSt11char_traitsIcESaIcEESbIT_T0_T1_EPKS3_RKS6_ at Base 1.0~git20130827
+ _ZStplIcSt11char_traitsIcESaIcEESbIT_T0_T1_ES3_RKS6_ at Base 1.0~git20130827
+ _ZTIN6mathic10HelpActionE at Base 1.0~git20130827
+ _ZTIN6mathic12CliParameterE at Base 1.0~git20130827
+ _ZTIN6mathic13BoolParameterE at Base 1.0~git20130827
+ _ZTIN6mathic15MathicExceptionE at Base 1.0~git20130827
+ _ZTIN6mathic15StringParameterE at Base 1.0~git20130827
+ _ZTIN6mathic16IntegerParameterE at Base 1.0~git20130827
+ _ZTIN6mathic20UnknownNameExceptionE at Base 1.0~git20130827
+ _ZTIN6mathic22AmbiguousNameExceptionE at Base 1.0~git20130827
+ _ZTIN6mathic23InternalMathicExceptionE at Base 1.0~git20130827
+ _ZTIN6mathic6ActionE at Base 1.0~git20130827
+ _ZTSN6mathic10HelpActionE at Base 1.0~git20130827
+ _ZTSN6mathic12CliParameterE at Base 1.0~git20130827
+ _ZTSN6mathic13BoolParameterE at Base 1.0~git20130827
+ _ZTSN6mathic15MathicExceptionE at Base 1.0~git20130827
+ _ZTSN6mathic15StringParameterE at Base 1.0~git20130827
+ _ZTSN6mathic16IntegerParameterE at Base 1.0~git20130827
+ _ZTSN6mathic20UnknownNameExceptionE at Base 1.0~git20130827
+ _ZTSN6mathic22AmbiguousNameExceptionE at Base 1.0~git20130827
+ _ZTSN6mathic23InternalMathicExceptionE at Base 1.0~git20130827
+ _ZTSN6mathic6ActionE at Base 1.0~git20130827
+ _ZTVN6mathic10HelpActionE at Base 1.0~git20130827
+ _ZTVN6mathic12CliParameterE at Base 1.0~git20130827
+ _ZTVN6mathic13BoolParameterE at Base 1.0~git20130827
+ _ZTVN6mathic15MathicExceptionE at Base 1.0~git20130827
+ _ZTVN6mathic15StringParameterE at Base 1.0~git20130827
+ _ZTVN6mathic16IntegerParameterE at Base 1.0~git20130827
+ _ZTVN6mathic20UnknownNameExceptionE at Base 1.0~git20130827
+ _ZTVN6mathic22AmbiguousNameExceptionE at Base 1.0~git20130827
+ _ZTVN6mathic23InternalMathicExceptionE at Base 1.0~git20130827
+ _ZTVN6mathic6ActionE at Base 1.0~git20130827
+ libmathicIsPresent at Base 1.0~git20130827
diff --git a/debian/patches/find_gtest.patch b/debian/patches/find_gtest.patch
new file mode 100644
index 0000000..6402952
--- /dev/null
+++ b/debian/patches/find_gtest.patch
@@ -0,0 +1,28 @@
+Description: Find gtest source files.
+ Upstream defaults to downloading a gtest tarball and using that for build.
+ Instead, we use the libgtest-dev package.  We need to tell the build system
+ how to find these files.
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2015-03-19
+
+--- a/src/test/gtestInclude.cpp
++++ b/src/test/gtestInclude.cpp
+@@ -5,6 +5,4 @@
+ // the compiler flags are the same, which is the whole point of the
+ // recommendation to build gtest for each program.
+ 
+-// the .. goes back from the include/ directory of gtest so we can
+-// enter the src directory.
+-#include <../src/gtest-all.cc>
++#include <src/gtest-all.cc>
+--- a/configure.ac
++++ b/configure.ac
+@@ -51,7 +51,7 @@
+   [AC_MSG_ERROR([invalid value $with_gtest for with_gtest.])]
+ )
+ AS_IF([test "x$with_gtest" == "xyes"],
+-  [GTEST_CFLAGS="-I`cd $GTEST_PATH/gtest/include; echo $PWD` -I`cd $GTEST_PATH/gtest/; echo $PWD`"]);
++  [GTEST_CFLAGS="-I/usr/include/gtest -I`cd $GTEST_PATH/gtest/; echo $PWD`"]);
+ AM_CONDITIONAL(with_gtest, test "x$with_gtest" == "xyes")
+ 
+ DEPS_CFLAGS="$MEMTAILOR_CFLAGS $GTEST_CFLAGS"
diff --git a/debian/patches/fix_test.patch b/debian/patches/fix_test.patch
new file mode 100644
index 0000000..f9f1484
--- /dev/null
+++ b/debian/patches/fix_test.patch
@@ -0,0 +1,41 @@
+Description: Fix failing PairQueue.Ordering test.
+Origin: https://github.com/Macaulay2/M2/commit/9b010dc
+Last-Update: 2015-03-19
+
+--- a/src/test/PairQueue.cpp
++++ b/src/test/PairQueue.cpp
+@@ -114,6 +114,7 @@
+   // distinguish all pairs and that, according to the pairdata,
+   //   (11,0) < (11,10) = (111,0) < (11,5)
+   // so the order that pairs are extracted mix up columns 11 and 111.
++
+   for (size_t col = 0; col < 112; ++col) {
+ 	Index const* begin = 0;
+ 	Index const* end = 0;
+@@ -121,20 +122,24 @@
+ 	  Index const rows[] = {0};
+ 	  begin = rows;
+ 	  end = rows + sizeof(rows) / sizeof(rows[0]);
++      pq.addColumnDescending(begin, end);
+ 	} else if (col == 11) {
+ 	  Index const rows[] = {0, 10, 5};
+ 	  begin = rows;
+ 	  end = rows + sizeof(rows) / sizeof(rows[0]);
++      pq.addColumnDescending(begin, end);
+ 	} else if (col == 13) {
+ 	  Index const rows[] = {12, 3, 7};
+ 	  begin = rows;
+ 	  end = rows + sizeof(rows) / sizeof(rows[0]);
++      pq.addColumnDescending(begin, end);
+ 	} else if (col == 111) {
+ 	  Index const rows[] = {0, 100};
+ 	  begin = rows;
+ 	  end = rows + sizeof(rows) / sizeof(rows[0]);
+-	}
+-	pq.addColumnDescending(begin, end);
++      pq.addColumnDescending(begin, end);
++	} else
++      pq.addColumnDescending(begin, end);
+   }
+   std::ostringstream out;
+   std::string lastPd;
diff --git a/debian/patches/link_pthread.patch b/debian/patches/link_pthread.patch
new file mode 100644
index 0000000..64248e0
--- /dev/null
+++ b/debian/patches/link_pthread.patch
@@ -0,0 +1,16 @@
+Description: Link against pthread.
+ Avoid FTBFS due to several "undefined reference to `pthread_*' errors.
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2015-03-19
+
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -87,7 +87,7 @@
+ 
+ unittest_CPPFLAGS = $(DEPS_CFLAGS)
+ unittest_CXXFLAGS = -I$(top_srcdir)/src/ -std=gnu++0x
+-unittest_LDADD = $(DEPS_LIBS)
++unittest_LDADD = $(DEPS_LIBS) -lpthread
+ unittest_LDFLAGS= $(top_builddir)/libmathic.la
+ 
+ test_LIBS=
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..23f167a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+find_gtest.patch
+link_pthread.patch
+fix_test.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..8f370cc
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,25 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@ --with autoreconf
+
+override_dh_auto_configure:
+	dh_auto_configure -- GTEST_PATH=/usr/src
+
+override_dh_strip:
+	dh_strip --dbg-package=libmathic-dbg
+
+get-orig-source:
+	wget https://github.com/broune/mathic/archive/master.tar.gz
+	git checkout upstream
+	git pull https://github.com/broune/mathic
+	grep -Po '(?<=AC_INIT\(\[mathic\], \[).*(?=\]\))' configure.ac \
+		> version
+	git show HEAD^:configure.ac | \
+		grep -Po '(?<=AC_INIT\(\[mathic\], \[).*(?=\]\))' > oldversion
+	if test `cat oldversion` = `cat version` ; then \
+		echo "`cat version`~git`date -d @\`git log -1 --pretty=format:%ct\` +%Y%m%d`" > version; \
+	fi
+	git checkout master
+	mv -v master.tar.gz ../mathic_`cat version`.orig.tar.gz
+	rm version oldversion
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/tests/build b/debian/tests/build
new file mode 100755
index 0000000..79c448e
--- /dev/null
+++ b/debian/tests/build
@@ -0,0 +1,24 @@
+#!/bin/sh
+# autopkgtest check: Build and run a program against mathic, to verify that the
+# headers and pkg-config file are installed correctly
+# Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+
+set -e
+
+WORKDIR=$(mktemp -d)
+trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
+cd $WORKDIR
+cat <<EOF > mathictest.cpp
+
+#include <mathic.h>
+int main (int argc, char *argv[])
+{
+  mathic::BitTriangle tri;
+};
+EOF
+
+g++ -o mathictest mathictest.cpp -std=c++11 `pkg-config --cflags --libs mathic`
+echo "build: OK"
+[ -x mathictest ]
+./mathictest
+echo "run: OK"
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..05ef2ef
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: build
+Depends: libmathic-dev, build-essential
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..5c2c63d
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+# Upstream does not currently tag their releases.  However, if they do in the
+# future, something similar to the following should work.
+# version=3
+# https://github.com/broune/mathic/tags \
+# /broune/mathic/archive/mathic-(.+)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mathic.git



More information about the debian-science-commits mailing list