From: Adam Dickmeiss Date: Thu, 6 Apr 2000 09:03:27 +0000 (+0000) Subject: Added zmbol spec file. X-Git-Tag: ZEBRA.1.1~81 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=87515c8d89b4b0e3ceadac4bded487efa099a94e Added zmbol spec file. --- diff --git a/Makefile.am b/Makefile.am index 0d41f00..2232779 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -## $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 @@ -16,6 +16,7 @@ SPEC_FILE=$(PACKAGE).spec 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 \ diff --git a/Makefile.in b/Makefile.in index e75cf9b..0cd4ffe 100644 --- a/Makefile.in +++ b/Makefile.in @@ -336,6 +336,7 @@ maintainer-clean-generic clean mostlyclean distclean maintainer-clean 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 \ diff --git a/doc/Makefile.am b/doc/Makefile.am index 20c2709..d0aa299 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,9 +1,13 @@ -# $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 diff --git a/doc/Makefile.in b/doc/Makefile.in index ac68481..82b95d0 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -10,7 +10,7 @@ # 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@ @@ -77,11 +77,15 @@ yazconfig = @yazconfig@ 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 @@ -98,6 +102,25 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) 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: @@ -133,19 +156,20 @@ installcheck: installcheck-am 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: @@ -175,12 +199,12 @@ maintainer-clean-am: maintainer-clean-generic distclean-am 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 diff --git a/index/Makefile.am b/index/Makefile.am index 045a022..772aad7 100644 --- a/index/Makefile.am +++ b/index/Makefile.am @@ -1,7 +1,9 @@ -## $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 \ diff --git a/index/Makefile.in b/index/Makefile.in index 17b76a5..824a050 100644 --- a/index/Makefile.in +++ b/index/Makefile.in @@ -72,7 +72,9 @@ VERSION = @VERSION@ 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 @@ -89,7 +91,7 @@ INCLUDES = -I$(srcdir)/../include @YAZINC@ LDADD = @SUBLIBS@ @YAZLIB@ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_CLEAN_FILES = -PROGRAMS = $(bin_PROGRAMS) +PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS) CPPFLAGS = @CPPFLAGS@ LDFLAGS = @LDFLAGS@ @@ -107,12 +109,6 @@ zmbolidx_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 \ @@ -126,6 +122,12 @@ zebraidx_LDFLAGS = 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) @@ -144,8 +146,8 @@ DEP_FILES = .deps/apitest.P .deps/attribute.P .deps/compact.P \ .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: @@ -183,6 +185,15 @@ uninstall-binPROGRAMS: 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 $< @@ -207,10 +218,6 @@ zmbolsrv: $(zmbolsrv_OBJECTS) $(zmbolsrv_DEPENDENCIES) @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) @@ -219,6 +226,10 @@ zebrasrv: $(zebrasrv_OBJECTS) $(zebrasrv_DEPENDENCIES) @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) @@ -336,22 +347,25 @@ distclean-generic: -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 @@ -362,6 +376,8 @@ maintainer-clean: maintainer-clean-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 \ diff --git a/zmbol.spec b/zmbol.spec new file mode 100644 index 0000000..ec3ae6d --- /dev/null +++ b/zmbol.spec @@ -0,0 +1,39 @@ +Name: zmbol +Version: 1.1 +Release: 1 +Requires: yaz +Copyright: Commercial +Group: Applications/Databases +Vendor: Index Data ApS +Source: zmbol-%{version}.tar.gz +BuildRoot: /var/tmp/%{name}-%{version}-root +Packager: Adam Dickmeiss +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