4
Summary: Bible study and research tool
6
Group: Applications/Text
8
URL: http://xiphos.sourceforge.net/
9
Source0: http://downloads.sourceforge.net/gnomesword/xiphos-%{version}.tar.gz
10
Source1: %name-%version.tar.gz
11
#Patch0: path-nspr.patch
12
BuildRoot: %{_tmppath}/%{name}-%{version}-build
14
BuildRequires: sword-devel >= 1.5.11
15
BuildRequires: gettext
16
BuildRequires: desktop-file-utils
17
BuildRequires: gnome-doc-utils
18
BuildRequires: libgsf-devel
19
BuildRequires: perl(XML::Parser) intltool
20
BuildRequires: gcc-c++
21
BuildRequires: pkgconfig
24
Obsoletes: gnomesword < 2.4.2
25
Provides: gnomesword = %{version}-%{release}
26
BuildRequires: scrollkeeper
28
%if 0%{?rhel_version} || 0%{?centos_version}
29
BuildRequires: libgnomeprintui22-devel
30
%if 0%{?rhel_version} != 406
31
BuildRequires: dbus-glib-devel
36
BuildRequires: libgnomeprintui22-devel
37
BuildRequires: rarian-compat
38
%if 0%{?fedora version} >= 15
39
BuildRequires: gtk3-devel
40
BuildRequires: gtkhtml3-devel
41
Requires: webkitgtk >= 1.3
42
BuildRequires: webkitgtk-devel >= 1.3
44
BuildRequires: gtk2-devel
45
BuildRequires: gtkhtml2-devel
46
Requires: webkitgtk >= 1.2
47
BuildRequires: webkitgtk-devel >= 1.2
51
# Breaking dependency chain on Buildservice
52
# It's not actually buildrequires
53
# You can set "Prefer: package" using
54
# osc meta prjconf PROJECT instead of these
57
BuildRequires: pulseaudio-esound-compat
59
%if 0%{?mandriva_version} == 201000
60
Prefer: PolicyKit-gnome
62
# End break dependencies
64
%if 0%{?mandriva_version}
65
BuildRequires: libdbus-glib-devel
68
BuildRequires: lib64gtkhtml-3.14-devel
69
BuildRequires: lib64gtkhtml-3.14-devel
70
BuildRequires: lib64webkitgtk1.0-devel
72
BuildRequires: libgtkhtml-3.14-devel
73
BuildRequires: libgtkhtml-3.14-devel
74
BuildRequires: libwebkitgtk1.0-devel
78
# If compiling for SuSE Development version (will be 12.1), this next line should be changed to
79
# >= 1140 because the development version still returns 1140 for %{?suse_version}
80
%if 0%{?suse_version} > 1140
81
BuildRequires: gtkhtml-devel
82
BuildRequires: gtk3-devel
84
BuildRequires: gtkhtml2-devel
85
BuildRequires: gtk2-devel >= 2.14
88
%if 0%{?suse_version} >= 1140
89
Requires: libwebkitgtk-1_0-0
90
BuildRequires: libwebkitgtk-devel
92
Requires: libwebkit-1_0-2
93
BuildRequires: libwebkit-devel
98
BuildRequires: libgnomeprintui-devel
99
BuildRequires: update-desktop-files
100
BuildRequires: libxslt-devel
101
Requires: gnome-doc-utils
102
BuildRequires: rarian-devel
103
BuildRequires: gnome-doc-utils-devel
104
BuildRequires: dbus-1-glib-devel
108
Xiphos (formerly known as GnomeSword) is a Bible study tool written for Linux,
109
UNIX, and Windows under the GNOME toolkit, offering a rich and featureful
110
environment for reading, study, and research using modules from The SWORD
111
Project and elsewhere.
118
export CFLAGS=$RPM_OPT_FLAGS
119
./waf configure %{?jobs:-j%jobs} --prefix=/usr
120
./waf build %{?jobs:-j%jobs}
123
./waf install %{?jobs:-j%jobs} --destdir=$RPM_BUILD_ROOT
124
rm -rf %buildroot%_datadir/doc/%{name}
126
%if 0%{?fedora version} >= 13
127
desktop-file-install --delete-original \
128
--add-category=X-Bible \
129
--add-category=X-Religion \
130
--dir=%buildroot%_datadir/applications \
131
--copy-name-to-generic-name \
132
%buildroot%_datadir/applications/xiphos.desktop
135
%if 0%{?suse_version}
136
%suse_update_desktop_file -n -D %{_datadir}/gnome/help/%{name} -G "Bible Study Tool" xiphos Teaching
137
gtk-update-icon-cache -q -f -t %{_datadir}/icons/hicolor
143
rm -rf $RPM_BUILD_ROOT
146
if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update -q -o %{_datadir}/omf/%{name}; fi
149
if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update -q; fi
152
%defattr (-, root, root)
153
%doc AUTHORS COPYING ChangeLog NEWS README RELEASE-NOTES TODO Xiphos.ogg
155
%{_datadir}/applications/*
156
%{_datadir}/icons/hicolor/scalable/apps/xiphos.svg
158
# you might need to comment the next few lines on some distros
159
#%{_datadir}/pixmaps/xiphos
160
#/usr/var/scrollkeeper/*
161
%{_datadir}/gnome/help/xiphos
162
%{_datadir}/locale/*/LC_MESSAGES/xiphos.mo
163
%{_datadir}/omf/xiphos
168
* Tue Sep 20 2011 Brian Dumont <brian.j.dumont@gmail.com>
169
- update to fix for OpenSuSE Development Version (will be 12.1)
170
* Tue Mar 30 2010 Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com>
171
- reworked to use waf
172
- works on f11; f12; Mandriva2010; SLE11,
173
- openSUSE 11.1, 11.2 & Factory.
174
- Verified using openSUSE Buildservice. Hoping to do daily builds.
175
* Sun Dec 17 2006 Karl Kleinpaste <karl@charcoal.com>
176
- reworked a lot of cruft for FC 5 & 6.
177
* Wed Jan 14 2004 Andy Piper <andyp@users.sf.net>
178
- cleaned build statements thanks to Hugo (will now build as user)
179
- changed package name
180
* Wed Dec 31 2003 Andy Piper <andyp@users.sf.net>
181
- Better checking for SWORD version
183
* Wed Dec 10 2003 Andy Piper <andyp@users.sf.net>
184
- Updated dependencies
185
* Mon Dec 08 2003 Andy Piper <andyp@users.sf.net>
186
- Updated dependencies
187
* Fri Dec 05 2003 Andy Piper <andyp@users.sf.net>
188
- Added to Xiphos CVS
189
* Thu Nov 27 2003 Hugo van der Kooij <hugo@vanderkooij.org>
190
- Fixed loose ends in the config
191
* Tue Nov 25 2003 Hugo van der Kooij <hugo@vanderkooij.org>
192
- Version 2.0-0.9dev15
193
- Changed bits to follow new name convention
194
* Sat Nov 15 2003 Hugo van der Kooij <hugo@vanderkooij.org>
195
- Version 2.0-0.9dev11
196
- Build and tested on Fedora Core 1
197
* Tue Oct 28 2003 Hugo van der Kooij <hugo@vanderkooij.org>
198
- Version 2.0-0.9dev9
199
* Sat Oct 25 2003 Hugo van der Kooij <hugo@vanderkooij.org>
200
- Version 2.0-0.9dev8
201
* Fri Aug 29 2003 Hugo van der Kooij <hugo@vanderkooij.org>
202
- Version 1.0-0.9dev5
203
- Build against Sword 1.5.6rc1
204
- Build and tested on Red Hat Linux 9
205
* Mon Mar 25 2003 Hugo van der Kooij <hugo@vanderkooij.org>
207
- Build against Sword 1.5.5
208
- Build and tested on Red Hat Linux 8.0
209
* Sat Mar 15 2003 Hugo van der Kooij <hugo@vanderkooij.org>
211
- Build against Sword 1.5.5
212
- Build and tested on Red Hat Linux 8.0
213
* Fri Dec 20 2002 Hugo van der Kooij <hugo@vanderkooij.org>
215
- Build against Sword 1.5.5
216
- Build and tested on Red Hat Linux 8.0
217
* Sat Dec 14 2002 Hugo van der Kooij <hugo@vanderkooij.org>
219
- Build against Sword 1.5.5
220
- Build and tested on Red Hat Linux 8.0
221
* Sat Sep 28 2002 Hugo van der Kooij <hugo@vanderkooij.org>
222
- Build against Sword 1.5.4
223
* Mon Sep 02 2002 Hugo van der Kooij <hugo@vanderkooij.org>
224
- Fixed the docs with small patch
225
* Tue Aug 21 2002 Hugo van der Kooij <hugo@vanderkooij.org>
227
- Install in the regular tree (not /usr/local)
228
- Needs fix on documentation directory (usr/doc should be /usr/share/doc)
229
* Thu Dec 13 2001 Stuart Gathman <stuart@bmsi.com>
231
- move applnk to /usr/share/gnome
232
* Mon Dec 25 2000 Stuart Gathman <stuart@bmsi.com>
234
* Thu Nov 30 2000 Stuart Gathman <stuart@bmsi.com>
236
* Fri Nov 17 2000 Stuart Gathman <stuart@bmsi.com>
238
* Wed Nov 08 2000 Stuart Gathman <stuart@bmsi.com>
239
- build against sword-1.5.1a
240
- SWModule::Delete renamed to SWModule::deleteEntry
241
* Fri Oct 28 2000 Stuart Gathman <stuart@bmsi.com>