[mpfrc++] 01/01: Imported Debian patch 0~20130902-1
Jerome Benoit
calculus-guest at alioth.debian.org
Thu Oct 3 01:52:21 UTC 2013
This is an automated email from the git hooks/post-receive script.
calculus-guest pushed a commit to branch master
in repository mpfrc++.
commit b9ef928f432b81f963136e85f9adbdbd700d9886
Author: Jerome Benoit <calculus at rezozer.net>
Date: Thu Oct 3 01:27:26 2013 +0000
Imported Debian patch 0~20130902-1
---
debian/changelog | 16 ++++++++
debian/compat | 1 +
debian/control | 24 +++++++++++
debian/copyright | 64 +++++++++++++++++++++++++++++
debian/libmpfrc++-dev.dirs | 1 +
debian/libmpfrc++-dev.examples | 2 +
debian/libmpfrc++-dev.install | 1 +
debian/patches/fix-upstream-example.patch | 14 +++++++
debian/patches/series | 1 +
debian/rules | 42 +++++++++++++++++++
debian/source/format | 1 +
debian/source/options | 2 +
debian/watch | 3 ++
13 files changed, 172 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..96bb9ae
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,16 @@
+mpfrc++ (0~20130902-1) unstable; urgency=low
+
+ * Initial release. (Closes: #723839)
+ * Debianization:
+ - debian/copyright in DEP-5 format;
+ - debhelper build-dep to >= 9;
+ - source format 3.0 (quilt);
+ - Standards Version 3.9.4;
+ - debian/patches/ patches in DEP-3 format;
+ - commented debian/watch file;
+ - minimal debian/rules with optional get-orig-source target
+ to clone and to pack apropriately the upstream mercurial
+ repository.
+ * Minor fixes and enhancements submitted to the upstream maintainer.
+
+ -- Jerome Benoit <calculus at rezozer.net> Thu, 03 Oct 2013 01:27:26 +0000
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..8c2b3ed
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,24 @@
+Source: mpfrc++
+Section: math
+Priority: optional
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Jerome Benoit <calculus at rezozer.net>
+Build-Depends-Indep: debhelper (>= 9)
+Standards-Version: 3.9.4
+Homepage: http://www.holoborodko.com/pavel/mpfr
+Vcs-Git: git://anonscm.debian.org/debian-science/packages/mpfrc++.git
+Vcs-Browser: http://anonscm.debian.org/?p=debian-science/packages/mpfrc++.git
+
+Package: libmpfrc++-dev
+Section: libdevel
+Architecture: all
+Depends: libmpfr-dev, ${misc:Depends}
+Description: C++ wrapper for the GNU MPFR C library
+ MPFR C++ introduces C++ arbitrary precision numeric types; based on
+ GNU MPFR --- Multiple Precision Floating-Point Reliable Library.
+ .
+ MPFR C++ makes possible to use MPFR calculations in the same simple
+ way as calculations with numbers of built-in types double or float:
+ all arithmetic and boolean operators (+, -, *, /, >, !=, etc.) are
+ implemented through operator overloading technique; elementary
+ mathematical functions (sqrt, pow, sin, cos, etc.) are supported.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..77ba345
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,64 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0
+Upstream-Name: mpfrc++
+Upstream-Contact: Pavel Holoborodko <pavel at holoborodko.com>
+Source: http://www.holoborodko.com/pavel/mpfr
+X-Upstream-Vcs: https://bitbucket.org/advanpix/mpreal
+Comment:
+ The provided upstream source tarball is a clone of the upstream
+ mercurial repository modulo the Changelog file which is generated
+ from it with the mecurial tool hg --- see debian/rules for details.
+
+Files: *
+Copyright:
+ 2008-2013 Pavel Holoborodko <pavel at holoborodko.com>
+License: GPL-2+ or BSD-3-clause
+
+Files: debian/*
+Copyright:
+ 2013 Jerome Benoit <calculus at rezozer.net>
+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, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ .
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ .
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ .
+ 3. The name of the author may not be used to endorse or promote products
+ derived from this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
diff --git a/debian/libmpfrc++-dev.dirs b/debian/libmpfrc++-dev.dirs
new file mode 100644
index 0000000..e43b95c
--- /dev/null
+++ b/debian/libmpfrc++-dev.dirs
@@ -0,0 +1 @@
+usr/include
diff --git a/debian/libmpfrc++-dev.examples b/debian/libmpfrc++-dev.examples
new file mode 100644
index 0000000..eaa9e2f
--- /dev/null
+++ b/debian/libmpfrc++-dev.examples
@@ -0,0 +1,2 @@
+example/makefile
+example/*.cpp
diff --git a/debian/libmpfrc++-dev.install b/debian/libmpfrc++-dev.install
new file mode 100644
index 0000000..b0be900
--- /dev/null
+++ b/debian/libmpfrc++-dev.install
@@ -0,0 +1 @@
+mpreal.h usr/include
diff --git a/debian/patches/fix-upstream-example.patch b/debian/patches/fix-upstream-example.patch
new file mode 100644
index 0000000..01760c0
--- /dev/null
+++ b/debian/patches/fix-upstream-example.patch
@@ -0,0 +1,14 @@
+Description: system preprocessing directive #include for examples
+Origin: debian
+Author: Jerome Benoit <calculs at rezozer.net>
+Last-Update: 2013-10-03
+
+--- a/example/example.cpp
++++ b/example/example.cpp
+@@ -1,5 +1,5 @@
+ #include <iostream>
+-#include "../mpreal.h"
++#include <mpreal.h>
+
+ int main(int argc, char* argv[])
+ {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6532168
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-upstream-example.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..b834abe
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,42 @@
+#!/usr/bin/make -f
+
+PKGDIR = $(abspath $(dir $(MAKEFILE_LIST)))
+PKGNAME = $(shell dpkg-parsechangelog -l$(PKGDIR)/changelog | gawk '/^Source:/ { print $$2 }')
+PKGVER ?= $(shell dpkg-parsechangelog -l$(PKGDIR)/changelog | gawk '/^Version:/ { split($$2,version,/-/); print version[1] }')
+
+UURL = https://bitbucket.org/advanpix/mpreal
+UDATE = $(shell echo $(PKGVER) | gawk '{ split($$1,version,/~|+/); date=version[2]; print substr(date,1,4) "-" substr(date,5,2) "-" substr(date,7,2) }')
+UBRANCH = default
+
+HG = /usr/bin/hg
+
+ORIGDIR = $(abspath $(PKGDIR)/../..)
+PACKDIR = $(PKGDIR)/tmp
+
+default:
+ @
+
+%:
+ dh $@
+
+get-orig-source: $(ORIGDIR)/$(PKGNAME)_$(PKGVER).orig.tar.xz
+ @
+
+$(ORIGDIR)/$(PKGNAME)_$(PKGVER).orig.tar.xz:
+ mkdir --parents $(PACKDIR)
+ cd $(PACKDIR) \
+ && $(HG) clone --branch $(UBRANCH) $(UURL) $(PKGNAME)-$(PKGVER) || ( $(RM) -rf $(PKGNAME)-$(PKGVER) && false )
+ cd $(PACKDIR)/$(PKGNAME)-$(PKGVER) \
+ && $(HG) update --date "<$(UDATE)" \
+ && [ -s Changelog ] || ( $(HG) log --style=changelog --date "<$(UDATE)" > Changelog ) \
+ && $(RM) --force --recursive .hg*
+ cd $(PACKDIR) \
+ && find -L $(PKGNAME)-$(PKGVER) -xdev -type f -print | sort \
+ | XZ_OPT="-9e" tar --create --xz --owner root --group root --mode a+rX -T- --file $(@F) \
+ && mv $(@F) $@ \
+ && $(RM) -rf $(PKGNAME)-$(PKGVER)
+ rmdir --ignore-fail-on-non-empty $(PACKDIR)
+ xz --verbose --test $@
+ xz --verbose --list $@
+
+#.PHONY: get-orig-source
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/source/options b/debian/source/options
new file mode 100644
index 0000000..22a4de9
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1,2 @@
+compression = xz
+compression-level = 9
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..0ea0101
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+# MPFR C++ is maintained collectively via a Mercurial repository:
+# as detailed in debian/rules, the source tar ball is a clone of
+# this repository.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mpfrc++.git
More information about the debian-science-commits
mailing list