forked from AngryPenguinPL/enchant2
/
enchant2.spec
112 lines (89 loc) · 2.87 KB
/
enchant2.spec
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
111
112
%define _disable_rebuild_configure 1
%global api 2
%global major 2
%define libname %mklibname enchant %api %major
%define devname %mklibname -d enchant %api
Name: enchant2
Version: 2.6.9
Release: 1
Summary: An Enchanting Spell Checking Library
Group: System/Libraries
License: LGPLv2+
URL: https://github.com/AbiWord/enchant
Source0: https://github.com/AbiWord/enchant/releases/download/v%{version}/enchant-%{version}.tar.gz
Patch0: enchant-2.5.0-clang16.patch
BuildRequires: groff
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: aspell-devel
BuildRequires: hunspell-devel
BuildRequires: hspell-devel
BuildRequires: pkgconfig(libvoikko)
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: slibtool
BuildRequires: make
Provides: bundled(gnulib)
Conflicts: %{_lib}enchant2 < 2.2.3-2
%description
A library that wraps other spell checking backends.
%package aspell
Summary: Integration with aspell for libenchant
%description aspell
Libraries necessary to integrate applications using libenchant with aspell.
%package voikko
Summary: Integration with voikko for libenchant
%description voikko
Libraries necessary to integrate applications using libenchant with voikko.
%package hspell
Summary: Integration with hspell for libenchant
%description hspell
Libraries necessary to integrate applications using libenchant with hspell.
%package -n %libname
Summary: An Enchanting Spell Checking Library
Group: System/Libraries
Obsoletes: %{_lib}enchant2 < 2.2.3-2
%description -n %libname
A library that wraps other spell checking backends.
%package -n %devname
Group: Development/C
Summary: Development files for %{name}
Provides: enchant2-devel
Requires: %libname%{?_isa} = %{version}-%{release}
%description -n %devname
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -p1 -n enchant-%{version}
%build
%configure \
--with-aspell \
--with-hunspell-dir=%{_datadir}/dict/ooo \
--disable-static
%make_build pkgdatadir=%{_datadir}/enchant-2 LIBTOOL=slibtool-shared
%install
%make_install pkgdatadir=%{_datadir}/enchant-2 LIBTOOL=slibtool-shared
find %{buildroot} -name '*.la' -delete
%files
%doc AUTHORS NEWS README
%doc %{_datadir}/doc/enchant/
%license COPYING.LIB
%{_bindir}/enchant-2
%{_bindir}/enchant-lsmod-2
%{_mandir}/man1/*
%{_mandir}/man5/enchant.5.*
%{_datadir}/enchant-2-2/enchant.ordering
%files -n %libname
%license COPYING.LIB
%{_libdir}/libenchant-%{api}.so.%{major}{,.*}
%dir %{_libdir}/enchant-2/
%{_libdir}/enchant-2/enchant_hunspell.so
%files aspell
%{_libdir}/enchant-2/enchant_aspell.so
%files voikko
%{_libdir}/enchant-2/enchant_voikko.so
%files hspell
%{_libdir}/enchant-2/enchant_hspell.so
%files -n %devname
%{_libdir}/libenchant-2.so
%{_libdir}/pkgconfig/enchant-2.pc
%{_includedir}/enchant-2/