Files
bibletime/bibletime.spec
Lars Vogdt b1d3b560bb - update to 2.9.1:
+ Fixed Portuguese translation not being included.
  + Updated British translation.
  + Updated handbooks.
- Notable changes since the 2.8 series:
  + Add close buttons to tabbed works windows.
  + Hovering over works in the bookshelf views shows tooltips.
  + Hovering over works in the bookshelf dock shows info in the mag view.
  + Add toolbar icons to toggle visibility of docking windows.
  + Switch off footnotes in display options.
  + Bible windows can have parallel commentaries.

OBS-URL: https://build.opensuse.org/package/show/Education/bibletime?expand=0&rev=29
2011-12-30 08:38:36 +00:00

131 lines
3.6 KiB
RPMSpec

#
# 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
Summary: An easy to use Bible study tool
Version: 2.9.1
Release: 1
License: GNU General Public License version 2 (GPL v2)
Url: http://www.bibletime.info/
Group: Productivity/Scientific/Other
Vendor: openSUSE-Education
Source0: %name-%version.tar.bz2
Source1: %{name}.xpm
Source2: bibletime-rpmlintrc
Provides: %{name}-i18n = %version
Obsoletes: %{name}-i18n < 1.7
Obsoletes: %{name}-devel < 1.7
Provides: %{name}-devel = %version
Provides: sword-frontend
BuildRequires: boost-devel
BuildRequires: cmake
BuildRequires: curl-devel
BuildRequires: libqt4-devel
BuildRequires: sword-devel
#
# openSUSE
#
%if 0%{?suse_version}
Recommends: sword-bible
Recommends: sword-commentary
BuildRequires: clucene-core-devel
BuildRequires: fdupes
BuildRequires: libQtWebKit-devel
BuildRequires: pkg-config
BuildRequires: update-desktop-files
%endif
#
# Fedora
#
%if 0%{?fedora_version}
BuildRequires: clucene-core-devel
BuildRequires: desktop-file-utils
BuildRequires: pkgconfig
%if 0%{?fedora_version} > 11
BuildRequires: webkitkde-devel
%else
BuildRequires: WebKit-qt-devel
%endif
%endif
#
# Mandriva
#
%if 0%{?mandriva_version}
BuildRequires: pkgconfig
BuildRequires: desktop-file-utils
BuildRequires: libclucene-devel
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define kdeprefix %{_prefix}
%description
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.
BibleTime provides easy handling of digitalized texts (Bibles, commentaries and
lexicons) and powerful features to work with these texts (search in texts,
write own notes, save, print etc.).
%prep
%setup -q
%build
mkdir build
pushd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="%{_prefix}" ../
%__make %{?_smp_mflags}
popd
%install
pushd build
make DESTDIR=%buildroot install
popd
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
# 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
install -Dm644 %{SOURCE1} %buildroot/%{_datadir}/pixmaps/%{name}.xpm
%if 0%{?suse_version}
%fdupes -s %buildroot
sed -i "s|bibletime/handbook/index.html|bibletime/handbook/en/index.html|" %buildroot/%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file -r bibletime Education Teaching
%endif
#
%if 0%{?mandriva_version}
install -Dm644 ./cmake/platforms/linux/bibletime.desktop.cmake %buildroot/%_datadir/applications/bibletime.desktop
%endif
%if 0%{?fedora_version} || 0%{?mandriva_version}
desktop-file-install --vendor="%{vendor}" \
--dir=%buildroot/%_datadir/applications \
%name.desktop
%endif
%clean
rm -rf %buildroot
%files
%defattr(-,root,root)
%doc %{_mandir}/man1/bibletime.1*
%doc %{_mandir}/de/man1/bibletime.1*
%dir %kdeprefix/share/bibletime
%kdeprefix/bin/*
%kdeprefix/share/icons/*
%kdeprefix/share/pixmaps/%{name}.xpm
%kdeprefix/share/applications/bibletime.desktop
%kdeprefix/share/bibletime/*
%changelog