2008-09-22 14:16:54 +00:00
|
|
|
#
|
|
|
|
# spec file for package bibletime
|
|
|
|
#
|
2017-02-02 05:10:17 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-07-07 14:14:34 +00:00
|
|
|
# Copyright (c) 2012-2014 Lars Vogdt
|
2008-09-22 14:16:54 +00:00
|
|
|
#
|
2012-12-16 00:00:01 +00:00
|
|
|
# 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.
|
2008-09-22 14:16:54 +00:00
|
|
|
|
2012-12-16 00:00:01 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2008-09-22 14:16:54 +00:00
|
|
|
|
2013-05-08 13:13:21 +00:00
|
|
|
|
2010-03-28 22:05:33 +00:00
|
|
|
Name: bibletime
|
2017-12-06 04:26:36 +00:00
|
|
|
Version: 2.11.1
|
2013-05-08 13:13:21 +00:00
|
|
|
Release: 0
|
2012-12-16 00:00:01 +00:00
|
|
|
Summary: An easy to use Bible study tool
|
2013-05-08 13:13:21 +00:00
|
|
|
License: GPL-2.0+
|
2008-09-22 14:16:54 +00:00
|
|
|
Group: Productivity/Scientific/Other
|
2013-05-08 13:13:21 +00:00
|
|
|
Url: http://www.bibletime.info/
|
2013-12-31 15:02:48 +00:00
|
|
|
Source0: %name-%version.tar.xz
|
2009-12-13 16:02:19 +00:00
|
|
|
Source2: bibletime-rpmlintrc
|
2017-02-02 05:10:17 +00:00
|
|
|
%if 0%{?suse_version} > 1325
|
|
|
|
BuildRequires: libboost_headers-devel
|
|
|
|
%else
|
2012-12-16 00:00:01 +00:00
|
|
|
BuildRequires: boost-devel
|
2017-02-02 05:10:17 +00:00
|
|
|
%endif
|
2012-12-16 00:00:01 +00:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: curl-devel
|
2013-12-31 15:02:48 +00:00
|
|
|
BuildRequires: sword-devel >= 1.7
|
2017-12-06 04:26:36 +00:00
|
|
|
BuildRequires: cmake(Qt5Core)
|
|
|
|
BuildRequires: cmake(Qt5Gui)
|
|
|
|
BuildRequires: cmake(Qt5LinguistTools)
|
|
|
|
BuildRequires: cmake(Qt5PrintSupport)
|
|
|
|
BuildRequires: cmake(Qt5Svg)
|
|
|
|
BuildRequires: cmake(Qt5WebKit)
|
|
|
|
BuildRequires: cmake(Qt5WebKitWidgets)
|
|
|
|
BuildRequires: cmake(Qt5Widgets)
|
|
|
|
BuildRequires: cmake(Qt5Xml)
|
2009-07-23 10:18:53 +00:00
|
|
|
Provides: %{name}-i18n = %version
|
2009-07-23 13:39:46 +00:00
|
|
|
Obsoletes: %{name}-devel < 1.7
|
2013-05-08 13:13:21 +00:00
|
|
|
Obsoletes: %{name}-i18n < 1.7
|
2009-07-23 13:39:46 +00:00
|
|
|
Provides: %{name}-devel = %version
|
2009-07-23 08:36:21 +00:00
|
|
|
Provides: sword-frontend
|
2017-12-06 04:26:36 +00:00
|
|
|
|
2009-12-13 16:35:16 +00:00
|
|
|
BuildRequires: clucene-core-devel
|
2009-12-13 16:10:04 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: pkg-config
|
2012-12-16 00:00:01 +00:00
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
Recommends: sword-bible
|
|
|
|
Recommends: sword-commentary
|
2008-09-22 14:16:54 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2012-12-16 00:00:01 +00:00
|
|
|
BibleTime is a completely free Bible study program.
|
2009-12-13 16:02:19 +00:00
|
|
|
|
|
|
|
The software uses the SWORD programming library to work with over 200 free
|
|
|
|
Bible texts, commentaries, dictionaries and books provided by the Crosswire
|
|
|
|
Bible Society.
|
2008-09-22 14:16:54 +00:00
|
|
|
|
|
|
|
BibleTime provides easy handling of digitalized texts (Bibles, commentaries and
|
|
|
|
lexicons) and powerful features to work with these texts (search in texts,
|
2012-12-16 00:00:01 +00:00
|
|
|
write own notes, save, print etc.).
|
2008-09-22 14:16:54 +00:00
|
|
|
|
|
|
|
%prep
|
2009-07-23 10:18:53 +00:00
|
|
|
%setup -q
|
2008-09-22 14:16:54 +00:00
|
|
|
|
|
|
|
%build
|
2009-07-23 10:18:53 +00:00
|
|
|
mkdir build
|
2012-12-16 00:00:01 +00:00
|
|
|
pushd build >/dev/null
|
2009-07-23 10:18:53 +00:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="%{_prefix}" ../
|
2012-12-16 00:00:01 +00:00
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
popd >/dev/null
|
2008-09-22 14:16:54 +00:00
|
|
|
|
2012-12-16 00:00:01 +00:00
|
|
|
%install
|
|
|
|
pushd build >/dev/null
|
|
|
|
make install DESTDIR="%{buildroot}"
|
|
|
|
popd >/dev/null
|
2015-04-08 13:26:38 +00:00
|
|
|
# move the icon to a valid place (/usr/share/icons is not valid... it has to be in a theme; hicolor as the usual falback)
|
|
|
|
# this is only a link pointing out of the icons
|
|
|
|
rm %{buildroot}%{_datadir}/icons/%{name}.svg
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
|
|
|
|
mv %{buildroot}%{_datadir}/%{name}/icons/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
|
|
|
# then link back the icon into the app directory
|
|
|
|
ln -sf %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{buildroot}%{_datadir}/%{name}/icons/%{name}.svg
|
2012-12-16 00:00:01 +00:00
|
|
|
%fdupes -s %{buildroot}
|
|
|
|
sed -i "s|bibletime/handbook/index.html|bibletime/handbook/en/index.html|" %{buildroot}%{_datadir}/applications/%{name}.desktop
|
2011-12-30 09:03:44 +00:00
|
|
|
%suse_update_desktop_file -r %{name} Education Teaching
|
2008-09-22 14:16:54 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2017-12-06 04:26:36 +00:00
|
|
|
%dir %{_datadir}/bibletime
|
|
|
|
/usr/bin/*
|
|
|
|
%{_datadir}/icons/*
|
|
|
|
%{_datadir}/applications/bibletime.desktop
|
|
|
|
%{_datadir}/bibletime/*
|
2008-09-22 14:16:54 +00:00
|
|
|
|
|
|
|
%changelog
|