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