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