]> git.pld-linux.org Git - packages/foma.git/blame - foma.spec
- new URLs, updated to 0.9.17
[packages/foma.git] / foma.spec
CommitLineData
96e1bcff
JB
1Summary: Multi-purpose finite-state toolkit
2Summary(pl.UTF-8): Toolkit do tworzenia automatów skończonych różnego zastosowania
3Name: foma
9e851aaf 4Version: 0.9.17
96e1bcff
JB
5Release: 1
6License: GPL v2
7Group: Development/Tools
9e851aaf
JB
8#Source0Download: https://code.google.com/p/foma/downloads/list
9Source0: https://foma.googlecode.com/files/%{name}-%{version}.tar.gz
10# Source0-md5: 17c40eb005d3c823231c24c77a8ec99d
11URL: https://code.google.com/p/foma/
96e1bcff
JB
12BuildRequires: readline-devel
13BuildRequires: zlib-devel
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%description
17Foma is a multi-purpose finite-state toolkit designed for applications
18ranging from natural language processing and research in automata
19theory. It should be upwardly compatible with Xerox xfst and lexc,
20with the exception of binary file reading and writing.
21
22%description -l pl.UTF-8
23Foma to toolkit do tworzenia automatów skończonych o różnych
24zastosowaniu, począwszy od aplikacji przetwarzających języki naturalne
25do badań w dziedzinie teorii automatów. Powinien być kompatybilny w
26górę z narzędziami Xeroksa xfst i lexc, z wyjątkiem odczytu i zapisu
27plików binarnych.
28
29%package devel
30Summary: Header files for Foma library
31Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Foma
32Group: Development/Libraries
33Requires: %{name} = %{version}-%{release}
34
35%description devel
36Header files for Foma library.
37
38%description devel -l pl.UTF-8
39Pliki nagłówkowe biblioteki Foma.
40
41%package static
42Summary: Static Foma library
43Summary(pl.UTF-8): Statyczna biblioteka Foma
44Group: Development/Libraries
45Requires: %{name}-devel = %{version}-%{release}
46
47%description static
48Static Foma library.
49
50%description static -l pl.UTF-8
51Statyczna 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
63touch 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
71rm -rf $RPM_BUILD_ROOT
72install -d $RPM_BUILD_ROOT%{_bindir}
73
74%{__make} install \
75 prefix=$RPM_BUILD_ROOT%{_prefix} \
76 libdir=$RPM_BUILD_ROOT%{_libdir}
77
78%clean
79rm -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
This page took 0.0886670000000001 seconds and 4 git commands to generate.