1 Summary: hfst-ospell library and toy commandline tester
2 Summary(pl.UTF-8): Biblioteka hfst-ospell i program testowy
7 Group: Applications/Text
8 #Source0Download: https://github.com/hfst/hfst-ospell/releases
9 Source0: https://github.com/hfst/hfst-ospell/releases/download/v%{version}/hfstospell-%{version}.tar.gz
10 # Source0-md5: 019be86c2461190f12f9889b65117550
11 Patch0: %{name}-demos.patch
12 URL: http://hfst.github.io/
13 BuildRequires: autoconf >= 2.62
14 BuildRequires: automake >= 1:1.11
15 BuildRequires: libarchive-devel >= 2
16 BuildRequires: libicu-devel >= 4
17 BuildRequires: libstdc++-devel >= 6:4.3
18 BuildRequires: libxml++2-devel >= 2.10.0
19 BuildRequires: libtool >= 2:2.2.6
20 BuildRequires: pkgconfig
21 Requires: libxml++2 >= 2.10.0
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This is a minimal hfst optimized lookup format based spell checker
26 library and a demonstrational implementation of command line based
29 %description -l pl.UTF-8
30 Ten pakiet zawiera minimalną bibliotekę do sprawdzania pisowni przy
31 użyciu zoptymalizowanego wyszukiwania hfst oraz demonstracyjną
32 implementację działającego z linii poleceń programu do sprawdzania
36 Summary: Header files for hfst-ospell library
37 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki hfst-ospell
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
40 Requires: libarchive-devel >= 2
41 Requires: libicu-devel >= 4
42 Requires: libstdc++-devel
43 Requires: libxml++2-devel >= 2.10.0
46 Header files for hfst-ospell library.
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe biblioteki hfst-ospell.
52 Summary: Static hfst-ospell library
53 Summary(pl.UTF-8): Statyczna biblioteka hfst-ospell
54 Group: Development/Libraries
55 Requires: %{name}-devel = %{version}-%{release}
58 Static hfst-ospell library.
60 %description static -l pl.UTF-8
61 Statyczna biblioteka hfst-ospell.
64 %setup -q -n hfstospell-%{version}
74 HFST_TXT2FST=/usr/bin/hfst-txt2fst \
75 HFST_FST2FST=/usr/bin/hfst-fst2fst \
77 --enable-extra-demos \
78 --disable-silent-rules
82 rm -rf $RPM_BUILD_ROOT
85 DESTDIR=$RPM_BUILD_ROOT
87 # obsoleted by pkg-config
88 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhfstospell.la
91 rm -rf $RPM_BUILD_ROOT
93 %post -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
97 %defattr(644,root,root,755)
98 %doc AUTHORS ChangeLog NEWS README
99 %attr(755,root,root) %{_bindir}/hfst-ispell
100 %attr(755,root,root) %{_bindir}/hfst-ospell
101 %attr(755,root,root) %{_bindir}/hfst-ospell-cicling
102 %attr(755,root,root) %{_bindir}/hfst-ospell-fsmnlp-2012
103 %attr(755,root,root) %{_bindir}/hfst-ospell-lrec2013
104 %attr(755,root,root) %{_bindir}/hfst-ospell-norvig
105 %attr(755,root,root) %{_bindir}/hfst-ospell-office
106 %attr(755,root,root) %{_bindir}/hfst-ospell-survey
107 %attr(755,root,root) %{_libdir}/libhfstospell.so.*.*.*
108 %attr(755,root,root) %ghost %{_libdir}/libhfstospell.so.7
109 %{_mandir}/man1/hfst-ospell.1*
110 %{_mandir}/man1/hfst-ospell-office.1*
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_libdir}/libhfstospell.so
115 %{_includedir}/ZHfstOspeller*.h
116 %{_includedir}/hfst-ol.h
117 %{_includedir}/ol-exceptions.h
118 %{_includedir}/ospell.h
119 %{_pkgconfigdir}/hfstospell.pc
122 %defattr(644,root,root,755)
123 %{_libdir}/libhfstospell.a