[sword-devel] intro & rpm spec file

Michael A. Peters sword-devel@crosswire.org
Mon, 05 Apr 2004 18:58:07 -0700

Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Mon, 2004-04-05 at 18:56, Michael A. Peters wrote:

> Attached is a spec file I wrote that works very well.

Woops - attached now ;)

Content-Disposition: attachment; filename=sword.spec
Content-Type: text/plain; name=sword.spec; charset=utf-8
Content-Transfer-Encoding: 7bit

%define name sword
%define ver 1.5.7
%define rel 1
%define epo 0

%define __ldconfig /sbin/ldconfig

# set to 1 to utilize clucene
%define lucene_support 0

# prevent creation of package if unpackaged files
%define _unpackaged_files_terminate_build 1

%if %{lucene_support}
%define lucene_option --with-lucene
%define lucene_option --without-lucene

Name: %{name}
Version: %{ver}
Release: %{rel}
Epoch: %{epo}
Summary: Free Bible Software Project
License: GPL
Group: System Environment/Libraries
Packager: Michael A. Peters <mpeters@mac.com>
Url: http://www.crosswire.org/sword/
Source0: %{name}-%{ver}.tar.gz
BuildRoot: %_tmppath/%{name}-%{ver}-root
Requires: %__ldconfig
BuildRequires: openssl-devel
BuildRequires: curl-devel
BuildRequires: zlib-devel
%if %{lucene_support}
BuildRequires: clucine-devel
Requires: clucine
Requires: openssl
Requires: curl
Requires: zlib

The SWORD Project is the CrossWire Bible Society's free Bible
software project. Its purpose is to create cross-platform open-
source tools-- covered by the GNU General Public License-- that
allow programmers and Bible societies to write new Bible
software more quickly and easily. We also create Bible study
software for all readers, students, scholars, and translators
of the Bible, and have a growing collection of over 200 texts
in over 50 languages.

%package devel
Summary: sword devel files
License: GPL
Group: Development/Libraries
Requires: %{name} = %{epo}:%{ver}
Requires: openssl-devel
Requires: curl-devel
Requires: zlib-devel
%if %{lucene_support}
Requires: clucine

%description devel
This package includes the header files and static libraries that are needed to build software against the sword API. You do not need this package unless you plan to compile sword related software yourself.

%__rm -rf %buildroot && %__mkdir_p %buildroot

%setup -q

%configure %{lucene_option}

%__mkdir_p %buildroot%_datadir/sword/modules

%__rm -rf %buildroot

%config(noreplace) %_sysconfdir/sword.conf
%attr(0755,root,root) %dir %_libdir/sword

%files devel



* Sat Apr 03 2004 Michael A. Peters <mpeters@mac.com>
- updated version, with support for clucene

* Sun Sep 07 2003 Michael A. Peters <mpeters@mac.com>
- updated version, cleaned up spec file

* Sat Jun 21 2003 Michael A. Peters <mpeters@mac.com>
- Created initial spec file