~ubuntu-branches/debian/sid/xiphos/sid

« back to all changes in this revision

Viewing changes to xiphos.spec

  • Committer: Package Import Robot
  • Author(s): Dimitri John Ledkov
  • Date: 2014-07-12 17:08:46 UTC
  • mfrom: (1.3.3)
  • Revision ID: package-import@ubuntu.com-20140712170846-ja9jzhgt51d3fkrd
Tags: 3.2.2+dfsg1-1
* New upstream release.
* Bump standards version.
* Switch uscan to sf.net redirector.
* Unpack waf in get-orig-source target.
* Bump to debhelper 9.
* Add uuid-dev build-dep.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Name:           xiphos 
2
 
Version:        3.1.5
3
 
Release:        1
4
 
Summary:        Bible study and research tool
5
 
 
6
 
Group:          Applications/Text
7
 
License:        GPLv2
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
13
 
 
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
22
 
AutoReqProv:    on
23
 
Requires:       yelp
24
 
Obsoletes:      gnomesword < 2.4.2
25
 
Provides:       gnomesword = %{version}-%{release}
26
 
BuildRequires:    scrollkeeper
27
 
 
28
 
%if 0%{?rhel_version} || 0%{?centos_version}
29
 
BuildRequires:  libgnomeprintui22-devel
30
 
%if 0%{?rhel_version} != 406
31
 
BuildRequires:  dbus-glib-devel
32
 
%endif
33
 
%endif
34
 
 
35
 
%if 0%{?fedora} 
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
43
 
%else
44
 
BuildRequires:  gtk2-devel
45
 
BuildRequires:  gtkhtml2-devel
46
 
Requires:  webkitgtk >= 1.2
47
 
BuildRequires:  webkitgtk-devel >= 1.2
48
 
%endif
49
 
%endif
50
 
 
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
55
 
# lines.
56
 
%if 0%{?fedora} == 11
57
 
BuildRequires: pulseaudio-esound-compat
58
 
%endif
59
 
%if 0%{?mandriva_version} == 201000
60
 
Prefer: PolicyKit-gnome
61
 
%endif
62
 
# End break dependencies
63
 
 
64
 
%if 0%{?mandriva_version}
65
 
BuildRequires:  libdbus-glib-devel
66
 
Requires:  webkit
67
 
%ifarch x86_64
68
 
BuildRequires:  lib64gtkhtml-3.14-devel
69
 
BuildRequires:  lib64gtkhtml-3.14-devel
70
 
BuildRequires:  lib64webkitgtk1.0-devel
71
 
%else
72
 
BuildRequires:  libgtkhtml-3.14-devel
73
 
BuildRequires:  libgtkhtml-3.14-devel
74
 
BuildRequires:  libwebkitgtk1.0-devel
75
 
%endif
76
 
%endif
77
 
 
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
83
 
%else
84
 
BuildRequires:  gtkhtml2-devel
85
 
BuildRequires:  gtk2-devel >= 2.14
86
 
%endif
87
 
 
88
 
%if 0%{?suse_version} >= 1140
89
 
Requires:  libwebkitgtk-1_0-0
90
 
BuildRequires:  libwebkitgtk-devel
91
 
%else
92
 
Requires:  libwebkit-1_0-2
93
 
BuildRequires:  libwebkit-devel
94
 
%endif
95
 
 
96
 
 
97
 
%if 0%{?suse_version}
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
105
 
%endif
106
 
 
107
 
%description
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.
112
 
 
113
 
%lang_package
114
 
%prep
115
 
%setup -q
116
 
#%patch0 -p1
117
 
%build
118
 
export CFLAGS=$RPM_OPT_FLAGS
119
 
./waf configure %{?jobs:-j%jobs} --prefix=/usr 
120
 
./waf build %{?jobs:-j%jobs}
121
 
 
122
 
%install
123
 
./waf install %{?jobs:-j%jobs} --destdir=$RPM_BUILD_ROOT
124
 
rm -rf %buildroot%_datadir/doc/%{name}
125
 
 
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
133
 
%endif
134
 
 
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
138
 
%endif
139
 
%find_lang %{name}
140
 
 
141
 
 
142
 
%clean
143
 
rm -rf $RPM_BUILD_ROOT
144
 
 
145
 
%post
146
 
if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update -q -o %{_datadir}/omf/%{name}; fi
147
 
 
148
 
%postun
149
 
if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update -q; fi
150
 
 
151
 
%files
152
 
%defattr (-, root, root)
153
 
%doc AUTHORS COPYING ChangeLog NEWS README RELEASE-NOTES TODO Xiphos.ogg
154
 
%{_bindir}/*
155
 
%{_datadir}/applications/*
156
 
%{_datadir}/icons/hicolor/scalable/apps/xiphos.svg
157
 
%{_datadir}/xiphos
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
164
 
 
165
 
 
166
 
%changelog
167
 
%changelog
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
182
 
- tidied up macros
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>
206
 
- Version 0.7.9
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>
210
 
- Version 0.7.8
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>
214
 
- Version 0.7.7
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>
218
 
- Version 0.7.6
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>
226
 
- Version 0.7.5
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>
230
 
- version 0.5.2c
231
 
- move applnk to /usr/share/gnome
232
 
* Mon Dec 25 2000 Stuart Gathman <stuart@bmsi.com>
233
 
- version 0.3.7a
234
 
* Thu Nov 30 2000 Stuart Gathman <stuart@bmsi.com>
235
 
- version 0.3.2
236
 
* Fri Nov 17 2000 Stuart Gathman <stuart@bmsi.com>
237
 
- add applnk entry
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>
242
 
- initial release