diff --git a/.cvsignore b/.cvsignore index 534bf48..cf20ff6 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1,2 @@ bibletime-1.6.2.tar.bz2 +bibletime-i18n-1.6.2.tar.bz2 diff --git a/bibletime.spec b/bibletime.spec index c058048..5edfe9a 100644 --- a/bibletime.spec +++ b/bibletime.spec @@ -1,14 +1,15 @@ Summary: BibleTime is an easy to use Bible study tool for KDE Name: bibletime Version: 1.6.2 -Release: 2%{?dist} +Release: 4%{?dist} License: GPL Url: http://www.bibletime.info/ Group: Applications/Productivity Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 +Source1: http://downloads.sourceforge.net/%{name}/%{name}-i18n-%{version}.tar.bz2 Patch0: bibletime-desktop.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: sword-devel >= 1.5.9 clucene-core-devel >= 0.9.15 kdelibs-devel +BuildRequires: sword-devel >= 1.5.9 clucene-core-devel >= 0.9.16a kdelibs-devel BuildRequires: desktop-file-utils gettext %description @@ -23,8 +24,14 @@ BibleTime is a frontend for the SWORD Bible Framework. %setup -q %patch0 -p0 -b .desk +%setup -q -D -T -a 1 %build + +%configure --disable-rpath +make %{?_smp_mflags} + +cd %{name}-i18n-%{version} %configure --disable-rpath make %{?_smp_mflags} @@ -41,6 +48,15 @@ desktop-file-install --vendor="" \ chmod 0644 %{buildroot}%{_datadir}/apps/bibletime/bibletimeui.rc chmod 0644 %{buildroot}%{_datadir}/apps/bibletime/tips +cd %{name}-i18n-%{version} +make DESTDIR=%{buildroot} install + +# remove empty file +[[ -s %{buildroot}/usr/share/doc/HTML/cs/bibletime/howto/how2-importance.docbook ]] || rm -f %{buildroot}/usr/share/doc/HTML/cs/bibletime/howto/how2-importance.docbook + +# rename wrongly-named locale +mv %{buildroot}/usr/share/locale/pt_br %{buildroot}/usr/share/locale/pt_BR || : + %find_lang bibletime || touch bibletime.lang HTML_DIR=$(kde-config --expandvars --install html) if [ -d %{buildroot}$HTML_DIR ]; then @@ -61,7 +77,7 @@ touch --no-create %{_datadir}/icons/hicolor || : touch --no-create %{_datadir}/icons/hicolor || : %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : -%files -f bibletime.lang +%files -f %{name}-i18n-%{version}/bibletime.lang %defattr(-,root,root,-) %{_bindir}/* %{_datadir}/applications/*.desktop @@ -71,6 +87,9 @@ touch --no-create %{_datadir}/icons/hicolor || : %doc README LICENSE %changelog +* Mon Jan 15 2007 David Anderson 1.6.2-4 +- Added internationalisation + * Fri Jan 12 2007 David Anderson 1.6.2-2 - Cleanups (thanks to Deji Akingunola) diff --git a/sources b/sources index ec84d85..b5c559c 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ b2b8b624d21d397201aec742d43501e5 bibletime-1.6.2.tar.bz2 +a2d4dc8220253e39d8abf720c3ae8aff bibletime-i18n-1.6.2.tar.bz2