]> git.pld-linux.org Git - packages/hunspell.git/blob - hunspell.spec
- new, based on fedora spec - http://cvs.fedora.redhat.com/viewcvs/devel/hunspell/
[packages/hunspell.git] / hunspell.spec
1 Summary:        Hunspell is a spell checker and morphological analyzer library
2 Name:           hunspell
3 Version:        1.1.4
4 Release:        0.3
5 Source0:        http://dl.sourceforge.net/hunspell/%{name}-%{version}.tar.gz
6 # Source0-md5:  4cf2dfb89dd58392ad5a1183c69eb628
7 License:        LGPL
8 Group:          Libraries
9 URL:            http://hunspell.sourceforge.net/
10 Patch0:         %{name}-sharedlibs.patch
11 Patch1:         %{name}-defaultdictfromlang.patch
12 Patch2:         %{name}-capi.patch
13 BuildRequires:  libtool
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 Hunspell is a spell checker and morphological analyzer library and
18 program designed for languages with rich morphology and complex word
19 compounding or character encoding. Hunspell interfaces: Ispell-like
20 terminal interface using Curses library, Ispell pipe interface,
21 OpenOffice.org UNO module.
22
23 # NOTE: munch,unmunch collide with myspell-devel
24 %package tools
25 Summary:        hunspell tools
26 Group:          Development/Libraries
27 Requires:       %{name} = %{version}-%{release}
28
29 %description tools
30 This package contains munch and unmunch programs.
31
32 %package devel
33 Summary:        Files for developing with hunspell
34 Group:          Development/Libraries
35 Requires:       %{name} = %{version}-%{release}
36
37 %description devel
38 Includes and definitions for developing with hunspell
39
40 %package static
41 Summary:        Static hunspell library
42 Group:          Development/Libraries
43 Requires:       %{name}-devel = %{version}-%{release}
44
45 %description static
46 Static hunspell library.
47
48 %prep
49 %setup -q
50 %patch0 -p1
51 %patch1 -p1
52 %patch2 -p1
53
54 %build
55 %{__libtoolize}
56 %{__aclocal} -I m4
57 %{__autoconf}
58 %{__automake}
59 %configure
60 %{__make}
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64 %{__make} install \
65         DESTDIR=$RPM_BUILD_ROOT
66
67 %find_lang %{name}
68
69 rm -f $RPM_BUILD_ROOT%{_bindir}/example
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %post   -p /sbin/ldconfig
75 %postun -p /sbin/ldconfig
76
77 %files -f %{name}.lang
78 %defattr(644,root,root,755)
79 %doc README README.myspell AUTHORS AUTHORS.myspell license.hunspell license.myspell THANKS
80 %attr(755,root,root) %{_bindir}/hunmorph
81 %attr(755,root,root) %{_bindir}/hunspell
82 %attr(755,root,root) %{_bindir}/hunstem
83 %attr(755,root,root) %{_libdir}/libhunspell.so.*.*.*
84 %{_mandir}/man1/hunspell.1*
85 %{_mandir}/man4/hunspell.4*
86 %lang(hu) %{_mandir}/hu/man1/hunspell.1*
87 %lang(hu) %{_mandir}/hu/man4/hunspell.4*
88
89 %files tools
90 %defattr(644,root,root,755)
91 %attr(755,root,root) %{_bindir}/munch
92 %attr(755,root,root) %{_bindir}/unmunch
93
94 %files devel
95 %defattr(644,root,root,755)
96 %{_libdir}/libhunspell.so
97 %{_libdir}/libhunspell.la
98 %{_includedir}/%{name}
99 %{_pkgconfigdir}/hunspell.pc
100
101 %files static
102 %defattr(644,root,root,755)
103 %{_libdir}/libhunspell.a
104 %{_libdir}/libparsers.a
This page took 0.090471 seconds and 4 git commands to generate.