]> git.pld-linux.org Git - packages/foma.git/blob - foma.spec
- new URLs, updated to 0.9.17
[packages/foma.git] / foma.spec
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
4 Version:        0.9.17
5 Release:        1
6 License:        GPL v2
7 Group:          Development/Tools
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/
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
54 %setup -q
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
65 %{__make} foma flookup cgflookup \
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*
87 %attr(755,root,root) %{_bindir}/cgflookup
88 %attr(755,root,root) %{_bindir}/flookup
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
This page took 0.127191 seconds and 3 git commands to generate.