enchant/enchant.spec

159 lines
4.5 KiB
RPMSpec

#
# spec file for package enchant (Version 1.6.0)
#
# Copyright (c) 2010 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
Version: 1.6.0
Release: 5
License: LGPLv2.1+
Summary: Generic Spell Checking Library
Group: Productivity/Text/Spell
Url: http://www.abisource.com/
Source: %{name}-%{version}.tar.bz2
Source1: baselibs.conf
BuildRequires: aspell-devel
BuildRequires: dbus-1-glib-devel
BuildRequires: gcc-c++
BuildRequires: glib2-devel
BuildRequires: hunspell-devel
BuildRequires: libvoikko-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A library providing an efficient extensible abstraction for dealing
with different spell checking libraries.
%package tools
License: LGPLv2.1+
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.
%package voikko
License: LGPLv2.1+
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
License: LGPLv2.1+
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.
%package -n libenchant1
License: LGPLv2.1+
Summary: Generic Spell Checking Library
Group: System/Libraries
Provides: %{name} = %{version}
Obsoletes: %{name} < %{version}
%description -n libenchant1
A library providing an efficient extensible abstraction for dealing
with different spell checking libraries.
%package devel
License: LGPLv2.1+
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.
%prep
%setup -q
%build
%configure --with-pic \
--disable-static \
--enable-zemberek
make %{?jobs:-j%jobs}
%install
%makeinstall
%if %suse_version > 1110
find %{buildroot} -type f -name "*.la" -delete -print
%endif
%clean
rm -rf %{buildroot}
%post -n libenchant1 -p /sbin/ldconfig
%postun -n libenchant1 -p /sbin/ldconfig
%files tools
%defattr(-,root,root)
%{_bindir}/enchant
%{_bindir}/enchant-lsmod
%doc %{_mandir}/man1/enchant.1*
%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)
# AUTHORS == MAINTAINERS in 1.3.0, TODO is 1 byte, BUGS has nothing interesting
%doc AUTHORS COPYING.LIB ChangeLog NEWS README
%{_libdir}/*.so.*
# 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
%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%if %suse_version <= 1110
%{_libdir}/*.*a
%endif
%changelog