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