-## $Id: Makefile.am,v 1.1 2000-04-05 09:49:35 adam Exp $
+## $Id: Makefile.am,v 1.2 2000-04-06 09:03:27 adam Exp $
AUTOMAKE_OPTIONS=foreign
dist-hook:
cd doc; make
cp $(srcdir)/LICENSE* $(distdir)
+ cp $(srcdir)/*.spec $(distdir)
mkdir $(distdir)/win
for i in $(srcdir)/win/*; do \
if test -f $$i; then \
dist-hook:
cd doc; make
cp $(srcdir)/LICENSE* $(distdir)
+ cp $(srcdir)/*.spec $(distdir)
mkdir $(distdir)/win
for i in $(srcdir)/win/*; do \
if test -f $$i; then \
-# $Id: Makefile.am,v 1.1 2000-04-05 09:49:35 adam Exp $
+# $Id: Makefile.am,v 1.2 2000-04-06 09:03:28 adam Exp $
docdir=$(pkgdatadir)/doc
-doc_data = zebra.sgml gils.sgml
+doc_DATA = zebra.sgml gils.sgml zebra.txt zebra.ps zebra.html \
+ zebra-1.html zebra-2.html zebra-3.html zebra-4.html zebra-5.html \
+ zebra-6.html zebra-7.html zebra-8.html zebra-9.html
-EXTRA_DIST = zebra.sgml gils.sgml
+EXTRA_DIST = zebra.sgml gils.sgml zebra.txt zebra.ps zebra.html \
+ zebra-1.html zebra-2.html zebra-3.html zebra-4.html zebra-5.html \
+ zebra-6.html zebra-7.html zebra-8.html zebra-9.html
zebra.txt: zebra.sgml
sgml2txt -f zebra.sgml
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
-# $Id: Makefile.in,v 1.1 2000-04-05 09:55:44 adam Exp $
+# $Id: Makefile.in,v 1.2 2000-04-06 09:03:28 adam Exp $
SHELL = @SHELL@
docdir = $(pkgdatadir)/doc
-doc_data = zebra.sgml gils.sgml
+doc_DATA = zebra.sgml gils.sgml zebra.txt zebra.ps zebra.html zebra-1.html zebra-2.html zebra-3.html zebra-4.html zebra-5.html zebra-6.html zebra-7.html zebra-8.html zebra-9.html
+
+
+EXTRA_DIST = zebra.sgml gils.sgml zebra.txt zebra.ps zebra.html zebra-1.html zebra-2.html zebra-3.html zebra-4.html zebra-5.html zebra-6.html zebra-7.html zebra-8.html zebra-9.html
-EXTRA_DIST = zebra.sgml gils.sgml
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES =
+DATA = $(doc_DATA)
+
DIST_COMMON = README Makefile.am Makefile.in
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
+
+install-docDATA: $(doc_DATA)
+ @$(NORMAL_INSTALL)
+ $(mkinstalldirs) $(DESTDIR)$(docdir)
+ @list='$(doc_DATA)'; for p in $$list; do \
+ if test -f $(srcdir)/$$p; then \
+ echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(docdir)/$$p"; \
+ $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(docdir)/$$p; \
+ else if test -f $$p; then \
+ echo " $(INSTALL_DATA) $$p $(DESTDIR)$(docdir)/$$p"; \
+ $(INSTALL_DATA) $$p $(DESTDIR)$(docdir)/$$p; \
+ fi; fi; \
+ done
+
+uninstall-docDATA:
+ @$(NORMAL_UNINSTALL)
+ list='$(doc_DATA)'; for p in $$list; do \
+ rm -f $(DESTDIR)$(docdir)/$$p; \
+ done
tags: TAGS
TAGS:
install-exec-am:
install-exec: install-exec-am
-install-data-am:
+install-data-am: install-docDATA
install-data: install-data-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-am
-uninstall-am:
+uninstall-am: uninstall-docDATA
uninstall: uninstall-am
-all-am: Makefile
+all-am: Makefile $(DATA)
all-redirect: all-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
installdirs:
+ $(mkinstalldirs) $(DESTDIR)$(docdir)
mostlyclean-generic:
maintainer-clean: maintainer-clean-am
-.PHONY: tags distdir info-am info dvi-am dvi check check-am \
-installcheck-am installcheck install-exec-am install-exec \
-install-data-am install-data install-am install uninstall-am uninstall \
-all-redirect all-am all installdirs mostlyclean-generic \
-distclean-generic clean-generic maintainer-clean-generic clean \
-mostlyclean distclean maintainer-clean
+.PHONY: uninstall-docDATA install-docDATA tags distdir info-am info \
+dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
+install-exec install-data-am install-data install-am install \
+uninstall-am uninstall all-redirect all-am all installdirs \
+mostlyclean-generic distclean-generic clean-generic \
+maintainer-clean-generic clean mostlyclean distclean maintainer-clean
zebra.txt: zebra.sgml
-## $Id: Makefile.am,v 1.1 2000-04-05 09:59:42 adam Exp $
+## $Id: Makefile.am,v 1.2 2000-04-06 09:03:28 adam Exp $
+
+noinst_PROGRAMS = apitest
if ISZMBOL
-bin_PROGRAMS = zmbolidx zmbolsrv apitest
+bin_PROGRAMS = zmbolidx zmbolsrv
zmbolidx_SOURCES = main.c dir.c dirs.c trav.c extract.c kinput.c kcompare.c \
symtab.c recindex.c recstat.c lockutil.c lockidx.c \
zinfo.c invstat.c sortidx.c compact.c \
YAZINC = @YAZINC@
YAZLIB = @YAZLIB@
yazconfig = @yazconfig@
-@ISZMBOL_TRUE@bin_PROGRAMS = zmbolidx zmbolsrv apitest
+
+noinst_PROGRAMS = apitest
+@ISZMBOL_TRUE@bin_PROGRAMS = zmbolidx zmbolsrv
@ISZMBOL_FALSE@bin_PROGRAMS = zebraidx zebrasrv
@ISZMBOL_TRUE@zmbolidx_SOURCES = main.c dir.c dirs.c trav.c extract.c kinput.c kcompare.c symtab.c recindex.c recstat.c lockutil.c lockidx.c zinfo.c invstat.c sortidx.c compact.c index.h recindex.h recindxp.h zebraapi.h zinfo.h zserver.h
LDADD = @SUBLIBS@ @YAZLIB@
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES =
-PROGRAMS = $(bin_PROGRAMS)
+PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
zmbolsrv_LDADD = $(LDADD)
zmbolsrv_DEPENDENCIES =
zmbolsrv_LDFLAGS =
-apitest_OBJECTS = apitest.o kcompare.o zrpn.o zsets.o attribute.o \
-recindex.o lockutil.o locksrv.o zinfo.o trunc.o sortidx.o rank1.o \
-zebraapi.o retrieve.o kinput.o
-apitest_LDADD = $(LDADD)
-apitest_DEPENDENCIES =
-apitest_LDFLAGS =
@ISZMBOL_FALSE@zebraidx_OBJECTS = main.o dir.o dirs.o trav.o extract.o \
@ISZMBOL_FALSE@kinput.o kcompare.o symtab.o recindex.o recstat.o \
@ISZMBOL_FALSE@lockutil.o lockidx.o zinfo.o invstat.o sortidx.o \
zebrasrv_LDADD = $(LDADD)
zebrasrv_DEPENDENCIES =
zebrasrv_LDFLAGS =
+apitest_OBJECTS = apitest.o kcompare.o zrpn.o zsets.o attribute.o \
+recindex.o lockutil.o locksrv.o zinfo.o trunc.o sortidx.o rank1.o \
+zebraapi.o retrieve.o kinput.o
+apitest_LDADD = $(LDADD)
+apitest_DEPENDENCIES =
+apitest_LDFLAGS =
CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
.deps/recstat.P .deps/retrieve.P .deps/sortidx.P .deps/symtab.P \
.deps/trav.P .deps/trunc.P .deps/zebraapi.P .deps/zinfo.P .deps/zrpn.P \
.deps/zserver.P .deps/zsets.P
-SOURCES = $(zmbolidx_SOURCES) $(zmbolsrv_SOURCES) $(apitest_SOURCES) $(zebraidx_SOURCES) $(zebrasrv_SOURCES)
-OBJECTS = $(zmbolidx_OBJECTS) $(zmbolsrv_OBJECTS) $(apitest_OBJECTS) $(zebraidx_OBJECTS) $(zebrasrv_OBJECTS)
+SOURCES = $(zmbolidx_SOURCES) $(zmbolsrv_SOURCES) $(zebraidx_SOURCES) $(zebrasrv_SOURCES) $(apitest_SOURCES)
+OBJECTS = $(zmbolidx_OBJECTS) $(zmbolsrv_OBJECTS) $(zebraidx_OBJECTS) $(zebrasrv_OBJECTS) $(apitest_OBJECTS)
all: all-redirect
.SUFFIXES:
rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
done
+mostlyclean-noinstPROGRAMS:
+
+clean-noinstPROGRAMS:
+ -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
+
+distclean-noinstPROGRAMS:
+
+maintainer-clean-noinstPROGRAMS:
+
.s.o:
$(COMPILE) -c $<
@rm -f zmbolsrv
$(LINK) $(zmbolsrv_LDFLAGS) $(zmbolsrv_OBJECTS) $(zmbolsrv_LDADD) $(LIBS)
-apitest: $(apitest_OBJECTS) $(apitest_DEPENDENCIES)
- @rm -f apitest
- $(LINK) $(apitest_LDFLAGS) $(apitest_OBJECTS) $(apitest_LDADD) $(LIBS)
-
zebraidx: $(zebraidx_OBJECTS) $(zebraidx_DEPENDENCIES)
@rm -f zebraidx
$(LINK) $(zebraidx_LDFLAGS) $(zebraidx_OBJECTS) $(zebraidx_LDADD) $(LIBS)
@rm -f zebrasrv
$(LINK) $(zebrasrv_LDFLAGS) $(zebrasrv_OBJECTS) $(zebrasrv_LDADD) $(LIBS)
+apitest: $(apitest_OBJECTS) $(apitest_DEPENDENCIES)
+ @rm -f apitest
+ $(LINK) $(apitest_LDFLAGS) $(apitest_OBJECTS) $(apitest_LDADD) $(LIBS)
+
tags: TAGS
ID: $(HEADERS) $(SOURCES) $(LISP)
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
maintainer-clean-generic:
-mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \
- mostlyclean-tags mostlyclean-depend mostlyclean-generic
+mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-noinstPROGRAMS \
+ mostlyclean-compile mostlyclean-tags mostlyclean-depend \
+ mostlyclean-generic
mostlyclean: mostlyclean-am
-clean-am: clean-binPROGRAMS clean-compile clean-tags clean-depend \
- clean-generic mostlyclean-am
+clean-am: clean-binPROGRAMS clean-noinstPROGRAMS clean-compile \
+ clean-tags clean-depend clean-generic mostlyclean-am
clean: clean-am
-distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \
- distclean-depend distclean-generic clean-am
+distclean-am: distclean-binPROGRAMS distclean-noinstPROGRAMS \
+ distclean-compile distclean-tags distclean-depend \
+ distclean-generic clean-am
distclean: distclean-am
maintainer-clean-am: maintainer-clean-binPROGRAMS \
+ maintainer-clean-noinstPROGRAMS \
maintainer-clean-compile maintainer-clean-tags \
maintainer-clean-depend maintainer-clean-generic \
distclean-am
.PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
+mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \
+clean-noinstPROGRAMS maintainer-clean-noinstPROGRAMS \
mostlyclean-compile distclean-compile clean-compile \
maintainer-clean-compile tags mostlyclean-tags distclean-tags \
clean-tags maintainer-clean-tags distdir mostlyclean-depend \
--- /dev/null
+Name: zmbol
+Version: 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