[Pkg-scicomp-devel] arpack++/trunk/debian

Christophe Prud'homme prudhomm at debian.org
Fri Mar 14 06:47:13 UTC 2008


SVN commit 2276 by prudhomm:

port to cdbs and simplify build

 M  +1 -1      arpack++/trunk/debian/control  
 M  +32 -72    arpack++/trunk/debian/rules  


--- arpack++/trunk/debian/control #2275:2276
@@ -2,7 +2,7 @@
 Homepage: http://ljk.imag.fr/membres/Christophe.Prudhomme/software.php
 Section: devel
 Priority: optional
-Build-Depends: debhelper ( >> 4.1.0 ), g++ (>= 4.1), gfortran, libblas-dev, liblapack-dev, libarpack2-dev, chrpath
+Build-Depends: cdbs, debhelper ( >> 4.1.0 ), g++ (>= 4.1), gfortran, libblas-dev, liblapack-dev, libarpack2-dev, chrpath
 Maintainer: Debian Scientific Computing Team <pkg-scicomp-devel at lists.alioth.debian.org>
 Uploaders: Christophe Prud'homme <prudhomm at debian.org>
 Standards-Version: 3.7.3
--- arpack++/trunk/debian/rules #2275:2276
@@ -1,85 +1,45 @@
 #!/usr/bin/make -f
-# Made with the aid of debmake, by Christoph Lameter,
-# based on the sample debian/rules file for GNU hello by Ian Jackson.
 
-# This is the debhelper compatibility version to use.
-export DH_COMPAT=4
 
-# This has to be exported to make some magic below work.
-export DH_OPTIONS
+DEB_AUTO_CLEANUP_RCS            := yes
+DEB_BUILDDIR 			:= $(DEB_SRCDIR)/
+DEB_CONFIGURE_SCRIPT		:= $(DEB_SRCDIR)/configure
+DEB_MAKE_CLEAN_TARGET    := clean
+DEB_MAKE_BUILD_TARGET    := default
+DEB_COMPRESS_EXCLUDE     := .pdf
+DEB_MAKE_INSTALL_TARGET = install $(DEB_DESTDIR)
 
-export DEBIANDIR=`echo $$PWD/debian`
+DEB_INSTALL_EXAMPLES_libarpack++2-dev:=examples/*
 
-# test with gcc-snapshot
-#export CC=/usr/lib/gcc-snapshot/bin/gcc
-#export CXX=/usr/lib/gcc-snapshot/bin/g++
 
-package=arpack++
+include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
 
-version=$(shell expr `pwd` : '.*-\([0-9.]*\)')
-version_major=$(shell expr `pwd` : '.*-\([0-9]*\).[0-9.]*')
+DEB_BUILDDIR 			:= $(DEB_SRCDIR)/
+DEB_CONFIGURE_SCRIPT		:= $(CURDIR)/configure
 
-build:
-	$(checkdir)
-# fix wrong timestamp in almost all README (1945, 1967 ...)
-	-find . -name README  | xargs touch
-	./configure --prefix=/usr --includedir=/usr/include/arpack++
-	make
-	chrpath -d src/.libs/libarpack++.so.2
-	touch build
+DEB_CONFIGURE_EXTRA_FLAGS :=       \
+  --host=$(DEB_HOST_GNU_TYPE)      \
+  --build=$(DEB_BUILD_GNU_TYPE)    \
+  --prefix=/usr                    \
+  --mandir=\$${prefix}/share/man   \
+  --infodir=\$${prefix}/share/info \
+  --includedir=/usr/include/arpack++
 
-install: build 
-	dh_testdir
-	dh_testroot
-	dh_clean -k
-	dh_installdirs
-	-mkdir debian/tmp
-	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install 
 
+#CXX=/usr/lib/gcc-snapshot/bin/g++
+#CC=/usr/lib/gcc-snapshot/bin/gcc
+CFLAGS= -O3
+CXXFLAGS= -O3
+FFLAGS= -O3
 
-clean:
-	$(checkdir)
-	-rm -f build
-	-rm -f `find . -name "*~"`
-	-rm -rf debian/tmp `find debian/* -type d ! -name CVS` debian/files* core
-	-rm -f debian/*substvars
-	-make distclean
+orig-tarball:
+	mkdir tmp; \
+	cd tmp; \
+	wget http://ljk.imag.fr/membres/Christophe.Prudhomme/software/arpack++-2.2.tar.gz; \
+	mv arpack++-2.2.tar.gz ../arpack++_2.2.orig.tar.gz; \
+	cd ..; \
+	rmdir tmp
 
-binary-indep: checkroot 
-	$(checkdir)
-# There are no architecture-independent files to be uploaded
-# generated by this package.  If there were any they would be
-# made here.
 
-binary-arch: install 
-	$(checkdir)
-
-	dh_install --sourcedir=debian/tmp --list-missing 
-#	dh_installdocs -plibarpack++2-dev doc/arpackpp.ps.gz  doc/bugs.txt  doc/install.txt  doc/structure.txt Makefile.inc
-	dh_installexamples -plibarpack++2-dev -X.svn -X.deps examples/*
-	dh_installdocs -A
-	dh_installchangelogs -A
-	dh_link 
-	dh_strip
-	dh_compress 
-	dh_fixperms
-	dh_makeshlibs -V 
-	dh_installdeb
-	dh_makeshlibs
-	dh_shlibdeps -L libarpack++ -l debian/libarpack++2/usr/lib
-	dh_gencontrol
-	dh_md5sums 
-	dh_builddeb
-
-
-define checkdir
-	test -f debian/rules
-endef
-
-binary: binary-indep binary-arch
-
-checkroot:
-	$(checkdir)
-	test root = "`whoami`"
-
-.PHONY: binary binary-arch binary-indep clean checkroot



More information about the Pkg-scicomp-devel mailing list