bibletime/bibletime.spec
Lars Vogdt 1de901ed8b - update to 2.4:
+ many, many bugfixes
  + Improved search dialog
  + Added "get list of install sources from server" functionality
  + BibleTime can now open TEI modules
  + Added new feature called "Change location". It is a shortcut 
    (Ctrl-L) that changes the focus to the toolbar field for the 
    bible reference or book location. 
    This is like the Ctrl-L feature of FireFox.
  + Add shortcut page to config settings dialog
- fix build for fedora

OBS-URL: https://build.opensuse.org/package/show/Education/bibletime?expand=0&rev=12
2009-12-13 16:02:19 +00:00

114 lines
3.2 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.4
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: clucene-core-devel
BuildRequires: cmake
BuildRequires: curl-devel
BuildRequires: libqt4-devel
BuildRequires: sword-devel
#
# openSUSE
#
%if 0%{?suse_version}
Recommends: sword-bible
Recommends: sword-commentary
BuildRequires: pkg-config
BuildRequires: libQtWebKit-devel
BuildRequires: update-desktop-files
BuildRequires: fdupes
%endif
#
# Fedora
#
%if 0%{?fedora_version}
Release: 1%{?dist}
BuildRequires: pkgconfig
BuildRequires: desktop-file-utils
BuildRequires: webkitkde-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 %{?jobs:-j %jobs}
popd
%install
pushd build
%makeinstall
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
%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
#
%if 0%{?fedora_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