-dnl Zebra, Index Data Aps, 1994-2002
-dnl $Id: configure.in,v 1.36 2002-04-08 19:52:29 adam Exp $
+dnl Zebra, Index Data Aps, 1994-2000
+dnl $Id: configure.in,v 1.29.2.1 2002-04-09 14:55:40 adam Exp $
dnl
AC_INIT(include/zebraver.h)
AC_MSG_CHECKING(for package)
AC_MSG_RESULT([Z'mbol])
PROGPREFIX=zmbol
AC_DEFINE(ZMBOL,1)
- AM_INIT_AUTOMAKE(zmbol,1.2.0)
+ AM_INIT_AUTOMAKE(zmbol,1.1.1)
else
AC_MSG_RESULT([Zebra])
PROGPREFIX=zebra
AC_DEFINE(ZMBOL,0)
- AM_INIT_AUTOMAKE(zebra,1.2.0)
+ AM_INIT_AUTOMAKE(zebra,1.1.1)
+ if test ! -r ${srcdir}/isam; then
+ mkdir ${srcdir}/isam
+ fi
+ touch ${srcdir}/isam/Makefile.in
+ if test ! -r ${srcdir}/isamc; then
+ mkdir ${srcdir}/isamc
+ fi
+ touch ${srcdir}/isamc/Makefile.in
+ if test ! -r ${srcdir}/isamb; then
+ mkdir ${srcdir}/isamb
+ fi
+ touch ${srcdir}/isamb/Makefile.in
fi
AM_CONDITIONAL(ISZMBOL,test $PACKAGE = zmbol)
dnl ------ Substitutions
+AC_SUBST(DEFS)
AC_SUBST(TCL_INCLUDE)
AC_SUBST(TCL_LIB)
AC_SUBST(PROGPREFIX)
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_RANLIB
-dnl
-dnl ----- DOCBOOK DTD
-AC_SUBST(DTD_DIR)
-AC_ARG_WITH(dtd, [ --with-dtd[=DIR] Use docbookx.dtd in DIR],
-[
- if test -f "$withval/docbookx.dtd"; then
- DTD_DIR=$withval
- fi
-],[
- AC_MSG_CHECKING(for docbookx.dtd)
- for d in /usr/share/sgml/docbook/dtd/xml/4.1.2 \
- /usr/share/sgml/docbook/xml-dtd-4.1.2 \
- /usr/share/sgml/docbook/dtd/xml/4.0 \
- /usr/lib/sgml/dtd/docbook-xml
- do
- if test -f $d/docbookx.dtd; then
- AC_MSG_RESULT($d)
- DTD_DIR=$d
- break
- fi
- done
- if test -z "$DTD_DIR"; then
- AC_MSG_RESULT(Not found)
- fi
-])
-AC_SUBST(DSSSL_DIR)
-AC_ARG_WITH(dsssl,[ --with-dsssl[=DIR] Use DSSSL in DIR/{html,print}/docbook.dsl],
-[
- if test -f "$withval/html/docbook.dsl"; then
- DSSSL_DIR=$withval
- fi
-],[
- AC_MSG_CHECKING(for docbook.dsl)
- for d in /usr/share/sgml/docbook/stylesheet/dsssl/modular \
- /usr/share/sgml/docbook/dsssl-stylesheets-1.64 \
- /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh
- do
- if test -f $d/html/docbook.dsl; then
- AC_MSG_RESULT($d)
- DSSSL_DIR=$d
- break
- fi
- done
- if test -z "$DSSSL_DIR"; then
- AC_MSG_RESULT(Not found)
- fi
-])
-dnl
+
YAZ_INIT(threads)
dnl
dnl ------ Look for Tcl
if test -r ${tclconfig}/../generic/tcl.h; then
TCL_INCLUDE=-I${tclconfig}/../generic
TCL_LIB="$TCL_BUILD_LIB_SPEC $TCL_LIBS"
- elif test -d ${TCL_PREFIX}/include/tcl${TCL_VERSION}; then
- TCL_INCLUDE=-I${TCL_PREFIX}/include/tcl${TCL_VERSION}
- TCL_LIB="$TCL_LIB_SPEC $TCL_LIBS"
- else
+ else
TCL_INCLUDE=-I${TCL_PREFIX}/include
TCL_LIB="$TCL_LIB_SPEC $TCL_LIBS"
fi
dnl
dnl ------ times
AC_CHECK_HEADERS(sys/times.h)
-dnl ------ mkstemp
-AC_CHECK_FUNCS(mkstemp)
dnl
dnl ------- BZIP2
AC_CHECK_LIB(bz2,bzCompressInit)
include/Makefile
tab/Makefile
doc/Makefile
- doc/zebra.xml
- doc/zebrahtml.dsl
- doc/zebraprint.dsl
- doc/zebraphp.dsl
- test/Makefile test/gils/Makefile test/usmarc/Makefile test/api/Makefile
+ test/Makefile test/gils/Makefile test/usmarc/Makefile
])
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: marcread.c,v $
- * Revision 1.12 2002-04-09 14:36:53 adam
- * Fix XML attributes for MARC reader
+ * Revision 1.11.2.1 2002-04-09 14:55:40 adam
+ * Fix attributes for MARC reader
*
* Revision 1.11 2000/05/15 15:32:51 adam
* Added support for 64 bit input file support.
res->which = DATA1N_tag;
res->u.tag.tag = res->lbuf;
res->u.tag.get_bytes = -1;
-#if DATA1_USING_XATTR
- res->u.tag.attributes = 0;
-#endif
if (len >= DATA1_LOCALDATA)
len = DATA1_LOCALDATA-1;
+#if DATA1_USING_XATTR
+ res->u.tag.attributes = 0;
+#endif
memcpy (res->u.tag.tag, tag, len);
res->u.tag.tag[len] = '\0';
--- /dev/null
+Name: zmbol
+Version: 1.1.1
+Release: 1
+Requires: yaz
+Copyright: Commercial
+Group: Applications/Databases
+Vendor: Index Data ApS <info@indexdata.dk>
+Source: zmbol-%{version}.tar.gz
+BuildRoot: /var/tmp/%{name}-%{version}-root
+Packager: Adam Dickmeiss <adam@indexdata.dk>
+URL: http://www.indexdata.dk/zmbol/
+Summary: Z'mbol: a fielded free-text engine with a Z39.50 frontend.
+
+%description
+Zmbol is a fielded free-text indexing and retrieval engine with a Z39.50
+frontend. You can use any compatible, commercial or freeware Z39.50 client to
+access data stored in Zmbol.
+
+%prep
+%setup
+
+%build
+
+CFLAGS="$RPM_OPT_FLAGS" \
+ ./configure --prefix=/usr --with-yazconfig=/usr/bin
+make CFLAGS="$RPM_OPT_FLAGS"
+
+%install
+rm -fr $RPM_BUILD_ROOT
+make prefix=$RPM_BUILD_ROOT/usr install
+cd doc; make prefix=$RPM_BUILD_ROOT/usr install
+
+%files
+%defattr(-,root,root)
+%doc README LICENSE.zmbol CHANGELOG
+%config /usr/share/zmbol/tab
+/usr/bin/zmbolsrv
+/usr/bin/zmbolidx
+/usr/share/zmbol/doc