Updated Debian configuration [A.Sheplyakov].
authorJens Vollinga <vollinga@thep.physik.uni-mainz.de>
Fri, 8 Jul 2005 14:34:10 +0000 (14:34 +0000)
committerJens Vollinga <vollinga@thep.physik.uni-mainz.de>
Fri, 8 Jul 2005 14:34:10 +0000 (14:34 +0000)
debian/control
debian/docs [deleted file]
debian/ginac-tools.files [deleted file]
debian/libginac-dev.dirs [deleted file]
debian/libginac-dev.files [deleted file]
debian/libginac1.4.dirs [deleted file]
debian/libginac1.4.files [deleted file]
debian/rules
debian/shlibs [deleted file]

index 9bac442..c150920 100644 (file)
@@ -2,7 +2,7 @@ Source: ginac
 Section: math
 Priority: optional
 Maintainer: Richard Kreckel <kreckel@ginac.de>
-Build-Depends: debhelper (>= 4.0.0), libcln-dev, libgmp3-dev, libreadline5-dev, flex, bison
+Build-Depends: cdbs (>= 0.4.28), debhelper (>= 4.0.0), libcln-dev, libgmp3-dev, libreadline5-dev, flex, bison
 Standards-Version: 3.6.1
 
 Package: libginac1.4
@@ -22,7 +22,7 @@ Package: libginac-dev
 Architecture: any
 Section: libdevel
 Depends: libginac1.4 (= ${Source-Version}), libc6-dev, g++, libcln-dev
-Recommends: info | info-browser
+Recommends: info | info-browser, libginac1.4-dbg (= ${Source-Version})
 Suggests: ginac-tools
 Description: The GiNaC framework (development files)
  GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is a
@@ -44,3 +44,20 @@ Description: Some tools for the GiNaC framework
  This package provides some additional tools, like the popular ginsh (GiNaC
  interactive shell) and viewgar (for inspecting GiNaC archive files).  See
  <http://www.ginac.de/> for detailed information about GiNaC.
+
+Package: libginac1.4-dbg
+Architecture: any
+Section: libdevel
+Depends: libginac1.4 (= ${Source-Version})
+Recommends: gdb (>= 6.3)
+Description: The GiNaC framework (debugging symbols)
+ GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is a
+ library for doing symbolic (i.e. non-numeric) computation directly in the C++
+ programming language.
+ .
+ This package provides unstripped shared object with debugging symbols. The
+ library is installed in /usr/lib/debug and will be automatically used by
+ gdb while debugging programs using the GiNaC library. Most people will not
+ need this package. For detailed information about GiNaC see
+ <http://www.ginac.de/>
+
diff --git a/debian/docs b/debian/docs
deleted file mode 100644 (file)
index eb9b151..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-NEWS
-README
-AUTHORS
diff --git a/debian/ginac-tools.files b/debian/ginac-tools.files
deleted file mode 100644 (file)
index ef6dee2..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-usr/bin/ginsh
-usr/bin/viewgar
-usr/share/man/man1/ginsh*
-usr/share/man/man1/viewgar*
-usr/share/pixmaps/ginac.xpm
diff --git a/debian/libginac-dev.dirs b/debian/libginac-dev.dirs
deleted file mode 100644 (file)
index 74413e9..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-usr/include/ginac
-usr/share/info
-usr/share/aclocal
-usr/lib/pkgconfig
diff --git a/debian/libginac-dev.files b/debian/libginac-dev.files
deleted file mode 100644 (file)
index bd88e77..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-usr/lib/libginac.la
-usr/lib/libginac.a
-usr/lib/libginac.so
-usr/include/ginac
-usr/bin/ginac-config
-usr/share/man/man1/ginac-config*
-usr/share/info/ginac*
-usr/share/aclocal/ginac.m4
-usr/lib/pkgconfig/ginac.pc
diff --git a/debian/libginac1.4.dirs b/debian/libginac1.4.dirs
deleted file mode 100644 (file)
index 6845771..0000000
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib
diff --git a/debian/libginac1.4.files b/debian/libginac1.4.files
deleted file mode 100644 (file)
index 9a5c1be..0000000
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/libginac*.so.*
index 2582622..752daba 100755 (executable)
@@ -1,86 +1,20 @@
 #!/usr/bin/make -f
+include /usr/share/cdbs/1/rules/buildcore.mk
+include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+export DH_COMPAT
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-# This is the debhelper compatability version to use.
-export DH_COMPAT=4
-# This has to be exported to make some magic below work.
-export DH_OPTIONS
-
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-       export CXXFLAGS = -O0
-else
-       export CXXFLAGS = -O2 -finline-limit=1200
-endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-       INSTALL_PROGRAM += -s
+ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+       CXXFLAGS += -finline-limit=1200
 endif
 
-config.status: configure
-       dh_testdir
-       # Add here commands to configure the package.
-       # The Makefile is removed on error in order to prevent the build at this early stage.
-       ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info || rm -f Makefile
-
-build: build-arch
-
-build-arch: build-arch-stamp
-build-arch-stamp:  config.status
-       # Add here commands to compile the arch part of the package.
-       $(MAKE)
-
-clean:
-       dh_testdir
-       dh_testroot
-       rm -f build-arch-stamp config-stamp
-       -$(MAKE) distclean
-       dh_clean
-
-install: install-arch
-install-arch:
-       dh_testdir
-       dh_testroot
-       dh_clean -k -a
-       dh_installdirs -a
-       # Add here commands to install the arch part of the package into 
-       # debian/tmp.
-       $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
-       mkdir -p $(CURDIR)/debian/tmp/usr/share/pixmaps
-       cp $(CURDIR)/debian/ginac.xpm $(CURDIR)/debian/tmp/usr/share/pixmaps/
-
-# Must not depend on anything. This is to be called by
-# binary-arch/binary-multi
-# in another 'make' thread.
-binary-common:
-       dh_testdir
-       dh_testroot
-       dh_installdocs
-       dh_installmenu
-       dh_installman
-       dh_installinfo
-       dh_installchangelogs ChangeLog
-       dh_movefiles
-       dh_link
-       dh_strip
-       dh_compress
-       dh_fixperms
-       dh_makeshlibs
-       dh_shlibdeps --libpackage=libginac1.4 -l debian/libginac1.4/usr/lib
-       dh_gencontrol
-       dh_installdeb
-       dh_md5sums
-       dh_builddeb
+# 1.4.1-1-blah (Debian version) ==> 1.4 (LT_RELEASE)
+GINAC_RELEASE := $(shell echo $(DEB_VERSION) | cut -f 1,2 -d . )
+GINACLIB := libginac$(GINAC_RELEASE)
 
-# Build architecture dependant packages using the common target.
-binary-arch: build-arch install-arch
-       $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
+DEB_DH_MAKESHLIBS_ARGS := -V"$(GINACLIB) (>= $(GINAC_RELEASE).0)"
+DEB_DH_SHLIBDEPS_ARGS := --libpackage=$(GINACLIB) -l debian/$(GINACLIB)/usr/lib
+DEB_DH_STRIP_ARGS := --dbg-package=$(GINACLIB)
+# menu entry for ginsh
+DEB_INSTALL_MENU_ginac-tools := debian/ginac-tools.menu
 
-binary: binary-arch
-.PHONY: build clean binary-arch binary install install-arch 
diff --git a/debian/shlibs b/debian/shlibs
deleted file mode 100644 (file)
index f42657f..0000000
+++ /dev/null
@@ -1 +0,0 @@
-libginac-1.4   0       libginac1.4 (>= 1.4.0)