2 # $ LC_ALL=C hunspell -d hu_HU foo
3 # Hunspell has been compiled without Ncurses user interface.
4 Summary: Hunspell - a spell checker and morphological analyzer library
5 Summary(hu.UTF-8): Hunspell egy helyesírás-ellenőrző és morfológiai elemző könyvtár és program
6 Summary(pl.UTF-8): hunspell - biblioteka do sprawdzania pisowni i analizy morfologicznej
10 License: MPL v1.1 or GPL v2+ or LGPL v2.1+
12 Source0: http://downloads.sourceforge.net/hunspell/%{name}-%{version}.tar.gz
13 # Source0-md5: 3121aaf3e13e5d88dfff13fb4a5f1ab8
14 Patch0: %{name}-as-needed.patch
15 URL: http://hunspell.sourceforge.net/
16 BuildRequires: autoconf >= 2.59
17 BuildRequires: automake
18 BuildRequires: gettext-devel
19 BuildRequires: libstdc++-devel
20 BuildRequires: libtool >= 2:1.5
21 BuildRequires: ncurses-devel >= 5.0
22 BuildRequires: readline-devel
23 %ifarch %{x8664} ia64 ppc64 s390x sparc64
24 Provides: libhunspell.so.1()(64bit)
26 Provides: libhunspell.so.1
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Hunspell is a spell checker and morphological analyzer library and
32 program designed for languages with rich morphology and complex word
33 compounding or character encoding. Hunspell interfaces: Ispell-like
34 terminal interface using Curses library, Ispell pipe interface,
35 OpenOffice.org UNO module.
37 %description -l hu.UTF-8
38 Hunspell is a spell checker and morphological analyzer library and
39 program designed for languages with rich morphology and complex word
40 compounding or character encoding. Hunspell interfaces: Ispell-like
41 terminal interface using Curses library, Ispell pipe interface,
42 OpenOffice.org UNO module.
44 %description -l pl.UTF-8
45 hunspell to biblioteka oraz program do sprawdzania pisowni i analizy
46 morfologicznej zaprojektowany dla języków z bogatą morfologią i
47 zkomplikowanym składaniem słów lub kodowaniem znaków. Interfejsy
48 hunspella to: interfejs terminalowy w stylu Ispella korzystający z
49 biblioteki Curses, interfejs potokowy Ispella, moduł UNO
52 # NOTE: munch,unmunch collide with myspell-tools
54 Summary: hunspell tools
55 Summary(pl.UTF-8): Narzędzia hunspella
56 Group: Development/Libraries
57 Requires: %{name} = %{version}-%{release}
60 This package contains hunspell utilities, including munch and unmunch.
62 %description tools -l pl.UTF-8
63 Ten pakiet zawiera narzędzia dla hunspella, w tym programy munch i
67 Summary: Files for developing with hunspell
68 Summary(pl.UTF-8): Pliki do programowania z użyciem hunspella
69 Group: Development/Libraries
70 Requires: %{name} = %{version}-%{release}
71 Requires: libstdc++-devel
74 Includes and definitions for developing with hunspell.
76 %description devel -l hu.UTF-8
77 Header-fájlok és definíciók hunspell-lel való fejlesztéshez.
79 %description devel -l pl.UTF-8
80 Pliki nagłówkowe i definicje do programowania z użyciem hunspella.
83 Summary: Static hunspell library
84 Summary(pl.UTF-8): Statyczna biblioteka hunspella
85 Group: Development/Libraries
86 Requires: %{name}-devel = %{version}-%{release}
89 Static hunspell library.
91 %description static -l hu.UTF-8
92 Hunspell statikus könyvtár.
94 %description static -l pl.UTF-8
95 Statyczna biblioteka hunspella.
107 CPPFLAGS="-I/usr/include/ncurses"
115 rm -rf $RPM_BUILD_ROOT
118 DESTDIR=$RPM_BUILD_ROOT
120 ln -sf $(basename $RPM_BUILD_ROOT%{_libdir}/libhunspell-1.3.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libhunspell.so.1
124 rm -rf $RPM_BUILD_ROOT
126 %post -p /sbin/ldconfig
127 %postun -p /sbin/ldconfig
129 %files -f %{name}.lang
130 %defattr(644,root,root,755)
131 %doc AUTHORS AUTHORS.myspell COPYING ChangeLog NEWS README README.myspell THANKS license.hunspell license.myspell
132 %attr(755,root,root) %{_bindir}/hunspell
133 %attr(755,root,root) %{_bindir}/hunzip
134 %attr(755,root,root) %{_bindir}/hzip
135 %attr(755,root,root) %{_libdir}/libhunspell-1.3.so.*.*.*
136 %attr(755,root,root) %ghost %{_libdir}/libhunspell-1.3.so.0
137 %attr(755,root,root) %{_libdir}/libhunspell.so.1
138 %{_mandir}/man1/hunzip.1*
139 %{_mandir}/man1/hzip.1*
140 %{_mandir}/man1/hunspell.1*
141 %{_mandir}/man4/hunspell.4*
142 %lang(hu) %{_mandir}/hu/man1/hunspell.1*
143 %lang(hu) %{_mandir}/hu/man4/hunspell.4*
146 %defattr(644,root,root,755)
147 %attr(755,root,root) %{_bindir}/affixcompress
148 %attr(755,root,root) %{_bindir}/analyze
149 %attr(755,root,root) %{_bindir}/chmorph
150 %attr(755,root,root) %{_bindir}/ispellaff2myspell
151 %attr(755,root,root) %{_bindir}/makealias
152 %attr(755,root,root) %{_bindir}/munch
153 %attr(755,root,root) %{_bindir}/unmunch
154 %attr(755,root,root) %{_bindir}/wordforms
155 %attr(755,root,root) %{_bindir}/wordlist2hunspell
158 %defattr(644,root,root,755)
159 %attr(755,root,root) %{_libdir}/libhunspell-1.3.so
160 %{_libdir}/libhunspell-1.3.la
161 %{_libdir}/libparsers.a
162 %{_includedir}/hunspell
163 %{_pkgconfigdir}/hunspell.pc
164 %{_mandir}/man3/hunspell.3*
167 %defattr(644,root,root,755)
168 %{_libdir}/libhunspell-1.3.a