2008-09-22 14:16:54 +00:00
|
|
|
#
|
|
|
|
# spec file for package bibletime
|
|
|
|
#
|
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: bibletime
|
2009-12-13 16:02:19 +00:00
|
|
|
Summary: An easy to use Bible study tool
|
|
|
|
Version: 2.4
|
|
|
|
Release: 1
|
2009-07-23 10:18:53 +00:00
|
|
|
License: GNU General Public License version 2 (GPL v2)
|
2008-09-22 14:16:54 +00:00
|
|
|
Url: http://www.bibletime.info/
|
|
|
|
Group: Productivity/Scientific/Other
|
|
|
|
Vendor: openSUSE-Education
|
|
|
|
Source0: %name-%version.tar.bz2
|
2009-07-23 10:18:53 +00:00
|
|
|
Source1: %{name}.xpm
|
2009-12-13 16:02:19 +00:00
|
|
|
Source2: bibletime-rpmlintrc
|
2009-07-23 10:18:53 +00:00
|
|
|
Provides: %{name}-i18n = %version
|
|
|
|
Obsoletes: %{name}-i18n < 1.7
|
2009-07-23 13:39:46 +00:00
|
|
|
Obsoletes: %{name}-devel < 1.7
|
|
|
|
Provides: %{name}-devel = %version
|
2009-07-23 08:36:21 +00:00
|
|
|
Provides: sword-frontend
|
2009-12-13 16:02:19 +00:00
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: clucene-core-devel
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: curl-devel
|
|
|
|
BuildRequires: libqt4-devel
|
|
|
|
BuildRequires: sword-devel
|
|
|
|
#
|
|
|
|
# openSUSE
|
|
|
|
#
|
|
|
|
%if 0%{?suse_version}
|
2008-09-22 14:16:54 +00:00
|
|
|
Recommends: sword-bible
|
|
|
|
Recommends: sword-commentary
|
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
|
2009-07-23 13:39:46 +00:00
|
|
|
BuildRequires: update-desktop-files
|
2009-12-13 16:02:19 +00:00
|
|
|
%endif
|
|
|
|
#
|
|
|
|
# Fedora
|
|
|
|
#
|
|
|
|
%if 0%{?fedora_version}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
BuildRequires: desktop-file-utils
|
2009-12-13 16:10:04 +00:00
|
|
|
BuildRequires: pkgconfig
|
2009-12-13 16:02:19 +00:00
|
|
|
BuildRequires: webkitkde-devel
|
|
|
|
%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: pkgconfig
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: libclucene-devel
|
|
|
|
%endif
|
2009-12-13 16:02:19 +00:00
|
|
|
|
2008-09-22 14:16:54 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-07-23 10:18:53 +00:00
|
|
|
%define kdeprefix %{_prefix}
|
2008-09-22 14:16:54 +00:00
|
|
|
|
|
|
|
%description
|
2009-12-13 16:02:19 +00:00
|
|
|
BibleTime is a completely free Bible study program.
|
|
|
|
|
|
|
|
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,
|
2009-12-13 16:02:19 +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
|
|
|
|
pushd build
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="%{_prefix}" ../
|
|
|
|
%__make %{?jobs:-j %jobs}
|
2008-09-22 14:16:54 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
2009-07-23 10:18:53 +00:00
|
|
|
pushd build
|
2008-09-22 14:16:54 +00:00
|
|
|
%makeinstall
|
|
|
|
popd
|
2008-12-15 14:59:24 +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
|
|
|
|
install -Dm644 docs/manpages/bibletime.1 %buildroot/%_mandir/man1/bibletime.1
|
|
|
|
install -Dm644 docs/manpages/bibletime.de.1 %buildroot/%_mandir/de/man1/bibletime.1
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%fdupes -s %buildroot
|
|
|
|
sed -i "s|bibletime/handbook/index.html|bibletime/handbook/en/index.html|" %buildroot/%{_datadir}/applications/%{name}.desktop
|
|
|
|
install -Dm644 %{SOURCE1} %buildroot/%{_datadir}/pixmaps/%{name}.xpm
|
|
|
|
%suse_update_desktop_file -r bibletime Education Teaching
|
|
|
|
%endif
|
|
|
|
#
|
2009-12-13 16:17:52 +00:00
|
|
|
%if 0%{?fedora_version} || 0%{?mandriva_version}
|
2009-12-13 16:02:19 +00:00
|
|
|
desktop-file-install --vendor="%{vendor}" \
|
|
|
|
--dir=%buildroot/%_datadir/applications \
|
|
|
|
%name.desktop
|
|
|
|
%endif
|
2008-09-22 14:16:54 +00:00
|
|
|
|
2009-12-13 16:17:52 +00:00
|
|
|
|
|
|
|
|
2008-09-22 14:16:54 +00:00
|
|
|
%clean
|
|
|
|
rm -rf %buildroot
|
|
|
|
|
|
|
|
%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
|