Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > 3a49b1e40e3ba34dc06c0a4c4f0400df > files > 2

tmispell-voikko-0.7.1-2mdv2010.0.src.rpm


%define name	tmispell-voikko
%define shortname	tmispell
%define version	0.7.1
%define rel	2

Summary:	Ispell compatible front-end for Voikko
Name:		%name
Version:	%version
Release:	%mkrel %rel
License:	GPLv2+
Group:		Text tools
URL:            http://voikko.sourceforge.net/
Source:         http://downloads.sourceforge.net/voikko/%name-%version.tar.gz
BuildRoot:	%{_tmppath}/%{name}-root
BuildRequires:	libncursesw-devel
BuildRequires:	glib2-devel
BuildRequires:	glibmm2.4-devel
BuildRequires:	voikko-devel
Conflicts:	ispell
# Only Finnish is supported currently, remove these if more are added
Provides:	ispell-fi
Requires:	locales-fi
Requires:	voikko-dictionary

%description
Tmispell is an Ispell compatible front-end for spell-checking
modules. To do the actual spell-checking for Finnish language it
uses the spell-checking system Voikko.

Since tmispell-voikko imitates ispell, you have to configure the
relevant program to use ispell for spell-checking and select
dictionary "suomi" or "Finnish".

%prep
%setup -q

%build
%configure2_5x --disable-enchant
%make

# (Anssi 04/2008) KDE uses "fi"
sed -r -i 's,^finnish(.*)$,finnish\1\nfi\1,' tmispell.conf.example

%install
rm -rf %{buildroot}
%makeinstall_std

ln -s tmispell %{buildroot}%{_bindir}/ispell

install -d -m755 %{buildroot}%{_sysconfdir}
install -m644 tmispell.conf.example %{buildroot}%{_sysconfdir}/tmispell.conf

# fake Finnish dictionary for ispell clients
install -d -m755 %{buildroot}%{_prefix}/lib/ispell
touch %{buildroot}%{_prefix}/lib/ispell/fi.{hash,aff}

# (anssi 04/2008) KDE searches from libdir instead
%if "%_lib" != "lib"
install -d -m755 %{buildroot}%{_libdir}
ln -s %{_prefix}/lib/ispell %{buildroot}%{_libdir}/ispell
%endif

%find_lang %name

%clean
rm -rf %{buildroot}

%files -f %name.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog NEWS README README.fi
%config %{_sysconfdir}/tmispell.conf
%{_bindir}/ispell
%{_bindir}/tmispell
%{_prefix}/lib/ispell
%{_libdir}/ispell
%{_mandir}/man1/tmispell.1*
%{_mandir}/man5/tmispell.conf.5*




%changelog
* Sun Sep 20 2009 Thierry Vignaud <tvignaud@mandriva.com> 0.7.1-2mdv2010.0
+ Revision: 445489
- rebuild

* Fri Feb 27 2009 Anssi Hannula <anssi@mandriva.org> 0.7.1-1mdv2009.1
+ Revision: 345744
- new version

* Thu Apr 24 2008 Anssi Hannula <anssi@mandriva.org> 0.7-3mdv2009.0
+ Revision: 197138
- better compatibility with KDE3 (show language name)

* Fri Feb 29 2008 Anssi Hannula <anssi@mandriva.org> 0.7-1mdv2008.1
+ Revision: 176607
- new version

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request

* Sat Nov 17 2007 Anssi Hannula <anssi@mandriva.org> 0.6.3-1mdv2008.1
+ Revision: 109721
- new license policy
- new version

* Wed May 23 2007 Anssi Hannula <anssi@mandriva.org> 0.6.2-1mdv2008.0
+ Revision: 30223
- 0.6.2


* Thu Mar 01 2007 Anssi Hannula <anssi@mandriva.org> 0.6.1-2mdv2007.0
+ Revision: 130810
- rebuild
- update URL

* Sun Oct 29 2006 Anssi Hannula <anssi@mandriva.org> 0.6.1-1mdv2007.1
+ Revision: 73613
- 0.6.1
- Import tmispell-voikko

* Wed Aug 30 2006 Anssi Hannula <anssi@mandriva.org> 0.6-1mdv2007.0
- 0.6
- drop patch0, upstream
- now uses standard linking instead of dlopen

* Tue Aug 22 2006 Anssi Hannula <anssi@mandriva.org> 0.5.0-1mdv2007.0
- initial Mandriva release