]> git.pld-linux.org Git - packages/hunspell.git/blob - hunspell.spec
- remaining hun
[packages/hunspell.git] / hunspell.spec
1 Summary:        Hunspell - a spell checker and morphological analyzer library
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 - biblioteka do sprawdzania pisowni i analizy morfologicznej
4 Name:           hunspell
5 Version:        1.2.8
6 Release:        1
7 License:        MPL v1.1 or GPL v2+ or LGPL v2.1+
8 Group:          Libraries
9 Source0:        http://dl.sourceforge.net/hunspell/%{name}-%{version}.tar.gz
10 # Source0-md5:  1177af54a09e320d2c24015f29c3a93e
11 Patch0:         %{name}-as-needed.patch
12 URL:            http://hunspell.sourceforge.net/
13 BuildRequires:  autoconf >= 2.59
14 BuildRequires:  automake
15 BuildRequires:  libstdc++-devel
16 BuildRequires:  libtool >= 2:1.5
17 BuildRequires:  ncurses-devel >= 5.0
18 BuildRequires:  readline-devel
19 %ifarch %{x8664} ia64 ppc64 s390x sparc64
20 Provides:       libhunspell.so.1()(64bit)
21 %else
22 Provides:       libhunspell.so.1
23 %endif
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Hunspell is a spell checker and morphological analyzer library and
28 program designed for languages with rich morphology and complex word
29 compounding or character encoding. Hunspell interfaces: Ispell-like
30 terminal interface using Curses library, Ispell pipe interface,
31 OpenOffice.org UNO module.
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 # NOTE: munch,unmunch collide with myspell-tools
49 %package tools
50 Summary:        hunspell tools
51 Summary(pl.UTF-8):      Narzędzia hunspella
52 Group:          Development/Libraries
53 Requires:       %{name} = %{version}-%{release}
54
55 %description tools
56 This package contains munch and unmunch programs.
57
58 %description tools -l hu.UTF-8
59 Ez a csomag a munch és unmunch programokat tartalmazza.
60
61 %description tools -l pl.UTF-8
62 Ten pakiet zawiera programy munch i unmunch.
63
64 %package devel
65 Summary:        Files for developing with hunspell
66 Summary(pl.UTF-8):      Pliki do programowania z użyciem hunspella
67 Group:          Development/Libraries
68 Requires:       %{name} = %{version}-%{release}
69 Requires:       libstdc++-devel
70
71 %description devel
72 Includes and definitions for developing with hunspell.
73
74 %description devel -l hu.UTF-8
75 Header-fájlok és definíciók hunspell-lel való fejlesztéshez.
76
77 %description devel -l pl.UTF-8
78 Pliki nagłówkowe i definicje do programowania z użyciem hunspella.
79
80 %package static
81 Summary:        Static hunspell library
82 Summary(pl.UTF-8):      Statyczna biblioteka hunspella
83 Group:          Development/Libraries
84 Requires:       %{name}-devel = %{version}-%{release}
85
86 %description static
87 Static hunspell library.
88
89 %description static -l hu.UTF-8
90 Hunspell statikus könyvtár.
91
92 %description static -l pl.UTF-8
93 Statyczna biblioteka hunspella.
94
95 %prep
96 %setup -q
97 %patch0 -p1
98
99 %build
100 %{__gettextize}
101 %{__libtoolize}
102 %{__aclocal} -I m4
103 %{__autoconf}
104 %{__automake}
105 CPPFLAGS="-I/usr/include/ncurses"
106 %configure \
107         --with-ui \
108         --with-readline
109
110 %{__make}
111
112 %install
113 rm -rf $RPM_BUILD_ROOT
114
115 %{__make} install \
116         DESTDIR=$RPM_BUILD_ROOT
117
118 ln -s $(basename $RPM_BUILD_ROOT%{_libdir}/libhunspell-1.2.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libhunspell.so.1
119 %find_lang %{name}
120
121 rm -f $RPM_BUILD_ROOT%{_bindir}/example
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-*.*.so.*.*.*
136 %attr(755,root,root) %ghost %{_libdir}/libhunspell-*.*.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}/analyze
148 %attr(755,root,root) %{_bindir}/chmorph
149 %attr(755,root,root) %{_bindir}/munch
150 %attr(755,root,root) %{_bindir}/unmunch
151
152 %files devel
153 %defattr(644,root,root,755)
154 %attr(755,root,root) %{_libdir}/libhunspell-*.*.so
155 %{_libdir}/libhunspell-*.*.la
156 %{_libdir}/libparsers.a
157 %{_includedir}/%{name}
158 %{_includedir}/munch.h
159 %{_includedir}/unmunch.h
160 %{_pkgconfigdir}/hunspell.pc
161 %{_mandir}/man3/hunspell.3*
162
163 %files static
164 %defattr(644,root,root,755)
165 %{_libdir}/libhunspell-*.*.a
This page took 0.101064 seconds and 3 git commands to generate.