summaryrefslogtreecommitdiff
path: root/packaging/hunspell.spec
blob: a7a5636cc533c1a62856150fd1deff935836a4d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
Name:           hunspell
Version:        1.3.2
Release:        0
License:        (GPL-2.0+ or LGPL-2.1+ or MPL-1.1+) and LGPL-2.1+
Summary:        Hunspell - a spell checker and morphological analyzer library
Url:            http://hunspell.sourceforge.net/
Group:          System/Libraries
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  autoconf >= 2.59
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  libstdc++-devel
BuildRequires:  libtool
BuildRequires:  ncurses-devel >= 5.0
BuildRequires:  pkg-config
BuildRequires:  readline-devel

%description
Hunspell is a spell checker and morphological analyzer library and
program designed for languages with rich morphology and complex word
compounding or character encoding. Hunspell interfaces: Ispell-like
terminal interface using Curses library, Ispell pipe interface,
LibreOffice or OpenOffice.org UNO module.

%package tools
Summary:        Hunspell tools
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}

%description tools
This package contains munch and unmunch programs.

%package devel
Summary:        Files for developing with hunspell
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}
Requires:       libstdc++-devel
Requires:       pkgconfig

%description devel
Includes and definitions for developing with hunspell.

%package static
Summary:        Static hunspell library
Group:          Development/Libraries/Other
Requires:       %{name}-devel = %{version}

%description static
Static hunspell library.

%prep
%setup -q

%build
%configure \
	--with-ui \
	--with-readline
make %{?_smp_mflags}

%check
make check
%install
%make_install
rm -f %{buildroot}%{_bindir}/example
install -m 644 src/tools/{,un}munch.h %{buildroot}%{_includedir}
rm -rf %{buildroot}%{_mandir}/hu
%find_lang %{name}


%post	-p /sbin/ldconfig -p /sbin/ldconfig

%postun	-p /sbin/ldconfig -p /sbin/ldconfig


%docs_package

%files -f %{name}.lang
%defattr(644,root,root,755)
%doc COPYING license.hunspell license.myspell
%attr(755,root,root) %{_bindir}/hunspell
%attr(755,root,root) %{_libdir}/libhunspell*.so*
%exclude %{_libdir}/libhunspell*.so

%files tools
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/analyze
%attr(755,root,root) %{_bindir}/chmorph
%attr(755,root,root) %{_bindir}/munch
%attr(755,root,root) %{_bindir}/unmunch
%attr(755,root,root) %{_bindir}/hunzip
%attr(755,root,root) %{_bindir}/hzip
%attr(755,root,root) %{_bindir}/affixcompress
%attr(755,root,root) %{_bindir}/ispellaff2myspell
%attr(755,root,root) %{_bindir}/makealias
%attr(755,root,root) %{_bindir}/wordforms
%attr(755,root,root) %{_bindir}/wordlist2hunspell

%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libhunspell-*.so
%{_libdir}/libhunspell-*.la
%{_libdir}/libparsers.a
%{_includedir}/%{name}
%{_includedir}/munch.h
%{_includedir}/unmunch.h
%{_libdir}/pkgconfig/hunspell.pc

%files static
%defattr(644,root,root,755)
%{_libdir}/libhunspell-*.a