[bibutils] 04/10: debian/rules: adapt to upstream build changes

David Bremner bremner at debian.org
Sun Aug 11 12:36:37 UTC 2013


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

bremner pushed a commit to annotated tag debian/5.0-1
in repository bibutils.

commit f8bdf14ba99cbd725bbfef6aaa78c152b0a256a5
Author: David Bremner <bremner at debian.org>
Date:   Sat Aug 10 15:28:33 2013 +0200

    debian/rules: adapt to upstream build changes
    
    - define some variables.
    - use target realclean
    - update sed hack
    
    fixup for rules patch
---
 debian/rules |   18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/debian/rules b/debian/rules
index b7fe7f7..1c0f311 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,8 +3,10 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-DATE=$(shell sed -n 's/^DATE=\(.*\)/\1/p' Makefile_start)
-VERSION=$(shell sed -n 's/^VERSION=\(.*\)/\1/p' Makefile_start)
+DATE=$(shell sed -n 's/^DATE\s*=\s*\(.*\)/\1/p' Makefile_start)
+MAJORVERSION=$(shell sed -n 's/^MAJORVERSION\s*=\s*\(.*\)/\1/p' Makefile_start)
+MINORVERSION=$(shell sed -n 's/^MINORVERSION\s*=\s*\(.*\)/\1/p' Makefile_start)
+VERSION       = ${MAJORVERSION}.${MINORVERSION}
 
 DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
 XP=xsltproc -''-nonet
@@ -26,11 +28,11 @@ override_dh_auto_configure:
 	@echo building bibutils $(VERSION), upstream date $(DATE)
 
 override_dh_auto_build:
-	$(MAKE) -C lib -f Makefile.dynamic SONAME=$(SONAME) SOMINOR=$(SOMINOR) all
+	$(MAKE) -C lib -f Makefile.dynamic LIBTARGETIN=libbibutils.so CFLAGSIN=-fPIC SONAME=$(SONAME) SOMINOR=$(SOMINOR) all
 	$(MAKE) -C bin -f Makefile.dynamic VERSION=$(VERSION) DATE=$(DATE) all
 	# this relies on target clean not removing the shared libs
 	$(MAKE) -C lib -f Makefile.static clean
-	$(MAKE) -C lib -f Makefile.static libbibutils.a libbibcore.a
+	$(MAKE) -C lib -f Makefile.static RANLIB=ranlib libbibutils.a libbibcore.a
 	$(XP) -o bibutils.1 $(DB2MAN) bibutils.dbk
 	sed 's/VERSION/${VERSION}/g' packageconfig_start > lib/bibutils.pc
 
@@ -40,3 +42,11 @@ override_dh_auto_install:
 override_dh_auto_test:
 	make -C test all
 	make -C test test
+
+override_dh_auto_clean:
+	make -C lib -f Makefile.dynamic realclean
+	make -C bin -f Makefile.dynamic realclean
+	make -C test -f Makefile.dynamic realclean
+
+
+

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



More information about the debian-science-commits mailing list