[sword-cvs] sword sword.spec,1.1,1.2

sword@www.crosswire.org sword@www.crosswire.org
Mon, 12 Jan 2004 10:22:07 -0700


Update of /cvs/core/sword
In directory www:/tmp/cvs-serv4632

Modified Files:
	sword.spec 
Log Message:
update to the sword.spec RPM file (by jansorg)

Index: sword.spec
===================================================================
RCS file: /cvs/core/sword/sword.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- sword.spec	17 Oct 1999 10:00:06 -0000	1.1
+++ sword.spec	12 Jan 2004 17:22:04 -0000	1.2
@@ -1,92 +1,90 @@
 Summary:	The SWORD Project framework for manipulating Bible texts
 Name:		sword
-Version:	1.4.5
+%define version 1.5.7
+Version:	%{version}
 Release:	1
-Icon:		sword.gif
+#Icon:		sword.gif
 Copyright:	GPL
 Packager:	CrossWire Bible Society
-URL:		http://www.crosswire.org
-Source:		http://www.crosswire.org/download/ftpmirror.tmp/pub/sword/source/v1.4/sword-1.4.5.tar.gz
-Group:		Libraries
+URL:		http://www.crosswire.org/sword
+Source:		http://www.crosswire.org/download/ftpmirror.tmp/pub/sword/source/v1.5/sword-%{version}.tar.gz
+Group:		System Environment/Libraries
+BuildRoot:	/var/tmp/sword-root
+Requires:	curl
+Requires:	zlib
+# Requires:	icu >= 2.6
+# Patch0:		sword-patch-curl.diff
 
-%description 
-The SWORD Project is an effort to create an ever expanding software package for research and study of God and His Word.  The SWORD Bible Framework allows easy manipulation of Bible texts, commentaries, lexicons, dictionaries, etc.  Many frontends are build using this framework.  An installed module set may be shared between any frontend using the framework.
+%description
+The SWORD Project is an effort to create an ever expanding software package for research and study of God and His Word.
+The SWORD Bible Framework allows easy manipulation of Bible texts, commentaries, lexicons, dictionaries, etc.  Many frontends are build using this framework.
+An installed module set may be shared between any frontend using the framework.
 
+%package devel
+Summary: Include files and static libraries for developing sword applications.
+Group: Development/Libraries
+Requires:	sword = 1.5.7
+Requires:	curl-devel >= 7.10.5
+Requires:	zlib-devel
 
-%prep
-%setup -n sword
+%description devel
+Include files and static libraries for developing sword applications. This package is required to compile Sword frontends, too.
 
+%prep
+%setup -q
+# %patch0 -p1
 
 %build
+export CFLAGS="$RPM_OPT_FLAGS"
+export CXXFLAGS="$RPM_OPT_FLAGS"
+export LDFLAGS='-s'
+ ./usrinst.sh --disable-dependency-tracking --prefix=/usr --sysconfdir=/etc --enable-utilities --with-curl --disable-debug --enable-shared --with-conf
+make
 
 %install
+rm -rf $RPM_BUILD_ROOT
+make install-strip DESTDIR="$RPM_BUILD_ROOT"
+make install_config DESTDIR="$RPM_BUILD_ROOT"
+mkdir -p $RPM_BUILD_ROOT/usr/lib/sword
+exit 0
 
-%files 
+%post devel -p /sbin/ldconfig
+
+%postun devel -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root)
 %config /etc/sword.conf
-/usr/bin/cheatah
-%doc /usr/doc/sword/INSTALL
-%doc /usr/doc/sword/LICENSE
-%doc /usr/doc/sword/README
-%doc /usr/doc/sword/samples/mods.conf.large
-%doc /usr/doc/sword/samples/mods.conf.small
-%doc /usr/doc/sword/samples/mods.d/globals.conf
-%doc /usr/doc/sword/samples/mods.d/rwp.conf
-%doc /usr/doc/sword/samples/mods.d/strongsnt.conf
-%doc /usr/doc/sword/samples/mods.d/strongsot.conf
-%doc /usr/doc/sword/samples/mods.d/vines.conf
-%doc /usr/doc/sword/samples/mods.d/web.conf
-%doc /usr/doc/sword/samples/mods.d/websters.conf
-/usr/include/sword/Greek2Greek.h
-/usr/include/sword/GreekChars.h
-/usr/include/sword/canon.h
-/usr/include/sword/cipherfil.h
-/usr/include/sword/echomod.h
-/usr/include/sword/femain.h
-/usr/include/sword/filemgr.h
-/usr/include/sword/gbffootnotes.h
-/usr/include/sword/gbfhtml.h
-/usr/include/sword/gbfplain.h
-/usr/include/sword/gbfrtf.h
-/usr/include/sword/gbfstrongs.h
-/usr/include/sword/hrefcom.h
-/usr/include/sword/listkey.h
-/usr/include/sword/plainhtml.h
-/usr/include/sword/rawcom.h
-/usr/include/sword/rawfiles.h
-/usr/include/sword/rawgbf.h
-/usr/include/sword/rawld.h
-/usr/include/sword/rawstr.h
-/usr/include/sword/rawtext.h
-/usr/include/sword/rawverse.h
-/usr/include/sword/regex.h
-/usr/include/sword/rwphtml.h
-/usr/include/sword/rwprtf.h
-/usr/include/sword/sapphire.h
-/usr/include/sword/strkey.h
-/usr/include/sword/swcipher.h
-/usr/include/sword/swcom.h
-/usr/include/sword/swcomprs.h
-/usr/include/sword/swconfig.h
-/usr/include/sword/swdisp.h
-/usr/include/sword/swdisprtf.h
-/usr/include/sword/swdisprtfchap.h
-/usr/include/sword/swfilter.h
-/usr/include/sword/swkey.h
-/usr/include/sword/swld.h
-/usr/include/sword/swlog.h
-/usr/include/sword/swmacs.h
-/usr/include/sword/swmgr.h
-/usr/include/sword/swmodule.h
-/usr/include/sword/swtext.h
-/usr/include/sword/swwinlog.h
-/usr/include/sword/tbdisp.h
-/usr/include/sword/unixstr.h
-/usr/include/sword/utilconf.h
-/usr/include/sword/utilfuns.h
-/usr/include/sword/utilstr.h
-/usr/include/sword/versekey.h
-/usr/include/sword/zcom.h
-/usr/include/sword/ztext.h
-/usr/lib/libsword.a
-/usr/lib/libsword.so
 %config /usr/share/sword/mods.d/globals.conf
+%config /usr/share/sword/locales.d/*.conf
+%doc README AUTHORS NEWS INSTALL
+/usr/lib/libsword*.so*
+#Available when ICU is used in Sword
+# /usr/lib/sword
+
+%files devel
+%defattr(-,root,root)
+%doc doc/*
+/usr/include/sword
+/usr/lib/libsword*.*a
+/usr/bin/*
+
+%changelog
+* Mon Dec 27 2003 Joachim Ansorg <junkmail@joachim.ansorgs.de>
+- Version 1.5.7
+- Added a patch to make installmgr work on Curl version 7.10.5
+- We require libcurl now
+* Mon May 20 2002 Joachim Ansorg <junkmail@joachim.ansorgs.de>
+- Version 1.5.6
+* Mon May 20 2002 Stuart Gathman <stuart@bmsi.com>
+- Version 1.5.3
+* Wed Dec 19 2001 Stuart Gathman <stuart@bmsi.com>
+- add additional utilities, move to /usr/lib/sword
+* Thu Dec 13 2001 Stuart Gathman <stuart@bmsi.com>
+- add locales config
+* Sat Jan 20 2001 Stuart Gathman <stuart@bmsi.com>
+- mkfastmod and other utilities
+* Thu Nov 30 2000 Stuart Gathman <stuart@bmsi.com>
+- cheatah application
+* Fri Nov 17 2000 Stuart Gathman <stuart@bmsi.com>
+- initial release