]> git.pld-linux.org Git - packages/hunspell.git/blob - hunspell.spec
- hun desc and summary to _hun_spell program ;)
[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 pl.UTF-8
59 Ten pakiet zawiera programy munch i unmunch.
60
61 %package devel
62 Summary:        Files for developing with hunspell
63 Summary(pl.UTF-8):      Pliki do programowania z użyciem hunspella
64 Group:          Development/Libraries
65 Requires:       %{name} = %{version}-%{release}
66 Requires:       libstdc++-devel
67
68 %description devel
69 Includes and definitions for developing with hunspell.
70
71 %description devel -l pl.UTF-8
72 Pliki nagłówkowe i definicje do programowania z użyciem hunspella.
73
74 %package static
75 Summary:        Static hunspell library
76 Summary(pl.UTF-8):      Statyczna biblioteka hunspella
77 Group:          Development/Libraries
78 Requires:       %{name}-devel = %{version}-%{release}
79
80 %description static
81 Static hunspell library.
82
83 %description static -l pl.UTF-8
84 Statyczna biblioteka hunspella.
85
86 %prep
87 %setup -q
88 %patch0 -p1
89
90 %build
91 %{__gettextize}
92 %{__libtoolize}
93 %{__aclocal} -I m4
94 %{__autoconf}
95 %{__automake}
96 CPPFLAGS="-I/usr/include/ncurses"
97 %configure \
98         --with-ui \
99         --with-readline
100
101 %{__make}
102
103 %install
104 rm -rf $RPM_BUILD_ROOT
105
106 %{__make} install \
107         DESTDIR=$RPM_BUILD_ROOT
108
109 ln -s $(basename $RPM_BUILD_ROOT%{_libdir}/libhunspell-1.2.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libhunspell.so.1
110 %find_lang %{name}
111
112 rm -f $RPM_BUILD_ROOT%{_bindir}/example
113
114 %clean
115 rm -rf $RPM_BUILD_ROOT
116
117 %post   -p /sbin/ldconfig
118 %postun -p /sbin/ldconfig
119
120 %files -f %{name}.lang
121 %defattr(644,root,root,755)
122 %doc AUTHORS AUTHORS.myspell COPYING ChangeLog NEWS README README.myspell THANKS license.hunspell license.myspell
123 %attr(755,root,root) %{_bindir}/hunspell
124 %attr(755,root,root) %{_bindir}/hunzip
125 %attr(755,root,root) %{_bindir}/hzip
126 %attr(755,root,root) %{_libdir}/libhunspell-*.*.so.*.*.*
127 %attr(755,root,root) %ghost %{_libdir}/libhunspell-*.*.so.0
128 %attr(755,root,root) %{_libdir}/libhunspell.so.1
129 %{_mandir}/man1/hunzip.1*
130 %{_mandir}/man1/hzip.1*
131 %{_mandir}/man1/hunspell.1*
132 %{_mandir}/man4/hunspell.4*
133 %lang(hu) %{_mandir}/hu/man1/hunspell.1*
134 %lang(hu) %{_mandir}/hu/man4/hunspell.4*
135
136 %files tools
137 %defattr(644,root,root,755)
138 %attr(755,root,root) %{_bindir}/analyze
139 %attr(755,root,root) %{_bindir}/chmorph
140 %attr(755,root,root) %{_bindir}/munch
141 %attr(755,root,root) %{_bindir}/unmunch
142
143 %files devel
144 %defattr(644,root,root,755)
145 %attr(755,root,root) %{_libdir}/libhunspell-*.*.so
146 %{_libdir}/libhunspell-*.*.la
147 %{_libdir}/libparsers.a
148 %{_includedir}/%{name}
149 %{_includedir}/munch.h
150 %{_includedir}/unmunch.h
151 %{_pkgconfigdir}/hunspell.pc
152 %{_mandir}/man3/hunspell.3*
153
154 %files static
155 %defattr(644,root,root,755)
156 %{_libdir}/libhunspell-*.*.a
This page took 0.091812 seconds and 4 git commands to generate.