File xiphos.spec of Package xiphos
#
# spec file for package xiphos
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: xiphos
Version: 3.1.4
Release: 1
License: GPL-2.0
Summary: GNOME-based Bible research tool
Url: http://xiphos.org/
Group: Productivity/Scientific/Other
Source0: xiphos-20111010svn4310.tar.bz2
Source1: %{name}.desktop
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gettext-devel
BuildRequires: glibc-devel
BuildRequires: gnome-doc-utils-devel
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(glib-2.0)
%if 0%{?suse_version} <= 1130
BuildRequires: gnome-spell2
%endif
BuildRequires: gtkhtml2-devel
BuildRequires: intltool
BuildRequires: libMagick++-devel
BuildRequires: libbonobo-devel
BuildRequires: libcurl-devel
BuildRequires: libgnomeui-devel
BuildRequires: libgsf-devel
BuildRequires: libidn-devel
BuildRequires: libwebkitgtk3-devel
BuildRequires: pcre-devel
BuildRequires: perl-XML-Parser
BuildRequires: scrollkeeper
BuildRequires: sword-devel
BuildRequires: xorg-x11-libXdmcp-devel
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libglade-2.0)
Recommends: sword-bible
Recommends: sword-commentary
Provides: sword-frontend
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Bible Study Software for the Linux community. Lookup and search Bible texts and
commentaries. Xiphos uses modules and libraries from the SWORD Project.
Display multiple translations in the interlinear window. Search for passages in
any translation by word, phrase, or regular expression. Install this package
if you want to browse the Bible translations and reference works distributed
by Crosswire Bible Society through the SWORD Project.
%prep
%setup -q -n xiphos-svn4310
%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
./waf configure --prefix=%{_prefix} --backend=webkit --gtk=3
./waf build
%install
./waf install --destdir=%{buildroot}
install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
%if 0%{?suse_version}
%suse_update_desktop_file -n %{buildroot}%{_datadir}/applications/%{name}.desktop
%endif
mkdir -p %{buildroot}%_defaultdocdir/%{name}
mv %{buildroot}%{_datadir}/doc/%{name}/* %{buildroot}%_defaultdocdir/%{name}/
rmdir %{buildroot}%{_datadir}/doc/%{name}
install -Dm644 xiphos.1 %{buildroot}%{_mandir}/man1/xiphos.1
%find_lang %{name}
%fdupes -s %{buildroot}
%clean
rm -rf %{buildroot}
%post
%if 0%{?suse_version} > 1130
%icon_theme_cache_post
%endif
%postun
%if 0%{?suse_version} > 1130
%icon_theme_cache_postun
%endif
%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README RELEASE-NOTES TODO TRANSLATION-HOWTO
%dir %{_datadir}/%{name}
%{_bindir}/xiphos*
%{_datadir}/xiphos/*
%{_datadir}/icons/hicolor/scalable/apps/*
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/*
%changelog