[mpfrc++] 03/03: Imported Debian patch 3.6.3+ds-1

Jerome Benoit calculus-guest at moszumanska.debian.org
Fri Jan 8 14:06:20 UTC 2016


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

calculus-guest pushed a commit to branch master
in repository mpfrc++.

commit 86a357f65179b9eea387262a5b312bf2b89ddd66
Author: Jerome Benoit <calculus at rezozer.net>
Date:   Fri Jan 8 15:02:50 2016 +0100

    Imported Debian patch 3.6.3+ds-1
---
 debian/changelog                                 | 17 +++++++++++++++++
 debian/clean                                     |  1 +
 debian/control                                   |  4 ++--
 debian/copyright                                 |  4 ++--
 debian/patches/minimalize-example-makefile.patch | 12 ++++++------
 debian/rules                                     |  6 ++++++
 debian/tests/build-examples                      | 13 +++++++++++++
 debian/tests/control                             |  2 ++
 8 files changed, 49 insertions(+), 10 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 7e939c5..1e8890a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,20 @@
+mpfrc++ (3.6.3+ds-1) unstable; urgency=medium
+
+  * New upstream version.
+  * Debianization:
+    - debian/copyright, update;
+    - debian/control:
+      - Build-Depends field, add needed packages to perform check;
+      - Vcs-Browser field, correct;
+    - debian/rules:
+      - dh_auto_test, introduce ad hoc check based on example/makefile ;
+      - dh_compress, neutralize examples compression;
+    - debian/clean, add to cleanup ad hoc check material;
+    - debian/patches/minimalize-example-makefile.patch, enhance;
+    - debian/tests/control, initiate (CI).
+
+ -- Jerome Benoit <calculus at rezozer.net>  Fri, 08 Jan 2016 13:58:22 +0000
+
 mpfrc++ (3.6.2+ds-1) unstable; urgency=medium
 
   * New upstream version:
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..528cd5b
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+example/example
diff --git a/debian/control b/debian/control
index d4ed881..56771ce 100644
--- a/debian/control
+++ b/debian/control
@@ -3,11 +3,11 @@ 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)
+Build-Depends: debhelper (>= 9), libmpfr-dev
 Standards-Version: 3.9.6
 Homepage: http://www.holoborodko.com/pavel/mpfr
 Vcs-Git: git://anonscm.debian.org/debian-science/packages/mpfrc++.git
-Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/mpfrc++.git
+Vcs-Browser: http://anonscm.debian.org/cgit/debian-science/packages/mpfrc++.git
 
 Package: libmpfrc++-dev
 Section: libdevel
diff --git a/debian/copyright b/debian/copyright
index c114556..0365f22 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -10,12 +10,12 @@ Files-Excluded:
 
 Files: *
 Copyright:
- 2008-2015 Pavel Holoborodko <pavel at holoborodko.com>
+ 2008-2016 Pavel Holoborodko <pavel at holoborodko.com>
 License: GPL-3+
 
 Files: debian/*
 Copyright:
- 2014-2015 Jerome Benoit <calculus at rezozer.net>
+ 2014-2016 Jerome Benoit <calculus at rezozer.net>
 License: GPL-3+
 
 License: GPL-3+
diff --git a/debian/patches/minimalize-example-makefile.patch b/debian/patches/minimalize-example-makefile.patch
index 3aa023b..a9ee452 100644
--- a/debian/patches/minimalize-example-makefile.patch
+++ b/debian/patches/minimalize-example-makefile.patch
@@ -1,12 +1,12 @@
 Description: minimalize makefile for examples
- Wipes out unnecessary targets.
+ Wipes out unnecessary material.
 Origin: debian
 Author: Jerome Benoit <calculs at rezozer.net>
-Last-Update: 2013-10-11
+Last-Update: 2016-01-07
 
 --- a/example/makefile
 +++ b/example/makefile
-@@ -1,9 +1,2 @@
+@@ -1,9 +1,3 @@
 -example: example.o
 -	g++ example.o -o example -lmpfr -lgmp
 -
@@ -15,6 +15,6 @@ Last-Update: 2013-10-11
 -
 -clean:
 -	rm -f *.o 
--
-+example: example.cpp
-+	g++ example.cpp -o example -lmpfr -lgmp
++LDLIBS = -lmpfr -lgmp
+ 
++build: example
diff --git a/debian/rules b/debian/rules
index 30df4c2..bb49d8a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,5 +6,11 @@ default:
 %:
 	dh $@
 
+override_dh_auto_test:
+	$(MAKE) -C example CXXFLAGS=-I.. CFLAGS= CPPFLAGS= LDFLAGS= && ./example/example
+
+override_dh_compress:
+	dh_compress -Xexamples
+
 get-orig-source:
 	uscan --no-conf --download-current-version --verbose
diff --git a/debian/tests/build-examples b/debian/tests/build-examples
new file mode 100755
index 0000000..2e5cc65
--- /dev/null
+++ b/debian/tests/build-examples
@@ -0,0 +1,13 @@
+#!/bin/sh
+# autopkgtest check: build and launch program examples
+set -ue
+cd $ADTTMP
+
+cp -prd /usr/share/doc/libmpfrc++-dev/examples .
+cd examples
+
+make
+
+./example
+
+exit 0
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..26ca837
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: build-examples
+Depends: libmpfrc++-dev, build-essential

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