2007-01-10 16:39:32 +00:00
|
|
|
#
|
2011-09-21 15:41:51 +00:00
|
|
|
# spec file for package enchant
|
2007-01-10 16:39:32 +00:00
|
|
|
#
|
2016-05-02 09:00:37 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-10 16:39:32 +00:00
|
|
|
#
|
2009-03-17 16:02:30 +00:00
|
|
|
# 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.
|
|
|
|
|
2007-01-10 16:39:32 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: enchant
|
2010-04-02 22:10:15 +00:00
|
|
|
Version: 1.6.0
|
2013-03-13 23:01:11 +00:00
|
|
|
Release: 0
|
2008-08-02 00:59:25 +00:00
|
|
|
Summary: Generic Spell Checking Library
|
2013-03-13 23:01:11 +00:00
|
|
|
License: LGPL-2.1+
|
2010-04-02 22:10:15 +00:00
|
|
|
Group: Productivity/Text/Spell
|
2007-10-19 02:29:34 +00:00
|
|
|
Url: http://www.abisource.com/
|
2013-03-26 15:50:24 +00:00
|
|
|
Source: http://www.abisource.com/downloads/%{name}/%{version}/%{name}-%{version}.tar.gz
|
2010-08-25 09:40:25 +00:00
|
|
|
Source1: baselibs.conf
|
2016-05-02 09:00:37 +00:00
|
|
|
# PATCH-FIX-UPSTREAM enchant-hunspell-1.4.0.patch dimstar@opensuse.org -- Fix build against hunspell 1.4.0, where WORDMAXLEN is no longer exported
|
|
|
|
Patch0: enchant-hunspell-1.4.0.patch
|
2016-11-25 18:10:10 +00:00
|
|
|
# PATCH-FIX-UPSTREAM enchant-hunspell-1.5.0.patch pgajdos@suse.cz -- fix build against hunspell 1.5.0
|
|
|
|
Patch1: enchant-hunspell-1.5.0.patch
|
2010-04-02 22:10:15 +00:00
|
|
|
BuildRequires: aspell-devel
|
|
|
|
BuildRequires: dbus-1-glib-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: glib2-devel
|
|
|
|
BuildRequires: hunspell-devel
|
|
|
|
BuildRequires: libvoikko-devel
|
2007-01-10 16:39:32 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2008-08-02 00:59:25 +00:00
|
|
|
A library providing an efficient extensible abstraction for dealing
|
|
|
|
with different spell checking libraries.
|
|
|
|
|
2010-08-25 09:40:25 +00:00
|
|
|
%package tools
|
|
|
|
Summary: Generic Spell Checking Library - Command Line Tools
|
|
|
|
Group: Productivity/Text/Spell
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
A library providing an efficient extensible abstraction for dealing
|
|
|
|
with different spell checking libraries.
|
|
|
|
|
|
|
|
This package provides command-line tools to interact with enchant.
|
|
|
|
|
2008-08-02 00:59:25 +00:00
|
|
|
%package voikko
|
|
|
|
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.
|
|
|
|
|
|
|
|
%package zemberek
|
|
|
|
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:
|
2011-10-05 09:44:06 +00:00
|
|
|
Recommends: zemberek-server
|
|
|
|
Supplements: packageand(libenchant1:zemberek-server)
|
2008-08-02 00:59:25 +00:00
|
|
|
|
|
|
|
%description zemberek
|
|
|
|
Zemberek plugin (Azeri, Turkmen, Turkish, Tatar) for enchant, a library
|
|
|
|
providing an efficient extensible abstraction for dealing with
|
|
|
|
different spell checking libraries.
|
2007-01-10 16:39:32 +00:00
|
|
|
|
2007-10-19 02:29:34 +00:00
|
|
|
%package -n libenchant1
|
2008-08-02 00:59:25 +00:00
|
|
|
Summary: Generic Spell Checking Library
|
2007-10-19 02:29:34 +00:00
|
|
|
Group: System/Libraries
|
2010-08-25 09:40:25 +00:00
|
|
|
Provides: %{name} = %{version}
|
|
|
|
Obsoletes: %{name} < %{version}
|
2007-10-19 02:29:34 +00:00
|
|
|
|
|
|
|
%description -n libenchant1
|
2008-08-02 00:59:25 +00:00
|
|
|
A library providing an efficient extensible abstraction for dealing
|
|
|
|
with different spell checking libraries.
|
2007-10-19 02:29:34 +00:00
|
|
|
|
2007-01-10 16:39:32 +00:00
|
|
|
%package devel
|
2008-05-17 00:14:42 +00:00
|
|
|
Summary: Include Files and Libraries mandatory for Development
|
2007-10-19 02:29:34 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2013-03-13 23:01:11 +00:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: glib2-devel
|
|
|
|
Requires: libstdc++-devel
|
2007-01-10 16:39:32 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require these.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2016-05-02 09:00:37 +00:00
|
|
|
%patch0 -p1
|
2016-11-25 18:10:10 +00:00
|
|
|
%patch1 -p1
|
2007-01-10 16:39:32 +00:00
|
|
|
|
|
|
|
%build
|
2009-03-17 16:02:30 +00:00
|
|
|
%configure --with-pic \
|
2011-10-11 07:34:28 +00:00
|
|
|
--disable-static \
|
|
|
|
--enable-zemberek \
|
|
|
|
--with-myspell-dir=%{_datadir}/myspell
|
2011-10-11 07:32:46 +00:00
|
|
|
|
2011-09-21 15:41:51 +00:00
|
|
|
make %{?_smp_mflags}
|
2007-01-10 16:39:32 +00:00
|
|
|
|
|
|
|
%install
|
2009-05-24 22:30:51 +00:00
|
|
|
%makeinstall
|
2009-03-26 22:32:51 +00:00
|
|
|
%if %suse_version > 1110
|
2010-04-02 22:10:15 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2009-03-26 22:32:51 +00:00
|
|
|
%endif
|
2007-01-10 16:39:32 +00:00
|
|
|
|
2008-05-17 00:14:42 +00:00
|
|
|
%post -n libenchant1 -p /sbin/ldconfig
|
2007-01-10 16:39:32 +00:00
|
|
|
|
2008-05-17 00:14:42 +00:00
|
|
|
%postun -n libenchant1 -p /sbin/ldconfig
|
2007-01-10 16:39:32 +00:00
|
|
|
|
2010-08-25 09:40:25 +00:00
|
|
|
%files tools
|
2007-01-10 16:39:32 +00:00
|
|
|
%defattr(-,root,root)
|
2010-08-25 09:40:25 +00:00
|
|
|
%{_bindir}/enchant
|
|
|
|
%{_bindir}/enchant-lsmod
|
|
|
|
%doc %{_mandir}/man1/enchant.1*
|
2007-10-19 02:29:34 +00:00
|
|
|
|
2008-08-02 00:59:25 +00:00
|
|
|
%files voikko
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/enchant/libenchant_voikko.so
|
|
|
|
|
|
|
|
%files zemberek
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/enchant/libenchant_zemberek.so
|
|
|
|
|
2007-10-19 02:29:34 +00:00
|
|
|
%files -n libenchant1
|
|
|
|
%defattr(-,root,root)
|
2010-08-25 09:40:25 +00:00
|
|
|
# AUTHORS == MAINTAINERS in 1.3.0, TODO is 1 byte, BUGS has nothing interesting
|
|
|
|
%doc AUTHORS COPYING.LIB ChangeLog NEWS README
|
2007-10-19 02:29:34 +00:00
|
|
|
%{_libdir}/*.so.*
|
2010-08-25 09:40:25 +00:00
|
|
|
# The directories are not versioned, unfortunately. Not good for the SLPP.
|
|
|
|
%{_datadir}/enchant
|
|
|
|
%dir %{_libdir}/enchant
|
|
|
|
%{_libdir}/enchant/libenchant_aspell.so
|
|
|
|
%{_libdir}/enchant/libenchant_ispell.so
|
|
|
|
%{_libdir}/enchant/libenchant_myspell.so
|
2007-01-10 16:39:32 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2009-03-26 22:32:51 +00:00
|
|
|
%if %suse_version <= 1110
|
|
|
|
%{_libdir}/*.*a
|
|
|
|
%endif
|
2008-05-17 00:14:42 +00:00
|
|
|
|
2007-10-19 02:29:34 +00:00
|
|
|
%changelog
|