130 lines
3.5 KiB
RPMSpec
130 lines
3.5 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
|
|
|
|
%define i18nversion 1.6.5
|
|
%define kdeprefix /opt/kde3
|
|
|
|
Name: bibletime
|
|
Summary: BibleTime is an easy to use Bible study tool for KDE
|
|
Version: 1.6.5.1
|
|
Release: 7
|
|
License: GPL
|
|
Url: http://www.bibletime.info/
|
|
Group: Productivity/Scientific/Other
|
|
Vendor: openSUSE-Education
|
|
Source0: %name-%version.tar.bz2
|
|
Source1: %name-i18n-%i18nversion.tar.bz2
|
|
Patch1: bibletime-1.6.5.1-stringcompare.patch
|
|
Requires: %name-i18n = %version
|
|
Provides: sword-frontend
|
|
Recommends: sword-bible
|
|
Recommends: sword-commentary
|
|
BuildRequires: sword-devel kdelibs3-devel gcc-c++ curl-devel libjpeg-devel clucene-core-devel update-desktop-files
|
|
%if 0%{?suse_version} > 1020
|
|
BuildRequires: fdupes
|
|
%endif
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
BibleTime is a free and easy to use bible study tool for UNIX systems.
|
|
|
|
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.). BibleTime is a frontend for the SWORD
|
|
Bible Framework.
|
|
|
|
The SWORD Project is an effort to create an ever expanding software package for
|
|
research and study of God and His Word. The SWORD Bible Framework allows easy
|
|
manipulation of Bible texts, commentaries, lexicons, dictionaries, etc. Many
|
|
frontends are build using this framework. An installed module set may be
|
|
shared between any frontend using the framework.
|
|
|
|
|
|
|
|
%package devel
|
|
Summary: Development files for %name
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%description devel
|
|
Development files for %name useful if you want to develop applications
|
|
based on %name.
|
|
|
|
|
|
|
|
%package i18n
|
|
Summary: Translations for bibletime
|
|
Group: Productivity/Scientific/Other
|
|
Requires: %name = %version
|
|
|
|
%description i18n
|
|
Translations for bibletime, the free and easy to use bible study
|
|
tool for UNIX systems.
|
|
|
|
|
|
%prep
|
|
%setup -q -a1
|
|
%patch1 -p0
|
|
|
|
%build
|
|
. /etc/opt/kde3/common_options
|
|
./configure $configkde --disable-final \
|
|
--enable-shared=yes \
|
|
%ifarch x86_64 amd64 ia32e
|
|
--enable-libsuffix=64 \
|
|
%endif
|
|
--enable-static=no
|
|
|
|
make %{?jobs:-j%jobs}
|
|
|
|
pushd %name-i18n-%i18nversion
|
|
./configure $configkde
|
|
popd
|
|
|
|
%install
|
|
. /etc/opt/kde3/common_options
|
|
%makeinstall
|
|
|
|
pushd %name-i18n-%i18nversion
|
|
%makeinstall
|
|
popd
|
|
|
|
%if 0%{?suse_version} > 1020
|
|
%fdupes -s %buildroot
|
|
%endif
|
|
test -f %buildroot/%kdeprefix/share/applications/bibletime.desktop && rm %buildroot/%kdeprefix/share/applications/bibletime.desktop
|
|
%suse_update_desktop_file -n bibletime Education Teaching
|
|
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
|
|
%find_lang %name
|
|
|
|
|
|
%clean
|
|
rm -rf %buildroot
|
|
|
|
|
|
%files i18n -f %name.lang
|
|
%defattr(-,root,root)
|
|
%dir %kdeprefix/share/locale/ua
|
|
%dir %kdeprefix/share/locale/ua/LC_MESSAGES
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%kdeprefix/bin/*
|
|
#%kdeprefix/share/applications/bibletime.desktop
|
|
%kdeprefix/share/apps/bibletime/
|
|
%kdeprefix/share/icons/*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%kdeprefix/include/bibletimeinterface.h
|
|
|
|
|
|
%changelog
|