]> www.ginac.de Git - ginac.git/commitdiff
Fixed most bugs with building Debian packages.
authorRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Wed, 31 Jan 2001 21:07:43 +0000 (21:07 +0000)
committerRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Wed, 31 Jan 2001 21:07:43 +0000 (21:07 +0000)
14 files changed:
debian/README.debian [deleted file]
debian/changelog
debian/control
debian/dirs
debian/diversions.ex [deleted file]
debian/ginac-dev.files [new file with mode: 0644]
debian/ginac-doc.files [new file with mode: 0644]
debian/ginac.files
debian/ginac.menu [new file with mode: 0644]
debian/ginaccint.files [new file with mode: 0644]
debian/info.ex [deleted file]
debian/manpage.1.ex [deleted file]
debian/postinst [new file with mode: 0644]
debian/rules

diff --git a/debian/README.debian b/debian/README.debian
deleted file mode 100644 (file)
index 115b30d..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-ginac for Debian
-----------------------
-
-Comments regarding the Package
-
-Richard Kreckel <kreckel@ginac.de>, Mon, 17 Jan 2000 17:00:31 +0100
index 55a8c896659c834b768b2b772ad3c56882b3c49c..8ed6dbe74580fc00bbfbeae0a31ffb3d2230545d 100644 (file)
@@ -1,8 +1,8 @@
-ginac (0.4.1-1) unstable; urgency=low
+ginac (0.7.1-1) unstable; urgency=low
 
 
-  * Initial release.
+  * Initial Debian release.
 
 
- -- Richard Kreckel <kreckel@ginac.de>  Mon, 17 Jan 2000 17:00:31 +0100
+ -- Richard Kreckel <kreckel@ginac.de>  Mon, 31 Jan 2001 17:00:31 +0100
 
 Local variables:
 mode: debian-changelog
 
 Local variables:
 mode: debian-changelog
index 3766e4a25887c1472b83cc20d4a304fa0a123c7f..9be99324aa9271cdf5cde28f69462c113d5c648a 100644 (file)
@@ -1,8 +1,9 @@
 Source: ginac
 Source: ginac
-Section: devel
+Section: math
 Priority: optional
 Maintainer: Richard Kreckel <kreckel@ginac.de>
 Standards-Version: 3.1.1
 Priority: optional
 Maintainer: Richard Kreckel <kreckel@ginac.de>
 Standards-Version: 3.1.1
+Build-Depends: debhelper, libstdc++-dev, cln-dev (>=1.1.0)
 
 Package: ginac
 Architecture: any
 
 Package: ginac
 Architecture: any
@@ -15,7 +16,8 @@ Description: The GiNaC framework (runtime library)
 
 Package: ginac-dev
 Architecture: any
 
 Package: ginac-dev
 Architecture: any
-Depends: ginac, libc6-dev
+Section: devel
+Depends: ginac, libc6-dev, g++ (>=2.95.2), cln-dev (>=1.1.0)
 Recommends: ginac-ginsh
 Suggests: ginac-doc
 Description: The GiNaC framework (development files)
 Recommends: ginac-ginsh
 Suggests: ginac-doc
 Description: The GiNaC framework (development files)
@@ -24,22 +26,22 @@ Description: The GiNaC framework (development files)
  .
  This package provides header files and a static library.
 
  .
  This package provides header files and a static library.
 
-Package: ginac-ginsh
+Package: ginaccint
 Architecture: any
 Architecture: any
-Depends: ginac, libc6-dev
-Description: The GiNaC framework's interactive shell
+Section: devel
+Depends: ginac-dev, cint (>=5.14.62)
+Description: The GiNaC framework's interface with Cint, the C++ interpreter
  GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
  open framework for symbolic computation within the C++ programming language.
  .
  GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
  open framework for symbolic computation within the C++ programming language.
  .
- The ginsh (GiNaC interactive shell) provides a simple and easy to use 
- CAS-like interface for GiNaC's classes.
+ ginaccint provides an interactive symbolic interface with a C++ syntax.
 
 Package: ginac-doc
 Architecture: any
 
 Package: ginac-doc
 Architecture: any
-Depends: ginac, libc6-dev
+Recommends: info | info-browser
 Description: The GiNaC framework (documentation files)
  GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
  open framework for symbolic computation within the C++ programming language.
  .
 Description: The GiNaC framework (documentation files)
  GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra System)") is an
  open framework for symbolic computation within the C++ programming language.
  .
- This package contains the complete documentation including a  tutorial and a
- browsable reference.
\ No newline at end of file
+ This package contains the complete documentation including a tutorial and a
+ browsable reference.
index 6554f708a29e3dfe2f902857fd13a68e572196af..1e1c0088ab1646b1fc72e1673faecd86ab6af4e4 100644 (file)
@@ -1,3 +1,3 @@
 usr/lib
 usr/lib
-usr/include
-usr/share/man/man3
+usr/include/ginac
+usr/share/man/man1
diff --git a/debian/diversions.ex b/debian/diversions.ex
deleted file mode 100644 (file)
index aebbbe5..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<FILE> <Diverted to> <Packagename>
diff --git a/debian/ginac-dev.files b/debian/ginac-dev.files
new file mode 100644 (file)
index 0000000..898ea2e
--- /dev/null
@@ -0,0 +1,6 @@
+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*
diff --git a/debian/ginac-doc.files b/debian/ginac-doc.files
new file mode 100644 (file)
index 0000000..e69de29
index 093956b17518f1129cbb4956eee3e4d422a5a5a9..0af9b4cea33b8aa6307a8b38363bcddd4b1f4183 100644 (file)
@@ -1 +1,2 @@
 usr/lib/*.so.*
 usr/lib/*.so.*
+usr/bin/ginsh
diff --git a/debian/ginac.menu b/debian/ginac.menu
new file mode 100644 (file)
index 0000000..005b393
--- /dev/null
@@ -0,0 +1,2 @@
+?package(ginac):needs=X11|text|vc|wm section=Apps/see-menu-manual\
+  title="GiNaC interactive shell" command="/usr/bin/ginsh"
diff --git a/debian/ginaccint.files b/debian/ginaccint.files
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/debian/info.ex b/debian/info.ex
deleted file mode 100644 (file)
index 76c1e4c..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-# This is a configuration files for installing a .info menu
-# The Description to be placed into the directory
-DESCR="Description"
-
-# The section this info file should be placed in (Regexp) followed by
-# the new section name to be created if the Regexp does not match
-# (Optional. If not given the .info will be appended to the directory)
-#SECTION_MATCH="Regexp"
-#SECTION_NAME="New Section Name"
-
-# The file referred to from the Info directory
-FILE=ginac.info
-
-# Optional. The files to be copied to /usr/share/info
-#FILES=*.info
diff --git a/debian/manpage.1.ex b/debian/manpage.1.ex
deleted file mode 100644 (file)
index 0e3d322..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-.TH NAME SECTION 
-.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection
-.\" other parms are allowed: see man(7), man(1)
-.SH NAME
-ginac \- programs to do something
-.SH SYNOPSIS
-.B ginac
-.I "[options] files ..."
-.br
-.B bar
-.I "[options] files ..."
-.SH "DESCRIPTION"
-This manual page documents briefly the
-.BR ginac ,
-and
-.B bar
-commands.
-This manual page was written for the Debian GNU/Linux distribution
-because the original program does not have a manual page.
-Instead, it has documentation in the GNU Info format; see below.
-.PP
-.B ginac
-is a program that...
-.SH OPTIONS
-The programs follow the usual GNU command line syntax, with long
-options starting with two dashes (`-').
-A summary of options are included below.
-For a complete description, see the Info files.
-.TP
-.B \-h, \-\-help
-Show summary of options.
-.TP
-.B \-v, \-\-version
-Show version of program.
-.SH "SEE ALSO"
-The programs are documented fully by
-.IR "The Rise and Fall of a Fooish Bar" ,
-available via the Info system.
-.SH AUTHOR
-This manual page was written by Richard Kreckel <kreckel@ginac.de>,
-for the Debian GNU/Linux system (but may be used by others).
diff --git a/debian/postinst b/debian/postinst
new file mode 100644 (file)
index 0000000..2b08c9f
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+set -e
+
+ldconfig
+#DEBHELPER#
index e6493b5b2f3c869350829d17e51f0116222c7576..eec20aea89b1765d996a2172af55587a9dc8529b 100755 (executable)
@@ -9,24 +9,8 @@ version_major=$(shell expr `pwd` : '.*-\([0-9]*\).[0-9.]*')
 
 build:
        dh_testdir
 
 build:
        dh_testdir
-       ./configure --prefix=/usr
-
-       -mkdir shared static
-       #
-       # First build the shared library
-       #
-       cd shared ; \
-           $(MAKE) -f ../Makefile VPATH=".." srcdir=".." \
-               CFLAGS="-O2 -fPIC -pipe" ; \
-           gcc -shared -Wl,-soname,$(package).so.$(version_major) -o $(package).so.$(version) `ls *.o`
-       #
-       # Build the static library (it does not need Position Independent Code,
-       # which reserves one register; thus, without -fPIC we get more efficient
-       # code).
-       #
-       cd static ; \
-            $(MAKE) -f ../Makefile VPATH=".." srcdir=".." \
-                 CFLAGS="-O2 -pipe" LDFLAGS="-s" progs
+       ./configure --without-cint --prefix=/usr
+       $(MAKE) CXXFLAGS="-O2"
        touch build
 
 clean:
        touch build
 
 clean:
@@ -40,27 +24,29 @@ clean:
 
 binary-indep: build
        dh_testdir
 
 binary-indep: build
        dh_testdir
-# There are no architecture-independent files to be uploaded
-# generated by this package.  If there were any they would be
-# made here.
+       dh_testroot
 
 binary-arch: build
        dh_testdir
 
 binary-arch: build
        dh_testdir
-       -rm -rf debian/tmp `find debian/* -type d`
-       install -d debian/tmp
-       cd debian/tmp && install -d `cat ../dirs`
-       install -m644 static/$(package).a debian/tmp/usr/lib/
-       install -m644 static/gdbm.h dbm.h ndbm.h debian/tmp/usr/include/
-       install -m644 gdbm.3 debian/tmp/usr/share/man/man3/gdbm.3gdbm
-
-       install -m644 shared/$(package).so.$(version) debian/tmp/usr/lib
-
-       $(MAKE) install prefix=`pwd`/debian/tmp/usr
-       debstd -m ChangeLog NEWS README 
-       dpkg-gencontrol -pginac1-dev
-       chown -R root.root debian/tmp
-       chmod -R go=rX debian/tmp
-       dpkg --build debian/tmp ..
+       dh_testroot
+       dh_installdirs
+       # When will Automake honor FHS?
+       $(MAKE) install prefix=`pwd`/debian/tmp/usr infodir=`pwd`/debian/tmp/usr/share/info mandir=`pwd`/debian/tmp/usr/share/man
+       dh_installdocs ChangeLog NEWS README
+       dh_installchangelogs
+       dh_installmenu
+       dh_movefiles -pginac-dev -pginac-doc
+       if test -f cint/ginaccint.bin; then dh_movefiles -pginaccint; fi
+       dh_strip
+       dh_compress
+       dh_fixperms
+       dh_shlibdeps
+       dh_gencontrol
+       dh_makeshlibs
+       dh_installdeb
+       dh_md5sums
+       dh_builddeb -pginac -pginac-dev -pginac-doc
+       if test -f cint/ginaccint.bin; then dh_builddeb -pginaccint; fi
 
 binary: binary-indep binary-arch
 
 
 binary: binary-indep binary-arch