From: Adam Dickmeiss Date: Fri, 13 Sep 2002 20:23:56 +0000 (+0000) Subject: Debian package X-Git-Tag: IRTCL.1.4.1~7 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=2d42edd809ab188892914d042ab1e9b27a89d1b1;p=ir-tcl-moved-to-github.git Debian package --- diff --git a/CHANGELOG b/CHANGELOG index 337ece3..fd2ab00 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,4 @@ -$Id: CHANGELOG,v 1.49 2002-03-20 14:48:54 adam Exp $ +$Id: CHANGELOG,v 1.50 2002-09-13 20:23:56 adam Exp $ 06/19/95 Release of ir-tcl-1.0b ------------------------------------------------------ @@ -151,4 +151,6 @@ $Id: CHANGELOG,v 1.49 2002-03-20 14:48:54 adam Exp $ 12/04/01 Release of ir-tcl-1.4 ------------------------------------------------------ 03/20/02 searchResult method (retrives USR:SearchResult-1 from - SearchResponse) \ No newline at end of file + SearchResponse) + +09/13/02 Debian package. diff --git a/Makefile.in b/Makefile.in index 836d29e..9519782 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,7 +1,7 @@ # IR toolkit for tcl/tk # (c) Index Data 1995-1999 # See the file LICENSE for details. -# $Id: Makefile.in,v 1.57 2001-12-03 19:23:07 adam Exp $ +# $Id: Makefile.in,v 1.58 2002-09-13 20:23:56 adam Exp $ SHELL=/bin/sh # IrTcl Version @@ -21,7 +21,7 @@ BINDIR=$(exec_prefix)/bin LIBDIR=$(exec_prefix)/lib MANDIR=$(prefix)/man INCDIR=$(prefix)/include -IRTCLDIR=$(prefix)/lib/irtcl +IRTCLDIR=$(prefix)/lib/ir-tcl CC=@CC@ diff --git a/configure.in b/configure.in index 7fe3522..795af52 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ dnl IR toolkit for tcl/tk dnl (c) Index Data 1996-2001 dnl See the file LICENSE for details. -dnl $Id: configure.in,v 1.35 2002-09-02 11:19:12 adam Exp $ +dnl $Id: configure.in,v 1.36 2002-09-13 20:23:56 adam Exp $ AC_INIT(ir-tcl.h) dnl ------ Substitutions AC_SUBST(CC) @@ -20,7 +20,7 @@ AC_SUBST(RANLIB) dnl dnl ------ Build root AC_SUBST(build_root) -AC_ARG_WITH(build-root, [ --with-buildroot RPM Build root],[build_root=$withval],[build_root=""]) +AC_ARG_WITH(build-root, [ --with-build-root RPM Build root],[build_root=$withval],[build_root=""]) dnl dnl ------ Preliminary settings AC_PROG_INSTALL diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..b878f0b --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +ir-tcl (1.4-1) unstable; urgency=low + + * First IR Tcl debian package + + -- Adam Dickmeiss Fri, 13 Sep 2002 22:23:33 +0100 + diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..dc8e1dd --- /dev/null +++ b/debian/control @@ -0,0 +1,22 @@ +Source: ir-tcl +Standards-Version: 2.5.0.0 +Maintainer: Adam Dickmeiss +Priority: extra +Build-Depends: yaz-devel (>= 1.9), tcl8.3-dev + +Package: ir-tcl-doc +Section: doc +Architecture: any +Recommends: ir-tcl +Description: Documentation for the IR Tcl. + IR Tcl is a extension for Tcl that offers a Z39.50 client functionality. + . + This package contains documentation for the IR Tcl. + +Package: ir-tcl +Section: net +Architecture: any +Depends: ${shlibs:Depends} +Description: Information Retrieval Toolkit for Tcl. + IR Tcl is a extension for Tcl that offers a Z39.50 client functionality. + diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..8e33304 --- /dev/null +++ b/debian/rules @@ -0,0 +1,122 @@ +#!/usr/bin/make -f +# +# Script for building Zebra from source to .deb-packages. +# +# Created by Adam Dickmeiss, based on script by +# Morten Hendriksen and from Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=2 + +CONFIG_FLAGS=--with-tclconfig=/usr/lib/tcl8.3 --with-yazconfig=/usr/bin --prefix=/usr + +# Enable parallel builds if CONCURRENCY_LEVEL is set +ifdef CONCURRENCY_LEVEL +MCFLAGS=-j$(CONCURRENCY_LEVEL) +else +MCFLAGS= +endif + +IRTCL_VERSION=1.4 +IRTCLDIR?=$(shell pwd) +# If this is not IndexData's release, then it is a cvs-checkout. Go cheat! +# YAZ_VERSION:=$(YAZ_VERSION)-$(shell date -r$(YAZSRCDIR)/CVS +"CVS%Y%m%d") +export IRTCL_VERSION + +# Local library path for linking with right dependencies +LOCAL_LINK=-ldebian/ir-tcl/usr/lib + +configure: configure.in + autoconf + +stamp-configure: configure + dh_testdir + + ./configure $(CONFIG_FLAGS) --with-build-root=$(IRTCLDIR)/debian/tmp + touch stamp-configure + +build: stamp-build +stamp-build: stamp-configure + dh_testdir + + # Add here commands to compile the package. + $(MAKE) $(MCFLAGS) + cd doc; $(MAKE) $(MCFLAGS) + + touch stamp-build + +clean: + dh_testdir + #dh_testroot + -rm -f stamp-* + rm -f *.o *.so *.a config.* irclient + + dh_clean + -rm -rf debian/ir-tcl debian/*.debhelper debian/substvars + +install: stamp-install +stamp-install: stamp-build + dh_testdir + dh_testroot + dh_clean -k -a + dh_installdirs -a + + # Add here commands to install the package into debian/tmp. + -mkdirhier debian/tmp/usr + $(MAKE) install + # $(MAKE) install prefix=`pwd`/debian/tmp/usr + + touch stamp-install + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdocs -p ir-tcl-doc doc/ + dh_installchangelogs -p ir-tcl-doc + dh_link -p ir-tcl-doc + dh_strip -p ir-tcl-doc + dh_compress -p ir-tcl-doc + dh_fixperms -p ir-tcl-doc + dh_gencontrol -p ir-tcl-doc + dh_md5sums -p ir-tcl-doc + + dh_builddeb -p ir-tcl-doc + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_movefiles -p ir-tcl usr/lib/ir-tcl usr/bin + + cp CHANGELOG changelog + cp LICENSE debian/copyright + dh_installdocs --all README changelog debian/copyright + + dh_installchangelogs + dh_link + dh_strip + dh_compress -a + dh_fixperms -a + + dh_installdeb -p irtcl + # dh_undocumented -p ir-tcl.1 + dh_shlibdeps -p ir-tcl + + dh_gencontrol -p ir-tcl + dh_md5sums -p ir-tcl + + # Go kill those CVS-dirs before build + -find debian/tmp -type d -name CVS | xargs rm -rf + # For some reason it is necessary to remove empty-dirs in doc + -rm -rf debian/tmp/usr/include debian/tmp/usr/lib debian/tmp/usr/bin \ + debian/tmp/usr/lib/ir-tcl + + dh_builddeb -p ir-tcl + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install install-stamp configure +