2008-09-22 14:16:54 +00:00
|
|
|
#
|
|
|
|
# spec file for package bibletime
|
|
|
|
#
|
2014-07-07 14:14:34 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
# 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
|
2014-07-07 14:14:34 +00:00
|
|
|
Version: 2.10.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-07-23 10:18:53 +00:00
|
|
|
Source1: %{name}.xpm
|
2009-12-13 16:02:19 +00:00
|
|
|
Source2: bibletime-rpmlintrc
|
2012-12-16 00:00:01 +00:00
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: curl-devel
|
|
|
|
BuildRequires: libqt4-devel
|
2013-12-31 15:02:48 +00:00
|
|
|
BuildRequires: sword-devel >= 1.7
|
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
|
2009-12-13 16:02:19 +00:00
|
|
|
#
|
|
|
|
# openSUSE
|
|
|
|
#
|
|
|
|
%if 0%{?suse_version}
|
2009-12-13 16:35:16 +00:00
|
|
|
BuildRequires: clucene-core-devel
|
2009-12-13 16:10:04 +00:00
|
|
|
BuildRequires: fdupes
|
2009-12-13 16:02:19 +00:00
|
|
|
BuildRequires: libQtWebKit-devel
|
2009-12-13 16:10:04 +00:00
|
|
|
BuildRequires: pkg-config
|
2012-12-16 00:00:01 +00:00
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
Recommends: sword-bible
|
|
|
|
Recommends: sword-commentary
|
2009-12-13 16:02:19 +00:00
|
|
|
%endif
|
|
|
|
#
|
|
|
|
# Fedora
|
|
|
|
#
|
|
|
|
%if 0%{?fedora_version}
|
2009-12-13 16:35:16 +00:00
|
|
|
BuildRequires: clucene-core-devel
|
2009-12-13 16:02:19 +00:00
|
|
|
BuildRequires: desktop-file-utils
|
2012-12-16 00:00:01 +00:00
|
|
|
BuildRequires: gcc-c++
|
2009-12-13 16:10:04 +00:00
|
|
|
BuildRequires: pkgconfig
|
2009-12-13 16:20:19 +00:00
|
|
|
%if 0%{?fedora_version} > 11
|
2012-12-16 00:00:01 +00:00
|
|
|
#BuildRequires: webkitkde-devel
|
|
|
|
BuildRequires: qt-webkit-devel
|
2009-12-13 16:20:19 +00:00
|
|
|
%else
|
|
|
|
BuildRequires: WebKit-qt-devel
|
|
|
|
%endif
|
2009-12-13 16:02:19 +00:00
|
|
|
%endif
|
2009-12-13 16:10:04 +00:00
|
|
|
#
|
|
|
|
# Mandriva
|
|
|
|
#
|
2009-12-13 16:17:52 +00:00
|
|
|
%if 0%{?mandriva_version}
|
2009-12-13 16:10:04 +00:00
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: libclucene-devel
|
2012-12-16 00:00:01 +00:00
|
|
|
BuildRequires: pkgconfig
|
2009-12-13 16:10:04 +00:00
|
|
|
%endif
|
2009-12-13 16:02:19 +00:00
|
|
|
|
2008-09-22 14:16:54 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-12-16 00:00:01 +00:00
|
|
|
%define kdeprefix %{_prefix}
|
2008-09-22 14:16:54 +00:00
|
|
|
|
|
|
|
%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
|
2011-12-30 09:03:44 +00:00
|
|
|
# fix language pathnames
|
2012-12-16 00:00:01 +00:00
|
|
|
test -d %{buildroot}%kdeprefix/share/locale/pt_br && mv %{buildroot}%kdeprefix/share/locale/pt_br %{buildroot}%kdeprefix/share/locale/pt_BR
|
|
|
|
test -d %{buildroot}%kdeprefix/share/doc/HTML/pt-br && mv %{buildroot}%kdeprefix/share/doc/HTML/pt-br %{buildroot}%kdeprefix/share/doc/HTML/pt_BR
|
2009-12-13 16:02:19 +00:00
|
|
|
# install manpages
|
2012-12-16 00:00:01 +00:00
|
|
|
install -Dm644 docs/manpages/bibletime.1 %{buildroot}%{_mandir}/man1/bibletime.1
|
|
|
|
install -Dm644 docs/manpages/bibletime.de.1 %{buildroot}%{_mandir}/de/man1/bibletime.1
|
|
|
|
install -Dm644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.xpm
|
2009-12-13 16:02:19 +00:00
|
|
|
%if 0%{?suse_version}
|
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
|
2009-12-13 16:02:19 +00:00
|
|
|
%endif
|
|
|
|
#
|
2009-12-13 16:17:52 +00:00
|
|
|
%if 0%{?fedora_version} || 0%{?mandriva_version}
|
2012-12-16 00:00:01 +00:00
|
|
|
install -Dm644 ./cmake/platforms/linux/bibletime.desktop.cmake %{buildroot}%{_datadir}/applications/bibletime.desktop
|
2009-12-13 16:02:19 +00:00
|
|
|
%endif
|
2008-09-22 14:16:54 +00:00
|
|
|
|
|
|
|
%clean
|
2012-12-16 00:00:01 +00:00
|
|
|
rm -rf %{buildroot}
|
2008-09-22 14:16:54 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2009-12-13 16:02:19 +00:00
|
|
|
%doc %{_mandir}/man1/bibletime.1*
|
|
|
|
%doc %{_mandir}/de/man1/bibletime.1*
|
2009-07-23 10:18:53 +00:00
|
|
|
%dir %kdeprefix/share/bibletime
|
2008-09-22 14:16:54 +00:00
|
|
|
%kdeprefix/bin/*
|
|
|
|
%kdeprefix/share/icons/*
|
2009-07-23 10:18:53 +00:00
|
|
|
%kdeprefix/share/pixmaps/%{name}.xpm
|
2009-07-23 10:25:14 +00:00
|
|
|
%kdeprefix/share/applications/bibletime.desktop
|
2009-07-23 13:39:46 +00:00
|
|
|
%kdeprefix/share/bibletime/*
|
2008-09-22 14:16:54 +00:00
|
|
|
|
|
|
|
%changelog
|