I am still building my own RPMs for sword.  My .spec file moves the developer
files to a sword-devel package.  These are not needed by end users - and are
the bulk of the package (4 megs worth installed!).  Prior to 1.5.3, I had a
sword-apps package as well, which included cheatah.  Cheatah no longer builds
"out of the box" for 1.5.3, so I have dropped it since the various GUI front
ends are quite stable and readily available now.

I am attaching my .spec file because I really think the devel files should
have their own package.  The spec file in the tarball hasn't been updated
since 1.4.5!

My spec includes the man pages and html docs with the devel package in
/usr/share/doc/sword-devel-1.5.3.  Should the man pages be installed in
/usr/share/man/man3?  There a lot of them.

-- 
                        Stuart D. Gathman <[EMAIL PROTECTED]>
      Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
                "Microsoft is the QWERTY of Operating Systems" - SDG
      "Confutatis maledictis, flamis acribus addictis" - background song for
      a Microsoft sponsored "Where do you want to go from here?" commercial.
  (HINT: The song is "Dies Irae" from the Mozart Requiem.)
Summary:        The SWORD Project framework for manipulating Bible texts
Name:           sword
%define version 1.5.3
Version:        %{version}
Release:        3
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.5/sword-%{version}.tar.gz

Group:          System Environment/Libraries
BuildRoot:      /var/tmp/sword-root

%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

%description devel
Include files and static libraries for developing sword applications.

#%package apps
#Summary: "cheatah" is a simple bible search application.
#Group: Applications/Text

#%description apps
#"cheatah" is a simple X11 GUI bible search application.

%prep
%setup -q

%build
export PATH=/usr/bin:/bin
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
export LDFLAGS='-s'
./configure --disable-dependency-tracking --prefix=/usr --sysconfdir=/etc
#make debug=no buildshare=yes
#make -C apps/console/diatheke
#cd apps/X11/cheatah
#sh ./configure
make

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR="$RPM_BUILD_ROOT"
mkdir -p $RPM_BUILD_ROOT/usr/lib/sword
cp utilities/.libs/* $RPM_BUILD_ROOT/usr/lib/sword
exit 0

%post devel -p /sbin/ldconfig

%postun devel -p /sbin/ldconfig

%files 
%defattr(-,root,root)
%config /etc/sword.conf
%config /usr/share/sword/mods.d/globals.conf
%config /usr/share/sword/locales.d/*.conf
%doc README AUTHORS NEWS INSTALL
/usr/lib/libsword.so*
/usr/bin/diatheke
/usr/lib/sword

%files devel
%defattr(-,root,root)
%doc doc/*
/usr/include/sword
/usr/lib/libsword.*a

#%files apps
#%defattr(-,root,root)
#/usr/bin/cheatah

%changelog
* Mon May 20 2002 Stuart Gathman <[EMAIL PROTECTED]>
- Version 1.5.3
* Wed Dec 19 2001 Stuart Gathman <[EMAIL PROTECTED]>
- add additional utilities, move to /usr/lib/sword
* Thu Dec 13 2001 Stuart Gathman <[EMAIL PROTECTED]>
- add locales config
* Sat Jan 20 2001 Stuart Gathman <[EMAIL PROTECTED]>
- mkfastmod and other utilities
* Thu Nov 30 2000 Stuart Gathman <[EMAIL PROTECTED]>
- cheatah application
* Fri Nov 17 2000 Stuart Gathman <[EMAIL PROTECTED]>
- initial release

Reply via email to