[mpfrc++] 02/02: Imported Debian patch 3.5.6+ds-1

Jerome Benoit calculus-guest at alioth.debian.org
Sun Oct 13 20:05:15 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 38353b599a40f2ab6a2f052965b5dc34dabb788a
Author: Jerome Benoit <calculus at rezozer.net>
Date:   Sun Oct 13 19:30:04 2013 +0000

    Imported Debian patch 3.5.6+ds-1
---
 debian/changelog                                  |   26 ++++++
 debian/compat                                     |    1 +
 debian/control                                    |   24 ++++++
 debian/copyright                                  |   35 ++++++++
 debian/libmpfrc++-dev.dirs                        |    1 +
 debian/libmpfrc++-dev.examples                    |    2 +
 debian/libmpfrc++-dev.install                     |    1 +
 debian/patches/minimalize-example-makefile.patch  |   20 +++++
 debian/patches/series                             |    2 +
 debian/patches/system-preprocessing-example.patch |   16 ++++
 debian/repack                                     |   91 +++++++++++++++++++++
 debian/rules                                      |   10 +++
 debian/source/format                              |    1 +
 debian/source/options                             |    2 +
 debian/watch                                      |    4 +
 15 files changed, 236 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..0f79f5f
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,26 @@
+mpfrc++ (3.5.6+ds-1) unstable; urgency=low
+
+  * Initial release (Closes: #723839), thanks to the upstream maintainer
+    Pavel Holoborodko <pavel at holoborodko.com> for clarifying the upstream
+    license policy and for tweaking the upstream Mercurial repository to
+    allow minimal debian/{rules,watch} material and a cleaner package.
+  * 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;
+    - debian/repack script meant for debian/watch file;
+    - debian/watch file, which depends on debian/repack to repack;
+    - debian/rules:
+      - minimal rules;
+      - optional get-orig-source target which relies on uscan to get the
+        currently packaged upstream tarball source and to repack it;
+      - default target which basically queries packages status with
+        uscan, output in DEHS format.
+  * Minor fixes and enhancements:
+    - example/* :
+      - example/example.cpp, system preprocessing directive #include;
+      - minimal example/makefile, unnecessary targets were wiped out.
+
+ -- Jerome Benoit <calculus at rezozer.net>  Sun, 13 Oct 2013 19:30:04 +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..36d2358
--- /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: 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..8d8a990
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,35 @@
+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 upstream source tarball is repacked to wipe out Mercurial metadata
+ material not meant to be distributed.
+
+Files: *
+Copyright:
+ 2008-2013 Pavel Holoborodko <pavel at holoborodko.com>
+License: GPL-3+
+
+Files: debian/*
+Copyright:
+ 2013 Jerome Benoit <calculus at rezozer.net>
+License: GPL-3+
+
+License: GPL-3+
+ 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 3 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 3 can be found in "/usr/share/common-licenses/GPL-3".
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/minimalize-example-makefile.patch b/debian/patches/minimalize-example-makefile.patch
new file mode 100644
index 0000000..3aa023b
--- /dev/null
+++ b/debian/patches/minimalize-example-makefile.patch
@@ -0,0 +1,20 @@
+Description: minimalize makefile for examples
+ Wipes out unnecessary targets.
+Origin: debian
+Author: Jerome Benoit <calculs at rezozer.net>
+Last-Update: 2013-10-11
+
+--- a/example/makefile
++++ b/example/makefile
+@@ -1,9 +1,2 @@
+-example: example.o
+-	g++ example.o -o example -lmpfr -lgmp
+-
+-example.o: example.cpp
+-	g++ -c example.cpp
+-
+-clean:
+-	rm -f *.o 
+-
++example: example.cpp
++	g++ example.cpp -o example -lmpfr -lgmp
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..42f3b8a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+system-preprocessing-example.patch
+minimalize-example-makefile.patch
diff --git a/debian/patches/system-preprocessing-example.patch b/debian/patches/system-preprocessing-example.patch
new file mode 100644
index 0000000..70174a9
--- /dev/null
+++ b/debian/patches/system-preprocessing-example.patch
@@ -0,0 +1,16 @@
+Description: system preprocessing directive #include for examples
+Origin: debian
+Author: Jerome Benoit <calculs at rezozer.net>
+Last-Update: 2013-10-10
+
+--- a/example/example.cpp
++++ b/example/example.cpp
+@@ -46,7 +46,7 @@
+ */
+ 
+ #include <iostream>
+-#include "../mpreal.h"
++#include <mpreal.h>
+ 
+ int main(int argc, char* argv[])
+ {
diff --git a/debian/repack b/debian/repack
new file mode 100755
index 0000000..0292bc3
--- /dev/null
+++ b/debian/repack
@@ -0,0 +1,91 @@
+#!/bin/sh
+
+PACKAGE_NAME=mpfrc++
+
+set -e
+set -u
+
+usage() {
+	echo "Usage: repack --upstream-version <ver> <downloaded file>"
+	exit 1
+	}
+
+if [ "$#" != "3" ]; then
+	usage
+fi
+if [ "$1" != "--upstream-version" ]; then
+	usage
+fi
+if [ ! -f "$3" ]; then
+	if [ -n "$3" ]; then
+		echo "$3 doesn't exist"
+	fi
+	usage
+fi
+UPSTREAM_VERSION="$2"
+UPSTREAM_TARBALLZZ="$3"
+
+DEBIAN_SUFFIX="+ds"
+
+DEBIAN_UVERSION=${UPSTREAM_VERSION}${DEBIAN_SUFFIX}
+DEBIAN_ROOTFOLDERNAME="${PACKAGE_NAME}-${DEBIAN_UVERSION}.orig"
+DEBIAN_TARBALLXZ="$(dirname $UPSTREAM_TARBALLZZ)/${PACKAGE_NAME}_${DEBIAN_UVERSION}.orig.tar.xz"
+
+REPACK_TMPDIR=`mktemp -d ./repackXXXXXX`
+REPACK_TMPDIR=$(readlink -f "$REPACK_TMPDIR")
+trap "/bin/rm -rf \"$REPACK_TMPDIR\"" QUIT INT EXIT
+
+message() {
+	echo
+	echo "-- -- $1"
+	echo
+	}
+
+message "Repackaging $UPSTREAM_TARBALLZZ"
+
+UPSTREAM_ROOTFOLDER="${REPACK_TMPDIR}/unpacked"
+mkdir "${UPSTREAM_ROOTFOLDER}"
+tar -C "${UPSTREAM_ROOTFOLDER}" -xf "${UPSTREAM_TARBALLZZ}" || unzip -d "${UPSTREAM_ROOTFOLDER}" "${UPSTREAM_TARBALLZZ}"
+if [ `ls -1 "${UPSTREAM_ROOTFOLDER}" | wc -l` -eq 1 ]; then
+	UPSTREAM_ROOTFOLDER="${UPSTREAM_ROOTFOLDER}/`ls -1 "${UPSTREAM_ROOTFOLDER}"`"
+fi
+
+DEBIAN_ROOTFOLDER="${REPACK_TMPDIR}/${DEBIAN_ROOTFOLDERNAME}"
+## repack
+set -f
+REPACK_WORKING_FOLDER=$(pwd)
+cd "${UPSTREAM_ROOTFOLDER}"
+
+####. "${REPACK_WORKING_FOLDER}/debian/repack.local"
+## wipe out
+rm --verbose --force -- .hgtags
+rm --verbose --force -- .hg_archival.txt
+## clean up
+#:
+
+cd ${REPACK_WORKING_FOLDER}
+set +f
+## end
+mv "${UPSTREAM_ROOTFOLDER}" "${DEBIAN_ROOTFOLDER}"
+
+REPACK_TARBALL="${REPACK_TMPDIR}/repacked.tar"
+REPACK_TARBALLXZ="${REPACK_TARBALL}.xz"
+( cd "${REPACK_TMPDIR}" && \
+	find -L "${DEBIAN_ROOTFOLDERNAME}" -xdev -type f -print | sort | \
+	tar -T-  --owner=root --group=root --mode=a+rX --create --file "${REPACK_TARBALL}" \
+	)
+xz -9e < "${REPACK_TARBALL}" > "${REPACK_TARBALLXZ}"
+mv "${REPACK_TARBALLXZ}" "${DEBIAN_TARBALLXZ}"
+
+message "Testing ${DEBIAN_TARBALLXZ}"
+
+xz --verbose --test "${DEBIAN_TARBALLXZ}"
+
+message "Printing information about ${DEBIAN_TARBALLXZ}"
+
+xz --verbose --list "${DEBIAN_TARBALLXZ}"
+
+message "Quitting"
+
+##
+## eos
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..30df4c2
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+default:
+	@uscan --no-conf --dehs --report || true
+
+%:
+	dh $@
+
+get-orig-source:
+	uscan --no-conf --download-current-version --verbose
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..604e11c
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+opts="dversionmangle=s/\+ds//" \
+https://bitbucket.org/advanpix/mpreal/downloads .*/mpfrc%2B%2B-(\d+\.\d+\.\d+)\.tar\.(?:gz|bz2|xz) \
+debian sh debian/repack

-- 
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