]> git.pld-linux.org Git - packages/hunspell.git/blob - hunspell.spec
5af8b452cb84308c6068d0ffbeeb99689850471e
[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.3.3
6 Release:        1
7 License:        MPL v1.1 or GPL v2+ or LGPL v2.1+
8 Group:          Libraries
9 Source0:        http://downloads.sourceforge.net/hunspell/%{name}-%{version}.tar.gz
10 # Source0-md5:  4967da60b23413604c9e563beacc63b4
11 Patch0:         %{name}-install.patch
12 URL:            http://hunspell.sourceforge.net/
13 BuildRequires:  autoconf >= 2.59
14 BuildRequires:  automake
15 BuildRequires:  gettext-devel >= 0.17
16 BuildRequires:  libstdc++-devel
17 BuildRequires:  libtool >= 2:1.5
18 BuildRequires:  ncurses-devel >= 5.0
19 BuildRequires:  readline-devel
20 %ifarch %{x8664} ia64 ppc64 s390x sparc64
21 Provides:       libhunspell.so.1()(64bit)
22 %else
23 Provides:       libhunspell.so.1
24 %endif
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 Hunspell is a spell checker and morphological analyzer library and
29 program designed for languages with rich morphology and complex word
30 compounding or character encoding. Hunspell interfaces: Ispell-like
31 terminal interface using Curses library, Ispell pipe interface,
32 OpenOffice.org UNO module.
33
34 %description -l hu.UTF-8
35 Hunspell is a spell checker and morphological analyzer library and
36 program designed for languages with rich morphology and complex word
37 compounding or character encoding. Hunspell interfaces: Ispell-like
38 terminal interface using Curses library, Ispell pipe interface,
39 OpenOffice.org UNO module.
40
41 %description -l pl.UTF-8
42 hunspell to biblioteka oraz program do sprawdzania pisowni i analizy
43 morfologicznej zaprojektowany dla języków z bogatą morfologią i
44 zkomplikowanym składaniem słów lub kodowaniem znaków. Interfejsy
45 hunspella to: interfejs terminalowy w stylu Ispella korzystający z
46 biblioteki Curses, interfejs potokowy Ispella, moduł UNO
47 OpenOffice.org.
48
49 # NOTE: munch,unmunch collide with myspell-tools
50 %package tools
51 Summary:        hunspell tools
52 Summary(pl.UTF-8):      Narzędzia hunspella
53 Group:          Development/Libraries
54 Requires:       %{name} = %{version}-%{release}
55
56 %description tools
57 This package contains hunspell utilities, including munch and unmunch.
58
59 %description tools -l pl.UTF-8
60 Ten pakiet zawiera narzędzia dla hunspella, w tym programy munch i
61 unmunch.
62
63 %package devel
64 Summary:        Files for developing with hunspell
65 Summary(pl.UTF-8):      Pliki do programowania z użyciem hunspella
66 Group:          Development/Libraries
67 Requires:       %{name} = %{version}-%{release}
68 Requires:       libstdc++-devel
69
70 %description devel
71 Includes and definitions for developing with hunspell.
72
73 %description devel -l hu.UTF-8
74 Header-fájlok és definíciók hunspell-lel való fejlesztéshez.
75
76 %description devel -l pl.UTF-8
77 Pliki nagłówkowe i definicje do programowania z użyciem hunspella.
78
79 %package static
80 Summary:        Static hunspell library
81 Summary(pl.UTF-8):      Statyczna biblioteka hunspella
82 Group:          Development/Libraries
83 Requires:       %{name}-devel = %{version}-%{release}
84
85 %description static
86 Static hunspell library.
87
88 %description static -l hu.UTF-8
89 Hunspell statikus könyvtár.
90
91 %description static -l pl.UTF-8
92 Statyczna biblioteka hunspella.
93
94 %prep
95 %setup -q
96 %patch0 -p1
97
98 %build
99 %{__gettextize}
100 %{__libtoolize}
101 %{__aclocal} -I m4
102 %{__autoconf}
103 %{__automake}
104 CPPFLAGS="-I/usr/include/ncurses"
105 %configure \
106         --with-ui \
107         --with-readline
108
109 %{__make}
110
111 %install
112 rm -rf $RPM_BUILD_ROOT
113
114 %{__make} install \
115         DESTDIR=$RPM_BUILD_ROOT
116
117 ln -sf $(basename $RPM_BUILD_ROOT%{_libdir}/libhunspell-1.3.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libhunspell.so.1
118 %find_lang %{name}
119
120 %clean
121 rm -rf $RPM_BUILD_ROOT
122
123 %post   -p /sbin/ldconfig
124 %postun -p /sbin/ldconfig
125
126 %files -f %{name}.lang
127 %defattr(644,root,root,755)
128 %doc AUTHORS AUTHORS.myspell COPYING ChangeLog NEWS README README.myspell THANKS license.hunspell license.myspell
129 %attr(755,root,root) %{_bindir}/hunspell
130 %attr(755,root,root) %{_bindir}/hunzip
131 %attr(755,root,root) %{_bindir}/hzip
132 %attr(755,root,root) %{_libdir}/libhunspell-1.3.so.*.*.*
133 %attr(755,root,root) %ghost %{_libdir}/libhunspell-1.3.so.0
134 %attr(755,root,root) %{_libdir}/libhunspell.so.1
135 %{_mandir}/man1/hunzip.1*
136 %{_mandir}/man1/hzip.1*
137 %{_mandir}/man1/hunspell.1*
138 %{_mandir}/man5/hunspell.5*
139 %lang(hu) %{_mandir}/hu/man1/hunspell.1*
140 %lang(hu) %{_mandir}/hu/man5/hunspell.5*
141
142 %files tools
143 %defattr(644,root,root,755)
144 %attr(755,root,root) %{_bindir}/affixcompress
145 %attr(755,root,root) %{_bindir}/analyze
146 %attr(755,root,root) %{_bindir}/chmorph
147 %attr(755,root,root) %{_bindir}/ispellaff2myspell
148 %attr(755,root,root) %{_bindir}/makealias
149 %attr(755,root,root) %{_bindir}/munch
150 %attr(755,root,root) %{_bindir}/unmunch
151 %attr(755,root,root) %{_bindir}/wordforms
152 %attr(755,root,root) %{_bindir}/wordlist2hunspell
153
154 %files devel
155 %defattr(644,root,root,755)
156 %attr(755,root,root) %{_libdir}/libhunspell-1.3.so
157 %{_libdir}/libhunspell-1.3.la
158 %{_includedir}/hunspell
159 %{_pkgconfigdir}/hunspell.pc
160 %{_mandir}/man3/hunspell.3*
161
162 %files static
163 %defattr(644,root,root,755)
164 %{_libdir}/libhunspell-1.3.a
This page took 0.132046 seconds and 2 git commands to generate.