-Summary: Hunspell - a spell checker and morphological analyzer library
+Summary: Hunspell - a spell checker and morphological analyzer
Summary(hu.UTF-8): Hunspell egy helyesírás-ellenőrző és morfológiai elemző könyvtár és program
-Summary(pl.UTF-8): hunspell - biblioteka do sprawdzania pisowni i analizy morfologicznej
+Summary(pl.UTF-8): hunspell - narzędzie do sprawdzania pisowni i analizy morfologicznej
Name: hunspell
Version: 1.4.1
Release: 1
License: MPL v1.1 or GPL v2+ or LGPL v2.1+
-Group: Libraries
+Group: Applications/Text
#Source0Download: https://github.com/hunspell/hunspell/releases
Source0: https://github.com/hunspell/hunspell/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 33d370f7fe5a030985e445a5672b2067
BuildRequires: libtool >= 2:1.5
BuildRequires: ncurses-devel >= 5.0
BuildRequires: readline-devel
+Requires: %{name}-libs = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
terminal interface using Curses library, Ispell pipe interface,
OpenOffice.org UNO module.
+This package contains base programs (hunspell, hzip, hunzip).
+
%description -l hu.UTF-8
Hunspell is a spell checker and morphological analyzer library and
program designed for languages with rich morphology and complex word
biblioteki Curses, interfejs potokowy Ispella, moduł UNO
OpenOffice.org.
+Ten pakiet zawiera podstawowe programy (hunspell, hzip, hunzip).
+
%package tools
Summary: hunspell tools
Summary(pl.UTF-8): Narzędzia hunspella
-Group: Development/Libraries
+Group: Development/Tools
Requires: %{name} = %{version}-%{release}
Obsoletes: myspell-tools
Ten pakiet zawiera narzędzia dla hunspella, w tym programy munch i
unmunch.
+%package libs
+Summary: Hunspell spell checker and morphological analyzer library
+Summary(pl.UTF-8): Biblioteka Hunspell do sprawdzania pisowni i analizy morfologicznej
+Group: Libraries
+
+%description libs
+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,
+OpenOffice.org UNO module.
+
+This package contains the shared library.
+
+%description libs -l pl.UTF-8
+hunspell to biblioteka oraz program do sprawdzania pisowni i analizy
+morfologicznej zaprojektowany dla języków z bogatą morfologią i
+zkomplikowanym składaniem słów lub kodowaniem znaków. Interfejsy
+hunspella to: interfejs terminalowy w stylu Ispella korzystający z
+biblioteki Curses, interfejs potokowy Ispella, moduł UNO
+OpenOffice.org.
+
+Ten pakiet zawiera bibliotekę współdzieloną.
+
%package devel
Summary: Files for developing with hunspell
Summary(pl.UTF-8): Pliki do programowania z użyciem hunspella
Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}-libs = %{version}-%{release}
Requires: libstdc++-devel
%description devel
%{__automake}
CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses"
%configure \
- --with-ui \
- --with-readline
+ --with-readline \
+ --with-ui
%{__make}
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS AUTHORS.myspell BUGS COPYING ChangeLog NEWS README README.myspell THANKS TODO license.hunspell license.myspell
%attr(755,root,root) %{_bindir}/hunspell
%attr(755,root,root) %{_bindir}/hunzip
%attr(755,root,root) %{_bindir}/hzip
-%attr(755,root,root) %{_libdir}/libhunspell-1.4.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libhunspell-1.4.so.0
%{_mandir}/man1/hunzip.1*
%{_mandir}/man1/hzip.1*
%{_mandir}/man1/hunspell.1*
%attr(755,root,root) %{_bindir}/wordforms
%attr(755,root,root) %{_bindir}/wordlist2hunspell
+%files libs
+%defattr(644,root,root,755)
+%doc AUTHORS AUTHORS.myspell BUGS COPYING ChangeLog NEWS README README.myspell THANKS TODO license.hunspell license.myspell
+%attr(755,root,root) %{_libdir}/libhunspell-1.4.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libhunspell-1.4.so.0
+
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libhunspell-1.4.so