2008-02-19 04:36:30 +01:00
|
|
|
#
|
2011-03-02 13:40:27 +01:00
|
|
|
# spec file for package hunspell
|
2008-02-19 04:36:30 +01:00
|
|
|
#
|
2016-04-04 15:09:40 +02:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2008-02-19 04:36:30 +01:00
|
|
|
#
|
2008-08-15 23:55:25 +02: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.
|
|
|
|
|
2008-02-19 04:36:30 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-12-09 14:56:01 +01:00
|
|
|
|
2016-11-21 16:54:28 +01:00
|
|
|
%define ver 1.5
|
|
|
|
%define libname lib%{name}-1_5-0
|
2014-05-05 09:54:22 +02:00
|
|
|
Name: hunspell
|
2016-11-21 16:54:28 +01:00
|
|
|
Version: 1.5.0
|
2011-12-09 13:02:09 +01:00
|
|
|
Release: 0
|
2014-05-05 09:54:22 +02:00
|
|
|
Summary: A spell checker and morphological analyzer library
|
|
|
|
License: (GPL-2.0+ or LGPL-2.1+ or MPL-1.1+) and LGPL-2.1+
|
2016-05-25 09:54:05 +02:00
|
|
|
Group: Productivity/Office/Other
|
2016-04-23 12:37:12 +02:00
|
|
|
Url: https://hunspell.github.io
|
|
|
|
Source0: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2009-12-21 23:19:56 +01:00
|
|
|
Source1: baselibs.conf
|
2011-03-25 19:34:56 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libstdc++-devel
|
2008-02-19 04:36:30 +01:00
|
|
|
BuildRequires: ncurses-devel >= 5.0
|
2016-05-25 09:54:05 +02:00
|
|
|
BuildRequires: pkg-config
|
2011-03-25 19:34:56 +01:00
|
|
|
BuildRequires: readline-devel
|
2008-02-19 04:36:30 +01:00
|
|
|
Recommends: %{name}-tools
|
2014-06-24 12:38:45 +02:00
|
|
|
Recommends: unzip
|
2008-02-19 04:36:30 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Hunspell is a spell checker and morphological analyzer library and
|
|
|
|
program designed for languages with rich morphology and complex word
|
|
|
|
compounding or character encoding. Hunspell interfaces: Ispell-like
|
|
|
|
terminal interface using Curses library, Ispell pipe interface,
|
2011-09-26 11:16:17 +02:00
|
|
|
LibreOffice or OpenOffice.org UNO module.
|
2008-02-19 04:36:30 +01:00
|
|
|
|
2016-05-05 08:46:03 +02:00
|
|
|
%package -n %{libname}
|
2016-05-25 09:54:05 +02:00
|
|
|
Summary: A spell checker and morphological analyzer library
|
2016-05-12 16:48:19 +02:00
|
|
|
# same libname, support migration
|
2016-11-21 16:54:28 +01:00
|
|
|
Group: System/Libraries
|
2016-05-12 16:48:19 +02:00
|
|
|
Conflicts: hunspell = 1.4.0
|
2016-05-05 08:46:03 +02:00
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
Hunspell is a spell checker and morphological analyzer library and
|
|
|
|
program designed for languages with rich morphology and complex word
|
|
|
|
compounding or character encoding. Hunspell interfaces: Ispell-like
|
|
|
|
terminal interface using Curses library, Ispell pipe interface,
|
|
|
|
LibreOffice or OpenOffice.org UNO module.
|
|
|
|
|
2016-05-25 09:54:05 +02:00
|
|
|
This package contains the shared library.
|
2016-05-05 08:46:03 +02:00
|
|
|
|
2008-02-19 04:36:30 +01:00
|
|
|
%package tools
|
|
|
|
Summary: Hunspell tools
|
|
|
|
Group: Development/Libraries/Other
|
2008-02-19 14:10:57 +01:00
|
|
|
Requires: %{name} = %{version}
|
2008-02-19 04:36:30 +01:00
|
|
|
|
|
|
|
%description tools
|
2016-05-25 09:54:05 +02:00
|
|
|
This package contains the munch and unmunch programs.
|
2008-02-19 04:36:30 +01:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Files for developing with hunspell
|
2016-05-25 09:54:05 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2016-05-05 08:46:03 +02:00
|
|
|
Requires: %{libname} = %{version}-%{release}
|
2011-03-25 19:34:56 +01:00
|
|
|
Requires: libstdc++-devel
|
2008-02-19 04:36:30 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Includes and definitions for developing with hunspell.
|
|
|
|
|
|
|
|
%prep
|
2011-03-25 19:34:56 +01:00
|
|
|
%setup -q
|
2008-02-19 04:36:30 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
2016-04-04 15:09:40 +02:00
|
|
|
--disable-silent-rules \
|
2014-05-05 09:54:22 +02:00
|
|
|
--enable-nls \
|
|
|
|
--disable-static \
|
|
|
|
--disable-rpath \
|
2008-02-19 04:36:30 +01:00
|
|
|
--with-ui \
|
|
|
|
--with-readline
|
2011-03-25 19:34:56 +01:00
|
|
|
make %{?_smp_mflags}
|
2008-02-19 04:36:30 +01:00
|
|
|
|
|
|
|
%install
|
2014-05-05 09:54:22 +02:00
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2011-03-25 19:34:56 +01:00
|
|
|
rm -f %{buildroot}%{_bindir}/example
|
|
|
|
install -m 644 src/tools/{,un}munch.h %{buildroot}%{_includedir}
|
2012-09-03 09:58:58 +02:00
|
|
|
ln -sf %{_libdir}/libhunspell-%{ver}.so.0.0.0 %{buildroot}%{_libdir}/libhunspell.so
|
2008-02-19 04:36:30 +01:00
|
|
|
|
2010-02-22 15:32:07 +01:00
|
|
|
%check
|
2014-05-05 09:54:22 +02:00
|
|
|
make check %{?_smp_mflags}
|
2010-02-22 15:32:07 +01:00
|
|
|
|
2016-05-05 08:46:03 +02:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2011-03-28 10:16:40 +02:00
|
|
|
|
2016-04-04 15:09:40 +02:00
|
|
|
%files
|
2016-05-25 09:54:05 +02:00
|
|
|
%defattr(-,root,root)
|
2008-02-19 04:36:30 +01:00
|
|
|
%doc README README.myspell AUTHORS AUTHORS.myspell COPYING THANKS license.hunspell license.myspell
|
|
|
|
%attr(755,root,root) %{_bindir}/hunspell
|
|
|
|
%dir %{_mandir}/hu
|
|
|
|
%dir %{_mandir}/hu/man1
|
2016-05-05 08:46:03 +02:00
|
|
|
%{_mandir}/man1/hunspell.1%{ext_man}
|
2008-02-19 04:36:30 +01:00
|
|
|
%lang(hu) %{_mandir}/hu/man1/hunspell.1*
|
|
|
|
|
2016-05-05 08:46:03 +02:00
|
|
|
%files -n %{libname}
|
2016-05-25 09:54:05 +02:00
|
|
|
%defattr(-,root,root)
|
2016-11-21 16:54:28 +01:00
|
|
|
%{_libdir}/libhunspell-%{ver}.so.*
|
2016-05-05 08:46:03 +02:00
|
|
|
|
2008-02-19 04:36:30 +01:00
|
|
|
%files tools
|
2016-05-25 09:54:05 +02:00
|
|
|
%defattr(-,root,root)
|
2016-05-05 08:46:03 +02:00
|
|
|
%{_bindir}/analyze
|
|
|
|
%{_bindir}/chmorph
|
|
|
|
%{_bindir}/munch
|
|
|
|
%{_bindir}/unmunch
|
|
|
|
%{_bindir}/hunzip
|
|
|
|
%{_bindir}/hzip
|
|
|
|
%{_bindir}/affixcompress
|
|
|
|
%{_bindir}/ispellaff2myspell
|
|
|
|
%{_bindir}/makealias
|
|
|
|
%{_bindir}/wordforms
|
|
|
|
%{_bindir}/wordlist2hunspell
|
|
|
|
%{_mandir}/man1/hunzip.1%{ext_man}
|
|
|
|
%{_mandir}/man1/hzip.1%{ext_man}
|
2008-02-19 04:36:30 +01:00
|
|
|
|
|
|
|
%files devel
|
2016-05-25 09:54:05 +02:00
|
|
|
%defattr(-,root,root)
|
2016-11-21 16:54:28 +01:00
|
|
|
%{_libdir}/libhunspell-%{ver}.so
|
2016-05-05 08:46:03 +02:00
|
|
|
%{_libdir}/libhunspell.so
|
|
|
|
%{_mandir}/man3/hunspell.3%{ext_man}
|
|
|
|
%{_mandir}/man5/hunspell.5%{ext_man}
|
2008-02-19 04:36:30 +01:00
|
|
|
%{_includedir}/%{name}
|
|
|
|
%{_includedir}/munch.h
|
|
|
|
%{_includedir}/unmunch.h
|
|
|
|
%{_libdir}/pkgconfig/hunspell.pc
|
|
|
|
|
|
|
|
%changelog
|