a889490
Name:           bibletime
380b693
Version:        2.11.0
a39aa48
Release:        3%{?dist}
a889490
Summary:        An easy to use Bible study tool
a889490
License:        GPLv2
a889490
URL:            http://www.bibletime.info/
a889490
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
3a687a7
Patch0:         %{name}-2.11.0-webengine.patch
a889490
BuildRequires:  boost-devel
a889490
BuildRequires:  clucene-core-devel >= 2.0
a889490
BuildRequires:  cmake
a889490
BuildRequires:  dbus-devel
a889490
BuildRequires:  desktop-file-utils
a889490
BuildRequires:  gettext
a889490
BuildRequires:  openssl-devel
a889490
BuildRequires:  pkgconfig(QtGui) >= 4.5.0
a889490
BuildRequires:  sword-devel >= 1.7.0
e08bc31
BuildRequires:  qt5-qtbase-devel
e08bc31
BuildRequires:  qt5-linguist
3a687a7
%ifarch %{qt5_qtwebengine_arches}
e08bc31
BuildRequires:  qt5-qtwebengine-devel
3a687a7
%else
3a687a7
BuildRequires:  qt5-qtwebkit-devel
3a687a7
%endif
e08bc31
BuildRequires:  qt5-qtsvg-devel
anderson 1b8d9bd
Rex Dieter 1265e34
%{?_qt4_version:Requires: qt4%{?_isa} >= %{_qt4_version}}
Rex Dieter 1265e34
anderson 1b8d9bd
%description
Rex Dieter 28fae05
BibleTime is a free and easy to use cross-platform bible study tool. It
Rex Dieter 28fae05
provides easy handling of digitalized texts (Bibles, commentaries and
Rex Dieter 28fae05
lexicons) and powerful features to work with these texts (search in
Rex Dieter 28fae05
texts, write own notes, save, print etc.). BibleTime is a frontend for
a889490
the SWORD Bible Framework.
anderson 1b8d9bd
anderson 1b8d9bd
%prep
anderson 1b8d9bd
%setup -q
3a687a7
%patch0 -p1
4791525
anderson 1b8d9bd
%build
Rex Dieter 1265e34
mkdir -p %{_target_platform}
Rex Dieter 1265e34
pushd %{_target_platform}
3a687a7
%cmake -DCMAKE_BUILD_TYPE=Release \
3a687a7
%ifarch %{qt5_qtwebengine_arches}
3a687a7
    -DUSEWEBENGINE=ON \
3a687a7
%else
3a687a7
    -DUSEWEBENGINE=OFF \
3a687a7
%endif
3a687a7
    ..
Rex Dieter 1265e34
popd
anderson 1b8d9bd
Rex Dieter 28fae05
make %{?_smp_mflags} -C %{_target_platform}
anderson 1b8d9bd
Rex Dieter 1265e34
%install
Rex Dieter 28fae05
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
anderson 1b8d9bd
anderson f9f84e7
# rename wrongly-named locale
e80caa2
mv %{buildroot}%{_datadir}/%{name}/locale/bibletime_ui_pt_{br,BR}.qm || :
e80caa2
mv %{buildroot}%{_datadir}/%{name}/docs/howto/pt-{br,BR} || :
anderson f9f84e7
e80caa2
# locale's
anderson 3848edf
%find_lang %{name} || touch %{name}.lang
e80caa2
BT_DOC_DIR=%{_datadir}/%{name}/docs
e80caa2
for doctype in handbook howto ; do
e80caa2
	for lang_dir in %{buildroot}/$BT_DOC_DIR/$doctype/* ; do
anderson 1b8d9bd
		lang=$(basename $lang_dir)
e80caa2
		echo "%lang($lang) $BT_DOC_DIR/$doctype/$lang/*" >> %{name}.lang
anderson 1b8d9bd
	done
e80caa2
done
anderson 1b8d9bd
Rex Dieter 1265e34
%check
Rex Dieter 1265e34
desktop-file-validate %{buildroot}%{_datadir}/applications/bibletime.desktop
anderson 1b8d9bd
Rex Dieter 1265e34
%files -f %{name}.lang
380b693
%doc ChangeLog README.md
380b693
%license LICENSE
380b693
%{_bindir}/%{name}
380b693
%{_datadir}/applications/%{name}.desktop
e80caa2
%dir %{_datadir}/%{name}
Rex Dieter 1265e34
%dir %{_datadir}/%{name}/docs/
Rex Dieter 1265e34
%dir %{_datadir}/%{name}/docs/handbook/
Rex Dieter 1265e34
%dir %{_datadir}/%{name}/docs/howto/
e80caa2
%{_datadir}/%{name}/display-templates/
a889490
%{_datadir}/%{name}/icons/
e80caa2
%{_datadir}/%{name}/javascript/
4ecd10b
%{_datadir}/%{name}/license/
Rex Dieter 1265e34
%{_datadir}/%{name}/locale/
Rex Dieter 1265e34
%{_datadir}/%{name}/pics/
380b693
%{_datadir}/icons/%{name}.svg
anderson 1b8d9bd
anderson 1b8d9bd
%changelog
a39aa48
* Fri Jan 27 2017 Jonathan Wakely <jwakely@redhat.com> - 2.11.0-3
a39aa48
- Rebuilt for Boost 1.63
a39aa48
3a687a7
* Mon Jan 16 2017 Dan Horák <dan[at]danny.cz> - 2.11.0-2
3a687a7
- Build with qtwebkit on platforms where qtwebengine is not available
3a687a7
3a687a7
* Tue Jan 10 2017 Greg Hellings <greg.hellings@gmail.com> - 2.11.0-1
380b693
- New upstream release
380b693
- Moved LICENSE file to license macro
380b693
- Added the name macro in a few file paths
cc8a0d7
- Excluded from PPC64-le and PPC64 builds due to missing deps
380b693
e08bc31
* Tue Aug 16 2016 Greg Hellings <greg.hellings@gmail.com> - 2.11_rc2-1
e08bc31
- New upstream test build
e08bc31
8eab9e6
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.1-13
8eab9e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8eab9e6
48bcbd9
* Thu Jan 14 2016 Jonathan Wakely <jwakely@redhat.com> - 2.10.1-12
48bcbd9
- Rebuilt for Boost 1.60
48bcbd9
8563d50
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 2.10.1-11
8563d50
- Rebuilt for Boost 1.59
8563d50
9264ab3
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10.1-10
9264ab3
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
9264ab3
9e1dc3a
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 2.10.1-9
9e1dc3a
- rebuild for Boost 1.58
9e1dc3a
2feb7dd
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10.1-8
2feb7dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2feb7dd
6748032
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2.10.1-7
6748032
- Rebuilt for GCC 5 C++11 ABI change
6748032
Petr Machata 67a8f45
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 2.10.1-6
Petr Machata 67a8f45
- Rebuild for boost 1.57.0
Petr Machata 67a8f45
Rex Dieter b490261
* Sun Dec 14 2014 Rex Dieter <rdieter@fedoraproject.org> 2.10.1-5
Rex Dieter b490261
- rebuild (sword)
Rex Dieter b490261
b4c8ee0
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10.1-4
b4c8ee0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
b4c8ee0
Rex Dieter 28fae05
* Wed Aug 13 2014 Rex Dieter <rdieter@fedoraproject.org> 2.10.1-3
Rex Dieter 28fae05
- fix regressions introduced in recent "cleanup SPEC" commit
Rex Dieter 28fae05
- trailing whitespace in %%description
Rex Dieter 28fae05
- changes in %build: lost CMAKE_BUILD_TYPE, %%{make_build} undefined in on older rpm
Rex Dieter 28fae05
- %%install: lost 'make install/fast'
Rex Dieter 28fae05
4791525
* Wed Jul 09 2014 Jakub Čajka <jcajka@redhat.com> - 2.10.1-2
4791525
- Replaced -fpie with -fPIE to fix build on s390
4791525
b55ece4
* Mon Jul 07 2014 Greg Hellings <greg.hellings@gmail.com> - 2.10.1-1
b55ece4
- New upstream release
b55ece4
- Should address bug #1113320
b55ece4
67314d8
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10.0-4
67314d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
67314d8
Petr Machata 54b74dc
* Thu May 22 2014 Petr Machata <pmachata@redhat.com> - 2.10.0-3
Petr Machata 54b74dc
- Rebuild for boost 1.55.0
Petr Machata 54b74dc
Deji Akingunola 6b6b0f4
* Mon May 19 2014 Deji Akingunola <dakingun@gmail.com> - 2.10.0-2
Deji Akingunola 6b6b0f4
- Rebuild for sword-1.7.3
Deji Akingunola 6b6b0f4
270607f
* Wed Jan 29 2014 Greg Hellings <greg.hellings@gmail.com> - 2.10.0-1
270607f
- Updated to bibletime-2.10.0
270607f
134599b
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.1-8
134599b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
134599b
Petr Machata 7adc3a0
* Tue Jul 30 2013 Petr Machata <pmachata@redhat.com> - 2.9.1-7
Petr Machata 7adc3a0
- Rebuild for boost 1.54.0
Petr Machata 7adc3a0
Rex Dieter c319351
* Fri Apr 19 2013 Rex Dieter <rdieter@fedoraproject.org> 2.9.1-6
Rex Dieter c319351
- No text visible in main window when using qtwebkit-2.3 (#952390)
Rex Dieter c319351
Rex Dieter 1265e34
* Thu Apr 18 2013 Rex Dieter <rdieter@fedoraproject.org> - 2.9.1-5
Rex Dieter 1265e34
- clean .spec of deprecated tags (Group, %%clean, %%defattr)
Rex Dieter 1265e34
- use %%cmake macro
Rex Dieter 1265e34
- drop extraneous explicit sword-related deps (curl, zlib)
Rex Dieter 1265e34
- bibletime.desktop: don't remove Qt category, patch to pass validation
Rex Dieter 1265e34
- fix unowned dirs %%_datadir/bibletime/docs/{handbook,howto}
Rex Dieter 1265e34
7838878
* Sun Feb 03 2013 Kevin Fenzi <kevin@scrye.com> - 2.9.1-4
7838878
- Rebuild for broken deps in rawhide
7838878
4fc6c55
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.1-3
4fc6c55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4fc6c55
Deji Akingunola ab112e6
* Sun May 20 2012 Deji Akingunola <dakingun@gmail.com> - 2.9.1-2
Deji Akingunola ab112e6
- Rebuild for icu soname change
Deji Akingunola ab112e6
Deji Akingunola 1fa46e5
* Thu Feb 23 2012 Deji Akingunola <dakingun@gmail.com> - 2.9.1-1
Deji Akingunola 1fa46e5
- Update to 2.9.1
Deji Akingunola 1fa46e5
543ea7c
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.2-2
543ea7c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
543ea7c
Deji Akingunola 083c8c1
* Thu Oct 20 2011 Deji Akingunola <dakingun@gmail.com> - 2.8.2-1
Deji Akingunola 083c8c1
- Update to 2.8.2
Deji Akingunola 083c8c1
1a13310
* Mon Oct 17 2011 Jonathan Dieter <jdieter@lesbg.com> - 2.8.1-2
1a13310
- Add patch so it builds again CLucene 2.0+
1a13310
Deji Akingunola 7548316
* Thu Jun 02 2011 Deji Akingunola <dakingun@gmail.com> - 2.8.1-1
Deji Akingunola 7548316
- Update to 2.8.1
Deji Akingunola 7548316
9b4d87b
* Mon Mar 07 2011 Caolán McNamara <caolanm@redhat.com> - 2.8.0-3
9b4d87b
- rebuild for icu 4.6
9b4d87b
f00b71a
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.0-2
f00b71a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f00b71a
Deji Akingunola 08dc793
* Tue Jan 04 2011 Deji Akingunola <dakingun@gmail.com> - 2.8.0-1
Deji Akingunola 08dc793
- Update to 2.8.0
Deji Akingunola 08dc793
Deji Akingunola 3d0fac8
* Fri Oct 22 2010 Deji Akingunola <dakingun@gmail.com> - 2.7.3-3
Deji Akingunola 7049cd6
- Rebuild for sword-1.6.2
Deji Akingunola 7049cd6
Jesse Keating 12a217e
* Wed Sep 29 2010 jkeating - 2.7.3-2
Jesse Keating 12a217e
- Rebuilt for gcc bug 634757
Jesse Keating 12a217e
Deji Akingunola 86e8f6a
* Tue Sep 14 2010 Deji Akingunola <dakingun@gmail.com> - 2.7.3-1
Deji Akingunola 86e8f6a
- Update to 2.7.3, fixes a potential data loss bug
Deji Akingunola 86e8f6a
aead1f1
* Mon Jun 21 2010 Deji Akingunola <dakingun@gmail.com> - 2.7-1
aead1f1
- Update to 2.7
aead1f1
Caolan McNamara a38b4f2
* Sat Apr 03 2010 Caolán McNamara <caolanm@redhat.com> - 2.5-3
Caolan McNamara a38b4f2
- rebuild for icu 4.4
Caolan McNamara a38b4f2
82589aa
* Thu Jan 14 2010 Deji Akingunola <dakingun@gmail.com> - 2.5-2
82589aa
- Rebuild for sword-1.6.1
82589aa
8213303
* Tue Dec 29 2009 Deji Akingunola <dakingun@gmail.com> - 2.5-1
8213303
- New upstream version
8213303
561162d
* Wed Dec 02 2009 Deji Akingunola <dakingun@gmail.com> - 2.4-1
561162d
- Update to 2.4
561162d
- Update the description and summary.
561162d
3c76206
* Wed Sep 30 2009 Deji Akingunola <dakingun@gmail.com> - 2.2-1
3c76206
- Update to 2.2
3c76206
b20d457
* Wed Aug 12 2009 Deji Akingunola <dakingun@gmail.com> - 2.1-1
b20d457
- Update to 2.1
b20d457
4009488
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-2
4009488
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4009488
4ecd10b
* Sat Jun 06 2009 Deji Akingunola <dakingun@gmail.com> - 2.0.1-1
4ecd10b
- Update to 2.0.1
4ecd10b
e80caa2
* Tue Mar 17 2009 Deji Akingunola <dakingun@gmail.com> - 1.7-1
e80caa2
- Update to 1.7
e80caa2
6ee9ea2
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.5.1-2
6ee9ea2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6ee9ea2
b71c2f6
* Mon May 26 2008 Deji Akingunola <dakingun@gmail.com> - 1.6.5.1-1
b71c2f6
- Update to 1.6.5.1
b71c2f6
3b7289b
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.6.5-4
3b7289b
- Autorebuild for GCC 4.3
3b7289b
36243a6
* Wed Feb 13 2008 Deji Akingunola <dakingun@gmail.com> 1.6.5-3
36243a6
- Rebuild for gcc-4.3
36243a6
anderson f586ca1
* Tue Jan 02 2008 David Anderson <fedora-packaging@dw-perspective.org.uk> 1.6.5-2
anderson f586ca1
- BR kdelibs3-devel
anderson f586ca1
79754b1
* Tue Nov 06 2007 Deji Akingunola <dakingun@gmail.com> 1.6.5-1
79754b1
- 1.6.5
79754b1
anderson 3bd296c
* Mon May 04 2007 David Anderson <fedora-packaging@dw-perspective.org.uk> 1.6.4-2
anderson 3bd296c
- 1.6.4
anderson 3bd296c
anderson 7d6ba6a
* Mon Feb 05 2007 David Anderson <fedora-packaging@dw-perspective.org.uk> 1.6.3b-3
anderson 3848edf
- 1.6.3b
anderson 3848edf
anderson 3848edf
* Sat Jan 27 2007 David Anderson <fedora-packaging@dw-perspective.org.uk> 1.6.2-5
anderson 3848edf
- Correct wrong location of pt_BR files
anderson 3848edf
anderson f9f84e7
* Mon Jan 15 2007 David Anderson <fedora-packaging@dw-perspective.org.uk> 1.6.2-4
anderson f9f84e7
- Added internationalisation
anderson f9f84e7
anderson 1b8d9bd
* Fri Jan 12 2007 David Anderson <fedora-packaging@dw-perspective.org.uk> 1.6.2-2
anderson 1b8d9bd
- Cleanups (thanks to Deji Akingunola)
anderson 1b8d9bd
anderson 1b8d9bd
* Fri Jan 12 2007 David Anderson <fedora-packaging@dw-perspective.org.uk> 1.6.2-1
anderson 1b8d9bd
- First attempt for Fedora Extras
anderson 1b8d9bd
- (Credits to Joachim Ansorg and Brook Humphrey for previous
anderson 1b8d9bd
- version from bibletime tarball)