[qrupdate] 04/06: * Upload to unstable. * Bump to debhelper 9. * Add myself to Uploaders. * Use canonical URLs for Vcs-* fields. * Ship docs only in the -dev package. * Bump to Standards-Version 3.9.5. * Multi-archify the package. * Inject compilation and linking flags from dpkg-buildflags. * Rewrite debian/rules using dh.

Sébastien Villemot sebastien at debian.org
Sat Oct 29 21:51:18 UTC 2016


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

sebastien pushed a commit to branch master
in repository qrupdate.

commit 23c6b497bd0eed08494532a138111e0298ee9380
Author: Sébastien Villemot <sebastien at debian.org>
Date:   Wed Feb 12 19:47:43 2014 +0000

     * Upload to unstable.
     * Bump to debhelper 9.
     * Add myself to Uploaders.
     * Use canonical URLs for Vcs-* fields.
     * Ship docs only in the -dev package.
     * Bump to Standards-Version 3.9.5.
     * Multi-archify the package.
     * Inject compilation and linking flags from dpkg-buildflags.
     * Rewrite debian/rules using dh.
---
 debian/changelog                    | 14 ++++++++++
 debian/compat                       |  2 +-
 debian/control                      | 17 ++++++++----
 debian/libqrupdate-dev.dirs         |  1 -
 debian/libqrupdate-dev.install      |  6 ++--
 debian/libqrupdate1.dirs            |  1 -
 debian/libqrupdate1.docs            |  2 --
 debian/libqrupdate1.install         |  5 ++--
 debian/patches/inject-ldflags.patch | 17 ++++++++++++
 debian/patches/series               |  1 +
 debian/rules                        | 55 ++++++++-----------------------------
 11 files changed, 62 insertions(+), 59 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 34bafad..356a802 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,17 @@
+qrupdate (1.1.2-1) unstable; urgency=medium
+
+  * Upload to unstable.
+  * Bump to debhelper 9.
+  * Add myself to Uploaders.
+  * Use canonical URLs for Vcs-* fields.
+  * Ship docs only in the -dev package.
+  * Bump to Standards-Version 3.9.5.
+  * Multi-archify the package.
+  * Inject compilation and linking flags from dpkg-buildflags.
+  * Rewrite debian/rules using dh.
+
+ -- Sébastien Villemot <sebastien at debian.org>  Wed, 12 Feb 2014 20:45:46 +0100
+
 qrupdate (1.1.2-1~exp1) experimental; urgency=low
 
   * Team upload
diff --git a/debian/compat b/debian/compat
index 7f8f011..ec63514 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-7
+9
diff --git a/debian/control b/debian/control
index 45953cf..403c752 100644
--- a/debian/control
+++ b/debian/control
@@ -1,16 +1,20 @@
 Source: qrupdate
 Priority: optional
-Maintainer:  Debian Science Team <debian-science-maintainers at lists.alioth.debian.org>
-Uploaders: Jordi Gutiérrez Hermoso <jordigh at gmail.com>
-Build-Depends: debhelper (>= 7), perl-base( >= 5.8.8), gfortran, libblas3gf, liblapack-dev
-Standards-Version: 3.9.3
+Maintainer: Debian Science Team <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Jordi Gutiérrez Hermoso <jordigh at gmail.com>,
+           Sébastien Villemot <sebastien at debian.org>
+Build-Depends: debhelper (>= 9), perl-base (>= 5.8.8), gfortran, libblas-dev, liblapack-dev,
+               dh-exec, dpkg-dev (>= 1.16.1~)
+Standards-Version: 3.9.5
 Section: libs
 Homepage: http://qrupdate.sf.net
-Vcs-Svn: svn://svn.debian.org/svn/debian-science/packages/qrupdate/trunk/
-Vcs-Browser: http://svn.debian.org/viewsvn/debian-science/packagesqrupdate/
+Vcs-Svn: svn://anonscm.debian.org/debian-science/packages/qrupdate/trunk/
+Vcs-Browser: http://anonscm.debian.org/viewvc/debian-science/packages/qrupdate/trunk/
 
 Package: libqrupdate1
 Architecture: any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: Fast updates of QR and Cholesky decompositions
  qrupdate is a Fortran library for QR and Cholesky decompositions. It
@@ -21,6 +25,7 @@ Description: Fast updates of QR and Cholesky decompositions
 Package: libqrupdate-dev
 Section: libdevel
 Architecture: any
+Multi-Arch: same
 Depends: libqrupdate1 (= ${binary:Version}), ${misc:Depends}
 Description: Fast updates of QR and Cholesky decompositions -- static library
  qrupdate is a Fortran library for QR and Cholesky decompositions. It
diff --git a/debian/libqrupdate-dev.dirs b/debian/libqrupdate-dev.dirs
deleted file mode 100644
index 6845771..0000000
--- a/debian/libqrupdate-dev.dirs
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib
diff --git a/debian/libqrupdate-dev.install b/debian/libqrupdate-dev.install
old mode 100644
new mode 100755
index 63c0cd6..43d8edd
--- a/debian/libqrupdate-dev.install
+++ b/debian/libqrupdate-dev.install
@@ -1,2 +1,4 @@
-usr/lib/lib*.a
-usr/lib/lib*.so
+#!/usr/bin/dh-exec
+
+usr/lib/${DEB_HOST_MULTIARCH}/lib*.a
+usr/lib/${DEB_HOST_MULTIARCH}/lib*.so
diff --git a/debian/libqrupdate1.dirs b/debian/libqrupdate1.dirs
deleted file mode 100644
index 6845771..0000000
--- a/debian/libqrupdate1.dirs
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib
diff --git a/debian/libqrupdate1.docs b/debian/libqrupdate1.docs
deleted file mode 100644
index 120a067..0000000
--- a/debian/libqrupdate1.docs
+++ /dev/null
@@ -1,2 +0,0 @@
-README
-function-reference
diff --git a/debian/libqrupdate1.install b/debian/libqrupdate1.install
old mode 100644
new mode 100755
index 77b0949..62536c0
--- a/debian/libqrupdate1.install
+++ b/debian/libqrupdate1.install
@@ -1,2 +1,3 @@
-usr/lib/lib*.so.?.?
-usr/lib/lib*.so.?
+#!/usr/bin/dh-exec
+
+usr/lib/${DEB_HOST_MULTIARCH}/lib*.so.*
diff --git a/debian/patches/inject-ldflags.patch b/debian/patches/inject-ldflags.patch
new file mode 100644
index 0000000..b71e168
--- /dev/null
+++ b/debian/patches/inject-ldflags.patch
@@ -0,0 +1,17 @@
+Description: Inject LDFLAGS when linking shared library
+Author: Sébastien Villemot <sebastien at debian.org>
+Forwarded: no
+Last-Update: 2014-02-12
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -47,7 +47,7 @@ solib: ../libqrupdate$(SOEXT)
+ 	ar -cr $@ $(OBJS)
+ 
+ ../libqrupdate.so: $(OBJS)
+-	$(FC) $(FFLAGS) -shared -o $@ -Wl,-soname=libqrupdate.so.$(MAJOR) $(OBJS) \
++	$(FC) $(FFLAGS) $(LDFLAGS) -shared -o $@ -Wl,-soname=libqrupdate.so.$(MAJOR) $(OBJS) \
+ 		$(BLAS) $(LAPACK)
+ 
+ ../libqrupdate.dylib: $(OBJS)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..774e0f7
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+inject-ldflags.patch
diff --git a/debian/rules b/debian/rules
index c65c6b2..37d0d9e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,54 +1,21 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
 
-export PREFIX=$(CURDIR)/debian/tmp/usr
+include /usr/share/dpkg/default.mk
 
-build: build-stamp
-build-stamp: 
-	dh_testdir
-	$(MAKE) lib
-	$(MAKE) solib
-	$(MAKE) test
+%:
+	dh $@
+
+override_dh_auto_build:
+	$(MAKE) lib FFLAGS="$(FFLAGS)" LDFLAGS="$(LDFLAGS)"
+	$(MAKE) solib FFLAGS="$(FFLAGS)" LDFLAGS="$(LDFLAGS)"
+	$(MAKE) test FFLAGS="$(FFLAGS)" LDFLAGS="$(LDFLAGS)"
 
 #extract docs from sources
 	cat src/*.f | perl debian/get-function-ref.pl > function-reference
 
-	touch $@
-
-clean: 
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp configure-stamp
-
+override_dh_auto_clean: 
 	$(MAKE) clean
 	rm -f function-reference
-	dh_clean 
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_prep 
-	dh_installdirs
-	$(MAKE) install
-	dh_install
-
-binary-indep: build install
-
-binary-arch: build install
-	dh_testdir
-	dh_testroot
-	dh_installchangelogs 
-	dh_installdocs -A
-	dh_link
-	dh_makeshlibs
-	dh_strip
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
 
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+override_dh_auto_install:
+	$(MAKE) install DESTDIR=../debian/tmp PREFIX=/usr LIBDIR=lib/$(DEB_HOST_MULTIARCH)

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



More information about the debian-science-commits mailing list