]> git.pld-linux.org Git - packages/hunspell.git/blob - hunspell.spec
- rebuild with readline 7.0
[packages/hunspell.git] / hunspell.spec
1 Summary:        Hunspell - a spell checker and morphological analyzer
2 Summary(hu.UTF-8):      Hunspell egy helyesírás-ellenőrző és morfológiai elemző könyvtár és program
3 Summary(pl.UTF-8):      hunspell - narzędzie do sprawdzania pisowni i analizy morfologicznej
4 Name:           hunspell
5 Version:        1.4.1
6 Release:        2
7 License:        MPL v1.1 or GPL v2+ or LGPL v2.1+
8 Group:          Applications/Text
9 #Source0Download: https://github.com/hunspell/hunspell/releases
10 Source0:        https://github.com/hunspell/hunspell/archive/v%{version}/%{name}-%{version}.tar.gz
11 # Source0-md5:  33d370f7fe5a030985e445a5672b2067
12 Patch0:         %{name}-install.patch
13 URL:            http://hunspell.github.io/
14 BuildRequires:  autoconf >= 2.59
15 BuildRequires:  automake
16 BuildRequires:  gettext-tools >= 0.17
17 BuildRequires:  libstdc++-devel
18 BuildRequires:  libtool >= 2:1.5
19 BuildRequires:  ncurses-devel >= 5.0
20 BuildRequires:  readline-devel
21 Requires:       %{name}-libs = %{version}-%{release}
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Hunspell is a spell checker and morphological analyzer library and
26 program designed for languages with rich morphology and complex word
27 compounding or character encoding. Hunspell interfaces: Ispell-like
28 terminal interface using Curses library, Ispell pipe interface,
29 OpenOffice.org UNO module.
30
31 This package contains base programs (hunspell, hzip, hunzip).
32
33 %description -l hu.UTF-8
34 Hunspell is a spell checker and morphological analyzer library and
35 program designed for languages with rich morphology and complex word
36 compounding or character encoding. Hunspell interfaces: Ispell-like
37 terminal interface using Curses library, Ispell pipe interface,
38 OpenOffice.org UNO module.
39
40 %description -l pl.UTF-8
41 hunspell to biblioteka oraz program do sprawdzania pisowni i analizy
42 morfologicznej zaprojektowany dla języków z bogatą morfologią i
43 zkomplikowanym składaniem słów lub kodowaniem znaków. Interfejsy
44 hunspella to: interfejs terminalowy w stylu Ispella korzystający z
45 biblioteki Curses, interfejs potokowy Ispella, moduł UNO
46 OpenOffice.org.
47
48 Ten pakiet zawiera podstawowe programy (hunspell, hzip, hunzip).
49
50 %package tools
51 Summary:        hunspell tools
52 Summary(pl.UTF-8):      Narzędzia hunspella
53 Group:          Development/Tools
54 Requires:       %{name} = %{version}-%{release}
55 Obsoletes:      myspell-tools
56
57 %description tools
58 This package contains hunspell utilities, including munch and unmunch.
59
60 %description tools -l pl.UTF-8
61 Ten pakiet zawiera narzędzia dla hunspella, w tym programy munch i
62 unmunch.
63
64 %package libs
65 Summary:        Hunspell spell checker and morphological analyzer library
66 Summary(pl.UTF-8):      Biblioteka Hunspell do sprawdzania pisowni i analizy morfologicznej
67 Group:          Libraries
68
69 %description libs
70 Hunspell is a spell checker and morphological analyzer library and
71 program designed for languages with rich morphology and complex word
72 compounding or character encoding. Hunspell interfaces: Ispell-like
73 terminal interface using Curses library, Ispell pipe interface,
74 OpenOffice.org UNO module.
75
76 This package contains the shared library.
77
78 %description libs -l pl.UTF-8
79 hunspell to biblioteka oraz program do sprawdzania pisowni i analizy
80 morfologicznej zaprojektowany dla języków z bogatą morfologią i
81 zkomplikowanym składaniem słów lub kodowaniem znaków. Interfejsy
82 hunspella to: interfejs terminalowy w stylu Ispella korzystający z
83 biblioteki Curses, interfejs potokowy Ispella, moduł UNO
84 OpenOffice.org.
85
86 Ten pakiet zawiera bibliotekę współdzieloną.
87
88 %package devel
89 Summary:        Files for developing with hunspell
90 Summary(pl.UTF-8):      Pliki do programowania z użyciem hunspella
91 Group:          Development/Libraries
92 Requires:       %{name}-libs = %{version}-%{release}
93 Requires:       libstdc++-devel
94
95 %description devel
96 Includes and definitions for developing with hunspell.
97
98 %description devel -l hu.UTF-8
99 Header-fájlok és definíciók hunspell-lel való fejlesztéshez.
100
101 %description devel -l pl.UTF-8
102 Pliki nagłówkowe i definicje do programowania z użyciem hunspella.
103
104 %package static
105 Summary:        Static hunspell library
106 Summary(pl.UTF-8):      Statyczna biblioteka hunspella
107 Group:          Development/Libraries
108 Requires:       %{name}-devel = %{version}-%{release}
109
110 %description static
111 Static hunspell library.
112
113 %description static -l hu.UTF-8
114 Hunspell statikus könyvtár.
115
116 %description static -l pl.UTF-8
117 Statyczna biblioteka hunspella.
118
119 %prep
120 %setup -q
121 %patch0 -p1
122
123 # stale file in source tarball (even though *.gmo are not included), breaks locale install
124 %{__rm} po/stamp-po
125
126 %build
127 %{__gettextize}
128 %{__libtoolize}
129 %{__aclocal} -I m4
130 %{__autoconf}
131 %{__autoheader}
132 %{__automake}
133 CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses"
134 %configure \
135         --with-readline \
136         --with-ui
137
138 %{__make}
139
140 %install
141 rm -rf $RPM_BUILD_ROOT
142
143 %{__make} install \
144         DESTDIR=$RPM_BUILD_ROOT
145
146 # obsoleted by pkg-config
147 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhunspell-*.la
148
149 %find_lang %{name}
150
151 %clean
152 rm -rf $RPM_BUILD_ROOT
153
154 %post   libs -p /sbin/ldconfig
155 %postun libs -p /sbin/ldconfig
156
157 %files -f %{name}.lang
158 %defattr(644,root,root,755)
159 %attr(755,root,root) %{_bindir}/hunspell
160 %attr(755,root,root) %{_bindir}/hunzip
161 %attr(755,root,root) %{_bindir}/hzip
162 %{_mandir}/man1/hunzip.1*
163 %{_mandir}/man1/hzip.1*
164 %{_mandir}/man1/hunspell.1*
165 %{_mandir}/man5/hunspell.5*
166 %lang(hu) %{_mandir}/hu/man1/hunspell.1*
167 %lang(hu) %{_mandir}/hu/man5/hunspell.5*
168
169 %files tools
170 %defattr(644,root,root,755)
171 %attr(755,root,root) %{_bindir}/affixcompress
172 %attr(755,root,root) %{_bindir}/analyze
173 %attr(755,root,root) %{_bindir}/chmorph
174 %attr(755,root,root) %{_bindir}/ispellaff2myspell
175 %attr(755,root,root) %{_bindir}/makealias
176 %attr(755,root,root) %{_bindir}/munch
177 %attr(755,root,root) %{_bindir}/unmunch
178 %attr(755,root,root) %{_bindir}/wordforms
179 %attr(755,root,root) %{_bindir}/wordlist2hunspell
180
181 %files libs
182 %defattr(644,root,root,755)
183 %doc AUTHORS AUTHORS.myspell BUGS COPYING ChangeLog NEWS README README.myspell THANKS TODO license.hunspell license.myspell
184 %attr(755,root,root) %{_libdir}/libhunspell-1.4.so.*.*.*
185 %attr(755,root,root) %ghost %{_libdir}/libhunspell-1.4.so.0
186
187 %files devel
188 %defattr(644,root,root,755)
189 %attr(755,root,root) %{_libdir}/libhunspell-1.4.so
190 %{_includedir}/hunspell
191 %{_pkgconfigdir}/hunspell.pc
192 %{_mandir}/man3/hunspell.3*
193
194 %files static
195 %defattr(644,root,root,755)
196 %{_libdir}/libhunspell-1.4.a
This page took 0.075585 seconds and 3 git commands to generate.