]> git.pld-linux.org Git - packages/hunspell.git/blob - hunspell.spec
377f9e8e6515527fc487dcdfd6d4a4a9b5a32383
[packages/hunspell.git] / hunspell.spec
1 # TODO:
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
7 Name:           hunspell
8 Version:        1.3.2
9 Release:        1
10 License:        MPL v1.1 or GPL v2+ or LGPL v2.1+
11 Group:          Libraries
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)
25 %else
26 Provides:       libhunspell.so.1
27 %endif
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
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.
36
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.
43
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
50 OpenOffice.org.
51
52 # NOTE: munch,unmunch collide with myspell-tools
53 %package tools
54 Summary:        hunspell tools
55 Summary(pl.UTF-8):      Narzędzia hunspella
56 Group:          Development/Libraries
57 Requires:       %{name} = %{version}-%{release}
58
59 %description tools
60 This package contains hunspell utilities, including munch and unmunch.
61
62 %description tools -l pl.UTF-8
63 Ten pakiet zawiera narzędzia dla hunspella, w tym programy munch i
64 unmunch.
65
66 %package devel
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
72
73 %description devel
74 Includes and definitions for developing with hunspell.
75
76 %description devel -l hu.UTF-8
77 Header-fájlok és definíciók hunspell-lel való fejlesztéshez.
78
79 %description devel -l pl.UTF-8
80 Pliki nagłówkowe i definicje do programowania z użyciem hunspella.
81
82 %package static
83 Summary:        Static hunspell library
84 Summary(pl.UTF-8):      Statyczna biblioteka hunspella
85 Group:          Development/Libraries
86 Requires:       %{name}-devel = %{version}-%{release}
87
88 %description static
89 Static hunspell library.
90
91 %description static -l hu.UTF-8
92 Hunspell statikus könyvtár.
93
94 %description static -l pl.UTF-8
95 Statyczna biblioteka hunspella.
96
97 %prep
98 %setup -q
99 %patch0 -p1
100
101 %build
102 %{__gettextize}
103 %{__libtoolize}
104 %{__aclocal} -I m4
105 %{__autoconf}
106 %{__automake}
107 CPPFLAGS="-I/usr/include/ncurses"
108 %configure \
109         --with-ui \
110         --with-readline
111
112 %{__make}
113
114 %install
115 rm -rf $RPM_BUILD_ROOT
116
117 %{__make} install \
118         DESTDIR=$RPM_BUILD_ROOT
119
120 ln -sf $(basename $RPM_BUILD_ROOT%{_libdir}/libhunspell-1.3.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libhunspell.so.1
121 %find_lang %{name}
122
123 %clean
124 rm -rf $RPM_BUILD_ROOT
125
126 %post   -p /sbin/ldconfig
127 %postun -p /sbin/ldconfig
128
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*
144
145 %files tools
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
156
157 %files devel
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*
165
166 %files static
167 %defattr(644,root,root,755)
168 %{_libdir}/libhunspell-1.3.a
This page took 0.0789 seconds and 2 git commands to generate.