- Importing new files for packaging Debian GNU/Linux packages.
authorRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Mon, 17 Jan 2000 19:45:57 +0000 (19:45 +0000)
committerRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Mon, 17 Jan 2000 19:45:57 +0000 (19:45 +0000)
debian/README.debian [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/dirs [new file with mode: 0644]
debian/diversions.ex [new file with mode: 0644]
debian/ginac-ginsh.menu [new file with mode: 0644]
debian/ginac.files [new file with mode: 0644]
debian/info.ex [new file with mode: 0644]
debian/manpage.1.ex [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/debian/README.debian b/debian/README.debian
new file mode 100644 (file)
index 0000000..115b30d
--- /dev/null
@@ -0,0 +1,6 @@
+ginac for Debian
+----------------------
+
+Comments regarding the Package
+
+Richard Kreckel <kreckel@ginac.de>, Mon, 17 Jan 2000 17:00:31 +0100
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..55a8c89
--- /dev/null
@@ -0,0 +1,9 @@
+ginac (0.4.1-1) unstable; urgency=low
+
+  * Initial release.
+
+ -- Richard Kreckel <kreckel@ginac.de>  Mon, 17 Jan 2000 17:00:31 +0100
+
+Local variables:
+mode: debian-changelog
+End:
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..8306c9d
--- /dev/null
@@ -0,0 +1,45 @@
+Source: ginac
+Section: devel
+Priority: optional
+Maintainer: Richard Kreckel <kreckel@ginac.de>
+Standards-Version: 3.1.1
+
+Package: ginac
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: The GiNaC framework (runtime library)
+ GiNaC stands for "GiNaC is Not a CAS (Computer Algebra System)".  It is an 
+ open framework for symbolic computation within the C++ programming language.
+ .
+ See <http://www.ginac.de/> for detailed information.
+
+Package: ginac-dev
+Architecture: any
+Depends: ginac, libc6-dev
+Recommends: ginac-ginsh
+Suggests: ginac-doc
+Description: The GiNaC framework (development files)
+ GiNaC stands for "GiNaC is Not a CAS (Computer Algebra System)".  It is an 
+ open framework for symbolic computation within the C++ programming language.
+ .
+ This package provides header files and a static library.
+
+Package: ginac-ginsh
+Architecture: any
+Depends: ginac, libc6-dev
+Description: The GiNaC framework's interactive shell
+ GiNaC stands for "GiNaC is Not a CAS (Computer Algebra System)".  It 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.
+
+Package: ginac-doc
+Architecture: any
+Depends: ginac, libc6-dev
+Description: The GiNaC framework (documentation files)
+ GiNaC stands for "GiNaC is Not a CAS (Computer Algebra System)".  It 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
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..120f712
--- /dev/null
@@ -0,0 +1,8 @@
+This package was debianized by Richard Kreckel kreckel@ginac.de on
+Mon, 17 Jan 2000 17:00:31 +0100.
+
+It was downloaded from <http://www.ginac.de/>
+
+Copyright:
+
+GPL (see /usr/share/common-licenses/GPL)
diff --git a/debian/dirs b/debian/dirs
new file mode 100644 (file)
index 0000000..6554f70
--- /dev/null
@@ -0,0 +1,3 @@
+usr/lib
+usr/include
+usr/share/man/man3
diff --git a/debian/diversions.ex b/debian/diversions.ex
new file mode 100644 (file)
index 0000000..aebbbe5
--- /dev/null
@@ -0,0 +1 @@
+<FILE> <Diverted to> <Packagename>
diff --git a/debian/ginac-ginsh.menu b/debian/ginac-ginsh.menu
new file mode 100644 (file)
index 0000000..177d359
--- /dev/null
@@ -0,0 +1,2 @@
+?package(ginac-ginsh):needs=X11|text|vc|wm section=Apps/see-menu-manual\
+  title="GiNaC interactive shell" command="/usr/bin/ginsh"
diff --git a/debian/ginac.files b/debian/ginac.files
new file mode 100644 (file)
index 0000000..093956b
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/*.so.*
diff --git a/debian/info.ex b/debian/info.ex
new file mode 100644 (file)
index 0000000..76c1e4c
--- /dev/null
@@ -0,0 +1,15 @@
+# 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
new file mode 100644 (file)
index 0000000..0e3d322
--- /dev/null
@@ -0,0 +1,41 @@
+.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/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..e6493b5
--- /dev/null
@@ -0,0 +1,67 @@
+#!/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.
+
+package=ginac
+
+version=$(shell expr `pwd` : '.*-\([0-9.]*\)')
+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
+       touch build
+
+clean:
+       dh_testdir
+       dh_clean
+       -rm -f build
+       -$(MAKE) distclean
+       -rm -f `find . -name "*~"`
+       -rm -rf debian/tmp `find debian/* -type d ! -name CVS` debian/files* core
+       -rm -f debian/*substvars
+
+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.
+
+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 ..
+
+binary: binary-indep binary-arch
+
+.PHONY: binary binary-arch binary-indep clean