# # 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