From 312b062f7f49207a16776c19d3a1bfb4a49c2f3b Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Wed, 31 Jan 2001 21:07:43 +0000 Subject: [PATCH] Fixed most bugs with building Debian packages. --- debian/README.debian | 6 ----- debian/changelog | 6 ++--- debian/control | 22 ++++++++-------- debian/dirs | 4 +-- debian/diversions.ex | 1 - debian/ginac-dev.files | 6 +++++ debian/ginac-doc.files | 0 debian/ginac.files | 1 + debian/ginac.menu | 2 ++ debian/ginaccint.files | 0 debian/info.ex | 15 ----------- debian/manpage.1.ex | 41 ----------------------------- debian/postinst | 5 ++++ debian/rules | 58 ++++++++++++++++-------------------------- 14 files changed, 53 insertions(+), 114 deletions(-) delete mode 100644 debian/README.debian delete mode 100644 debian/diversions.ex create mode 100644 debian/ginac-dev.files create mode 100644 debian/ginac-doc.files create mode 100644 debian/ginac.menu create mode 100644 debian/ginaccint.files delete mode 100644 debian/info.ex delete mode 100644 debian/manpage.1.ex create mode 100644 debian/postinst diff --git a/debian/README.debian b/debian/README.debian deleted file mode 100644 index 115b30db..00000000 --- a/debian/README.debian +++ /dev/null @@ -1,6 +0,0 @@ -ginac for Debian ----------------------- - -Comments regarding the Package - -Richard Kreckel , Mon, 17 Jan 2000 17:00:31 +0100 diff --git a/debian/changelog b/debian/changelog index 55a8c896..8ed6dbe7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Mon, 17 Jan 2000 17:00:31 +0100 + -- Richard Kreckel Mon, 31 Jan 2001 17:00:31 +0100 Local variables: mode: debian-changelog diff --git a/debian/control b/debian/control index 3766e4a2..9be99324 100644 --- a/debian/control +++ b/debian/control @@ -1,8 +1,9 @@ Source: ginac -Section: devel +Section: math Priority: optional Maintainer: Richard Kreckel Standards-Version: 3.1.1 +Build-Depends: debhelper, libstdc++-dev, cln-dev (>=1.1.0) Package: ginac Architecture: any @@ -15,7 +16,8 @@ Description: The GiNaC framework (runtime library) 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) @@ -24,22 +26,22 @@ Description: The GiNaC framework (development files) . This package provides header files and a static library. -Package: ginac-ginsh +Package: ginaccint 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. . - 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 -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. . - 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. diff --git a/debian/dirs b/debian/dirs index 6554f708..1e1c0088 100644 --- a/debian/dirs +++ b/debian/dirs @@ -1,3 +1,3 @@ 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 index aebbbe5d..00000000 --- a/debian/diversions.ex +++ /dev/null @@ -1 +0,0 @@ - diff --git a/debian/ginac-dev.files b/debian/ginac-dev.files new file mode 100644 index 00000000..898ea2e0 --- /dev/null +++ b/debian/ginac-dev.files @@ -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 index 00000000..e69de29b diff --git a/debian/ginac.files b/debian/ginac.files index 093956b1..0af9b4ce 100644 --- a/debian/ginac.files +++ b/debian/ginac.files @@ -1 +1,2 @@ usr/lib/*.so.* +usr/bin/ginsh diff --git a/debian/ginac.menu b/debian/ginac.menu new file mode 100644 index 00000000..005b3932 --- /dev/null +++ b/debian/ginac.menu @@ -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 index 00000000..e69de29b diff --git a/debian/info.ex b/debian/info.ex deleted file mode 100644 index 76c1e4c8..00000000 --- a/debian/info.ex +++ /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 index 0e3d3228..00000000 --- a/debian/manpage.1.ex +++ /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 , -for the Debian GNU/Linux system (but may be used by others). diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 00000000..2b08c9fa --- /dev/null +++ b/debian/postinst @@ -0,0 +1,5 @@ +#!/bin/sh +set -e + +ldconfig +#DEBHELPER# diff --git a/debian/rules b/debian/rules index e6493b5b..eec20aea 100755 --- a/debian/rules +++ b/debian/rules @@ -9,24 +9,8 @@ version_major=$(shell expr `pwd` : '.*-\([0-9]*\).[0-9.]*') 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: @@ -40,27 +24,29 @@ clean: 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 - -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 -- 2.47.0