]>
Commit | Line | Data |
---|---|---|
f7cc4b3c JB |
1 | Summary: hfst-ospell library and toy commandline tester |
2 | Summary(pl.UTF-8): Biblioteka hfst-ospell i program testowy | |
3 | Name: hfst-ospell | |
d6008a61 | 4 | Version: 0.5.2 |
8b5e2ac8 | 5 | Release: 4 |
f7cc4b3c JB |
6 | License: Apache v2.0 |
7 | Group: Applications/Text | |
91f33cf9 | 8 | #Source0Download: https://github.com/hfst/hfst-ospell/releases |
d6008a61 JP |
9 | Source0: https://github.com/hfst/hfst-ospell/archive/v%{version}/hfstospell-%{version}.tar.gz |
10 | # Source0-md5: f625099c311cabe6aa595668e60431ac | |
c2b287cf | 11 | Patch0: %{name}-demos.patch |
91f33cf9 | 12 | URL: http://hfst.github.io/ |
a48cdded JB |
13 | BuildRequires: autoconf >= 2.62 |
14 | BuildRequires: automake >= 1:1.11 | |
ef825f11 | 15 | BuildRequires: libarchive-devel >= 3.0.1 |
c2b287cf | 16 | BuildRequires: libicu-devel >= 4 |
ef825f11 JB |
17 | # -std=c++14 |
18 | BuildRequires: libstdc++-devel >= 6:5.0 | |
e91afc40 | 19 | BuildRequires: libxml++2-devel >= 2.10.0 |
a48cdded JB |
20 | BuildRequires: libtool >= 2:2.2.6 |
21 | BuildRequires: pkgconfig | |
e91afc40 | 22 | Requires: libxml++2 >= 2.10.0 |
f7cc4b3c JB |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
26 | This is a minimal hfst optimized lookup format based spell checker | |
27 | library and a demonstrational implementation of command line based | |
28 | spell checker. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Ten pakiet zawiera minimalną bibliotekę do sprawdzania pisowni przy | |
32 | użyciu zoptymalizowanego wyszukiwania hfst oraz demonstracyjną | |
33 | implementację działającego z linii poleceń programu do sprawdzania | |
34 | pisowni. | |
35 | ||
36 | %package devel | |
37 | Summary: Header files for hfst-ospell library | |
38 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki hfst-ospell | |
39 | Group: Development/Libraries | |
40 | Requires: %{name} = %{version}-%{release} | |
ef825f11 | 41 | Requires: libarchive-devel >= 3.0.1 |
c2b287cf | 42 | Requires: libicu-devel >= 4 |
ef825f11 | 43 | Requires: libstdc++-devel >= 6:5.0 |
e91afc40 | 44 | Requires: libxml++2-devel >= 2.10.0 |
f7cc4b3c JB |
45 | |
46 | %description devel | |
47 | Header files for hfst-ospell library. | |
48 | ||
49 | %description devel -l pl.UTF-8 | |
50 | Pliki nagłówkowe biblioteki hfst-ospell. | |
51 | ||
52 | %package static | |
53 | Summary: Static hfst-ospell library | |
54 | Summary(pl.UTF-8): Statyczna biblioteka hfst-ospell | |
55 | Group: Development/Libraries | |
56 | Requires: %{name}-devel = %{version}-%{release} | |
57 | ||
58 | %description static | |
59 | Static hfst-ospell library. | |
60 | ||
61 | %description static -l pl.UTF-8 | |
62 | Statyczna biblioteka hfst-ospell. | |
63 | ||
64 | %prep | |
d6008a61 | 65 | %setup -q |
a48cdded | 66 | %patch0 -p1 |
f7cc4b3c JB |
67 | |
68 | %build | |
a48cdded JB |
69 | %{__libtoolize} |
70 | %{__aclocal} | |
71 | %{__autoconf} | |
72 | %{__autoheader} | |
73 | %{__automake} | |
f7cc4b3c | 74 | %configure \ |
a48cdded JB |
75 | HFST_TXT2FST=/usr/bin/hfst-txt2fst \ |
76 | HFST_FST2FST=/usr/bin/hfst-fst2fst \ | |
77 | ZIP=/usr/bin/zip \ | |
c2b287cf | 78 | --enable-extra-demos \ |
f7cc4b3c JB |
79 | --disable-silent-rules |
80 | %{__make} | |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %{__make} install \ | |
86 | DESTDIR=$RPM_BUILD_ROOT | |
87 | ||
91f33cf9 JB |
88 | # obsoleted by pkg-config |
89 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhfstospell.la | |
90 | ||
f7cc4b3c JB |
91 | %clean |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
d02d855f JB |
94 | %post -p /sbin/ldconfig |
95 | %postun -p /sbin/ldconfig | |
96 | ||
f7cc4b3c JB |
97 | %files |
98 | %defattr(644,root,root,755) | |
99 | %doc AUTHORS ChangeLog NEWS README | |
c2b287cf | 100 | %attr(755,root,root) %{_bindir}/hfst-ispell |
f7cc4b3c | 101 | %attr(755,root,root) %{_bindir}/hfst-ospell |
a48cdded JB |
102 | %attr(755,root,root) %{_bindir}/hfst-ospell-cicling |
103 | %attr(755,root,root) %{_bindir}/hfst-ospell-fsmnlp-2012 | |
c2b287cf | 104 | %attr(755,root,root) %{_bindir}/hfst-ospell-lrec2013 |
a48cdded | 105 | %attr(755,root,root) %{_bindir}/hfst-ospell-norvig |
c2b287cf | 106 | %attr(755,root,root) %{_bindir}/hfst-ospell-office |
a48cdded | 107 | %attr(755,root,root) %{_bindir}/hfst-ospell-survey |
f7cc4b3c | 108 | %attr(755,root,root) %{_libdir}/libhfstospell.so.*.*.* |
ef825f11 | 109 | %attr(755,root,root) %ghost %{_libdir}/libhfstospell.so.11 |
c2b287cf | 110 | %{_mandir}/man1/hfst-ospell.1* |
91f33cf9 | 111 | %{_mandir}/man1/hfst-ospell-office.1* |
f7cc4b3c JB |
112 | |
113 | %files devel | |
114 | %defattr(644,root,root,755) | |
115 | %attr(755,root,root) %{_libdir}/libhfstospell.so | |
a48cdded | 116 | %{_includedir}/ZHfstOspeller*.h |
f7cc4b3c | 117 | %{_includedir}/hfst-ol.h |
e33c5a5a | 118 | %{_includedir}/hfstol-stdafx.h |
a48cdded | 119 | %{_includedir}/ol-exceptions.h |
f7cc4b3c JB |
120 | %{_includedir}/ospell.h |
121 | %{_pkgconfigdir}/hfstospell.pc | |
122 | ||
123 | %files static | |
124 | %defattr(644,root,root,755) | |
125 | %{_libdir}/libhfstospell.a |