Blob Blame History Raw
Summary:	BibleTime is an easy to use Bible study tool for KDE
Name:		bibletime
Version:	1.6.2
Release:	2%{?dist}
License:	GPL
Url:		http://www.bibletime.info/
Group:		Applications/Productivity
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Patch0:		bibletime-desktop.patch
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:	sword-devel >= 1.5.9 clucene-core-devel >= 0.9.15 kdelibs-devel
BuildRequires:	desktop-file-utils gettext

%description
BibleTime is a free and easy to use bible study tool for UNIX systems.

BibleTime provides easy handling of digitalized texts (Bibles,
commentaries and lexicons) and powerful features to work with these
texts (search in texts, write own notes, save, print etc.).
BibleTime is a frontend for the  SWORD Bible Framework.

%prep

%setup -q
%patch0 -p0 -b .desk

%build
%configure --disable-rpath
make %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}

make DESTDIR=%{buildroot} install

desktop-file-install --vendor="" \
	--dir=%{buildroot}%{_datadir}/applications \
	--delete-original \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

chmod 0644 %{buildroot}%{_datadir}/apps/bibletime/bibletimeui.rc
chmod 0644 %{buildroot}%{_datadir}/apps/bibletime/tips

%find_lang bibletime || touch bibletime.lang
HTML_DIR=$(kde-config --expandvars --install html)
if [ -d %{buildroot}$HTML_DIR ]; then
	for lang_dir in %{buildroot}$HTML_DIR/* ; do
		lang=$(basename $lang_dir)
		echo "%lang($lang) %doc $HTML_DIR/$lang/*" >> bibletime.lang
	done
fi

%clean
%{__rm} -rf %{buildroot}

%post
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :

%postun
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :

%files -f bibletime.lang
%defattr(-,root,root,-)
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/apps/%{name}/
%{_datadir}/icons/hicolor/*/*
%{_includedir}/bibletimeinterface.h
%doc README LICENSE

%changelog
* Fri Jan 12 2007 David Anderson <fedora-packaging@dw-perspective.org.uk> 1.6.2-2
- Cleanups (thanks to Deji Akingunola)

* Fri Jan 12 2007 David Anderson <fedora-packaging@dw-perspective.org.uk> 1.6.2-1
- First attempt for Fedora Extras
- (Credits to Joachim Ansorg and Brook Humphrey for previous
- version from bibletime tarball)