]>
Commit | Line | Data |
---|---|---|
fee79ac8 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with foma # use foma by linking with libfoma (GPL v2-strict, which is not compliant) | |
4 | # | |
ca7f1440 JB |
5 | Summary: Helsinki Finite-State Transducer (library and application suite) |
6 | Summary(pl.UTF-8): Helsinki Finite-State Transducer (biblioteka i zestaw aplikacji) | |
7 | Name: hfst | |
01963880 | 8 | Version: 3.1.1 |
1cc1cae0 | 9 | Release: 1 |
fee79ac8 | 10 | License: GPL v3 |
ca7f1440 JB |
11 | Group: Applications/Text |
12 | Source0: http://downloads.sourceforge.net/hfst/%{name}-%{version}.tar.gz | |
01963880 | 13 | # Source0-md5: 31fad25e368071b25006d19ed6cf438e |
fee79ac8 | 14 | Patch0: %{name}-pc.patch |
ca7f1440 | 15 | URL: http://www.ling.helsinki.fi/kieliteknologia/tutkimus/hfst/ |
fee79ac8 JB |
16 | BuildRequires: SFST-devel |
17 | BuildRequires: autoconf >= 2.62 | |
18 | BuildRequires: automake >= 1:1.11 | |
ca7f1440 | 19 | BuildRequires: bison |
fee79ac8 | 20 | %{?with_foma:BuildRequires: foma-devel} |
ca7f1440 JB |
21 | BuildRequires: flex >= 2.5.35 |
22 | BuildRequires: libstdc++-devel | |
23 | BuildRequires: libtool >= 2:2.0 | |
fee79ac8 | 24 | BuildRequires: openfst-devel |
ca7f1440 JB |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
28 | The Helsinki Finite-State Transducer software is intended for the | |
29 | implementation of morphological analysers and other tools which are | |
30 | based on weighted and unweigted finite-state transducer technology. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | Pakiet HFST (Helsinki Finite-State Transducer) to oprogramowanie | |
34 | służące do implementacji analizatorów morfologicznych i innych | |
35 | narzędzi opartych na technice przetwarzania ze skończoną liczbą | |
36 | stanów z wagami lub bez. | |
37 | ||
38 | %package devel | |
39 | Summary: Header files for HFST library | |
40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HFST | |
41 | Group: Development/Libraries | |
42 | Requires: %{name} = %{version}-%{release} | |
fee79ac8 JB |
43 | Requires: SFST-devel |
44 | %{?with_foma:Requires: foma-devel} | |
ca7f1440 | 45 | Requires: libstdc++-devel |
fee79ac8 | 46 | Requires: openfst-devel |
ca7f1440 JB |
47 | |
48 | %description devel | |
49 | Header files for HFST library. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pliki nagłówkowe biblioteki HFST. | |
53 | ||
54 | %package static | |
55 | Summary: Static HFST library | |
56 | Summary(pl.UTF-8): Statyczna biblioteka HFST | |
57 | Group: Development/Libraries | |
58 | Requires: %{name}-devel = %{version}-%{release} | |
59 | ||
60 | %description static | |
61 | Static HFST library. | |
62 | ||
63 | %description static -l pl.UTF-8 | |
64 | Statyczna biblioteka HFST. | |
65 | ||
66 | %prep | |
67 | %setup -q | |
68 | %patch0 -p1 | |
ca7f1440 JB |
69 | |
70 | %build | |
ca7f1440 JB |
71 | %{__libtoolize} |
72 | %{__aclocal} | |
73 | %{__autoconf} | |
74 | %{__autoheader} | |
75 | %{__automake} | |
ca7f1440 | 76 | %configure \ |
fee79ac8 JB |
77 | FOMACLI=/usr/bin/foma \ |
78 | --disable-silent-rules \ | |
6dc89b8c JB |
79 | --enable-static \ |
80 | %{!?with_foma:--without-foma} | |
ca7f1440 JB |
81 | |
82 | %{__make} | |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %{__make} install \ | |
88 | DESTDIR=$RPM_BUILD_ROOT | |
89 | ||
fee79ac8 JB |
90 | # obsoleted by pkgconfig |
91 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhfst.la | |
92 | ||
7cf9be20 JB |
93 | # for transducer data |
94 | install -d $RPM_BUILD_ROOT%{_datadir}/hfst | |
95 | ||
ca7f1440 JB |
96 | %clean |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %post -p /sbin/ldconfig | |
100 | %postun -p /sbin/ldconfig | |
101 | ||
102 | %files | |
103 | %defattr(644,root,root,755) | |
01963880 | 104 | %doc AUTHORS NEWS README THANKS |
ca7f1440 JB |
105 | %attr(755,root,root) %{_bindir}/hfst-* |
106 | %attr(755,root,root) %{_bindir}/htwolcpre* | |
ca7f1440 | 107 | %attr(755,root,root) %{_libdir}/libhfst.so.*.*.* |
01963880 | 108 | %attr(755,root,root) %ghost %{_libdir}/libhfst.so.6 |
7cf9be20 | 109 | %dir %{_datadir}/hfst |
ca7f1440 JB |
110 | %{_mandir}/man1/hfst-*.1* |
111 | ||
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
114 | %attr(755,root,root) %{_libdir}/libhfst.so | |
fee79ac8 | 115 | %{_includedir}/hfst |
ca7f1440 JB |
116 | %{_pkgconfigdir}/hfst.pc |
117 | ||
118 | %files static | |
119 | %defattr(644,root,root,755) | |
120 | %{_libdir}/libhfst.a |