File enchant.spec of Package enchant

#
# spec file for package enchant (Version 1.5.0)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           enchant
BuildRequires:  aspell-devel dbus-1-glib-devel gcc-c++ glib2-devel hunspell-devel libvoikko-devel
# FIXME: Delete before submit. Will be fixed after malaga checkin.
BuildRequires:  libmalaga-devel
License:        LGPL v2.1 or later
Group:          Productivity/Text/Spell
Version:        1.5.0
Release:        1
Summary:        Generic Spell Checking Library
Source:         %{name}-%{version}.tar.bz2
Url:            http://www.abisource.com/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A library providing an efficient extensible abstraction for dealing
with different spell checking libraries.



Authors:
--------
    Dom Lachowicz <cinamod@hotmail.com>

%package voikko
License:        LGPL v2.1 or later
Summary:        Generic Spell Checking Library - Voikko Plugin
Group:          Productivity/Text/Spell
Provides:       locale(%{name}:fi)

%description voikko
Voikko plugin (Finnish) for enchant, a library providing an efficient
extensible abstraction for dealing with different spell checking
libraries.



Authors:
--------
    Dom Lachowicz <cinamod@hotmail.com>

%package zemberek
License:        LGPL v2.1 or later
Summary:        Generic Spell Checking Library - Zemberek Plugin
Group:          Productivity/Text/Spell
Provides:       locale(%{name}:az)
Provides:       locale(%{name}:tk)
Provides:       locale(%{name}:tr)
Provides:       locale(%{name}:tt)
# Only zemberek-server over D-Bus is supported. Server must be installed locally:
Requires:       zemberek-server

%description zemberek
Zemberek plugin (Azeri, Turkmen, Turkish, Tatar) for enchant, a library
providing an efficient extensible abstraction for dealing with
different spell checking libraries.



Authors:
--------
    Dom Lachowicz <cinamod@hotmail.com>

%package -n libenchant1
License:        LGPL v2.1 or later
Summary:        Generic Spell Checking Library
Group:          System/Libraries
Requires:       %{name} = %{version}

%description -n libenchant1
A library providing an efficient extensible abstraction for dealing
with different spell checking libraries.



Authors:
--------
    Dom Lachowicz <cinamod@hotmail.com>

%package devel
License:        LGPL v2.1 or later
Summary:        Include Files and Libraries mandatory for Development
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version} glib2-devel libstdc++-devel

%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.



Authors:
--------
    Dom Lachowicz <cinamod@hotmail.com>

%prep
%setup -q

%build
%configure --with-pic \
	--disable-static
make %{?jobs:-j%jobs}

%install
%makeinstall
%if %suse_version > 1110
find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} + 
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libenchant1 -p /sbin/ldconfig

%postun -n libenchant1 -p /sbin/ldconfig

%files
%defattr(-,root,root)
# AUTHORS == MAINTAINERS in 1.3.0, TODO is 1 byte, BUGS has nothing interesting
%doc AUTHORS COPYING.LIB ChangeLog NEWS README
%defattr (-, root, root)
%{_bindir}/*
%{_datadir}/enchant
%{_libdir}/enchant
%exclude %{_libdir}/enchant/libenchant_voikko.so
%exclude %{_libdir}/enchant/libenchant_zemberek.so
%doc %{_mandir}/man?/*.*

%files voikko
%defattr(-,root,root)
%{_libdir}/enchant/libenchant_voikko.so

%files zemberek
%defattr(-,root,root)
%{_libdir}/enchant/libenchant_zemberek.so

%files -n libenchant1
%defattr(-,root,root)
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%if %suse_version <= 1110
%{_libdir}/*.*a
%endif

%changelog
* Sun May 24 2009 vuntz@novell.com
- Update to version 1.5.0 (no NEWS or ChangeLog). Notable changes:
  + Look for myspell/uspell dictionaries in XDG data directories.
  + Various backends now query for any programatically-set
  dictionary paths.
  + Plug memory leaks.
  + Build fixes.
- Remove AutoReqProv: it's default now.
- Do not call autoreconf, there's no need for it.
- Use makeinstall.
* Tue Mar 17 2009 mboman@suse.de
- Don't delete "la" files for distro version <= 11.1
* Fri Mar 13 2009 crrodriguez@suse.de
- remove all "la" files
* Fri Jul 25 2008 sbrabec@suse.cz
- Build with voikko (Finnish, bnc#394355) and zemberek (Azeri,
  Turkmen, Turkish, Tatar) backends.
* Mon May 12 2008 sbrabec@suse.cz
- Updated to version 1.4.2:
  * Improved modularity, support for new modules (not yet in
  openSUSE build: Voikko, Zemberek).
  * System hunspell support improved (bnc#383308).
  * Dictionary search improvements (morphing, affixes, suffixes,
  compound words, phonetic translation table).
  * binreloc support (off in openSUSE)
* Thu Oct 18 2007 sbrabec@suse.cz
- Updated to version 1.3.0:
  * New personal wordlist implementation.
  * Bug and compilation fixes.
- Split according to shared library packaging policy.
* Tue Feb 13 2007 sbrabec@suse.cz
- Do not build unusable static libraries (#238552#c17).
* Thu Jan 04 2007 sbrabec@suse.cz
- Spec file cleanup.
* Tue Apr 11 2006 jpr@suse.de
- Fix potential infinite loop (#164682)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 16 2006 sbrabec@suse.cz
- Updated to version 1.2.0.
* Tue Nov 08 2005 dmueller@suse.de
- don't build as root
* Wed Aug 03 2005 sbrabec@suse.cz
- Updated to version 1.1.6.
- Removed unneeded static modules and .la files for modules.
* Wed Jun 01 2005 sbrabec@suse.cz
- Fixed devel requirements.
* Tue Jan 11 2005 sbrabec@suse.cz
- Updated to version 1.1.5.
* Wed May 05 2004 sbrabec@suse.cz
- Added -fno-strict-aliasing.
* Wed Oct 29 2003 sbrabec@suse.cz
- Updated to version 1.1.1.
* Thu Aug 21 2003 ro@suse.de
- fix build on x86_64
- run autoreconf for full libtool update
* Tue Aug 19 2003 sbrabec@suse.cz
- Initial SuSE version 0.2.0.
openSUSE Build Service is sponsored by