]>
Commit | Line | Data |
---|---|---|
96e1bcff JB |
1 | Summary: Multi-purpose finite-state toolkit |
2 | Summary(pl.UTF-8): Toolkit do tworzenia automatów skończonych różnego zastosowania | |
3 | Name: foma | |
9e851aaf | 4 | Version: 0.9.17 |
c4100ff6 | 5 | Release: 2 |
96e1bcff JB |
6 | License: GPL v2 |
7 | Group: Development/Tools | |
9e851aaf JB |
8 | #Source0Download: https://code.google.com/p/foma/downloads/list |
9 | Source0: https://foma.googlecode.com/files/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: 17c40eb005d3c823231c24c77a8ec99d | |
11 | URL: https://code.google.com/p/foma/ | |
96e1bcff JB |
12 | BuildRequires: readline-devel |
13 | BuildRequires: zlib-devel | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | Foma is a multi-purpose finite-state toolkit designed for applications | |
18 | ranging from natural language processing and research in automata | |
19 | theory. It should be upwardly compatible with Xerox xfst and lexc, | |
20 | with the exception of binary file reading and writing. | |
21 | ||
22 | %description -l pl.UTF-8 | |
23 | Foma to toolkit do tworzenia automatów skończonych o różnych | |
24 | zastosowaniu, począwszy od aplikacji przetwarzających języki naturalne | |
25 | do badań w dziedzinie teorii automatów. Powinien być kompatybilny w | |
26 | górę z narzędziami Xeroksa xfst i lexc, z wyjątkiem odczytu i zapisu | |
27 | plików binarnych. | |
28 | ||
29 | %package devel | |
30 | Summary: Header files for Foma library | |
31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Foma | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description devel | |
36 | Header files for Foma library. | |
37 | ||
38 | %description devel -l pl.UTF-8 | |
39 | Pliki nagłówkowe biblioteki Foma. | |
40 | ||
41 | %package static | |
42 | Summary: Static Foma library | |
43 | Summary(pl.UTF-8): Statyczna biblioteka Foma | |
44 | Group: Development/Libraries | |
45 | Requires: %{name}-devel = %{version}-%{release} | |
46 | ||
47 | %description static | |
48 | Static Foma library. | |
49 | ||
50 | %description static -l pl.UTF-8 | |
51 | Statyczna biblioteka Foma. | |
52 | ||
53 | %prep | |
9e851aaf | 54 | %setup -q |
96e1bcff JB |
55 | |
56 | %build | |
57 | %{__make} libfoma \ | |
58 | CC="%{__cc}" \ | |
59 | CFLAGS="%{rpmcflags} -D_GNU_SOURCE -std=c99 -fvisibility=hidden -fPIC" \ | |
60 | LDFLAGS="%{rpmldflags} -lreadline -lz" | |
61 | ||
62 | # workaround to avoid rebuilding library on install | |
63 | touch libfoma | |
64 | ||
9e851aaf | 65 | %{__make} foma flookup cgflookup \ |
96e1bcff JB |
66 | CC="%{__cc}" \ |
67 | CFLAGS="%{rpmcflags} -D_GNU_SOURCE -std=c99 -fvisibility=hidden" \ | |
68 | LDFLAGS="%{rpmldflags} -lreadline -lz" | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | install -d $RPM_BUILD_ROOT%{_bindir} | |
73 | ||
74 | %{__make} install \ | |
75 | prefix=$RPM_BUILD_ROOT%{_prefix} \ | |
76 | libdir=$RPM_BUILD_ROOT%{_libdir} | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post -p /sbin/ldconfig | |
82 | %postun -p /sbin/ldconfig | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %doc CHANGELOG README* | |
9e851aaf JB |
87 | %attr(755,root,root) %{_bindir}/cgflookup |
88 | %attr(755,root,root) %{_bindir}/flookup | |
96e1bcff JB |
89 | %attr(755,root,root) %{_bindir}/foma |
90 | %attr(755,root,root) %{_libdir}/libfoma.so.*.*.* | |
91 | %attr(755,root,root) %ghost %{_libdir}/libfoma.so.0 | |
92 | ||
93 | %files devel | |
94 | %defattr(644,root,root,755) | |
95 | %attr(755,root,root) %{_libdir}/libfoma.so | |
96 | %{_includedir}/fomalib*.h | |
97 | ||
98 | %files static | |
99 | %defattr(644,root,root,755) | |
100 | %{_libdir}/libfoma.a |