]> git.pld-linux.org Git - packages/hfst-ospell.git/blob - hfst-ospell.spec
e3623a98f3472923ba3cce2c26a3761878122ef5
[packages/hfst-ospell.git] / hfst-ospell.spec
1 Summary:        hfst-ospell library and toy commandline tester
2 Summary(pl.UTF-8):      Biblioteka hfst-ospell i program testowy
3 Name:           hfst-ospell
4 Version:        0.4.2
5 Release:        2
6 License:        Apache v2.0
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)
23
24 %description
25 This is a minimal hfst optimized lookup format based spell checker
26 library and a demonstrational implementation of command line based
27 spell checker.
28
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
33 pisowni.
34
35 %package devel
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
44
45 %description devel
46 Header files for hfst-ospell library.
47
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe biblioteki hfst-ospell.
50
51 %package static
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}
56
57 %description static
58 Static hfst-ospell library.
59
60 %description static -l pl.UTF-8
61 Statyczna biblioteka hfst-ospell.
62
63 %prep
64 %setup -q -n hfstospell-%{version}
65 %patch0 -p1
66
67 %build
68 %{__libtoolize}
69 %{__aclocal}
70 %{__autoconf}
71 %{__autoheader}
72 %{__automake}
73 %configure \
74         HFST_TXT2FST=/usr/bin/hfst-txt2fst \
75         HFST_FST2FST=/usr/bin/hfst-fst2fst \
76         ZIP=/usr/bin/zip \
77         --enable-extra-demos \
78         --disable-silent-rules
79 %{__make}
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83
84 %{__make} install \
85         DESTDIR=$RPM_BUILD_ROOT
86
87 # obsoleted by pkg-config
88 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhfstospell.la
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %post   -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
95
96 %files
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*
111
112 %files devel
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
120
121 %files static
122 %defattr(644,root,root,755)
123 %{_libdir}/libhfstospell.a
This page took 0.388613 seconds and 2 git commands to generate.